import * as P from 'micro-packed'; export type AnyCoder = Record>; export type AnyCoderStream = Record>; type VersionType = { [K in keyof V]: { type: K; data: P.UnwrapCoder; }; }[keyof V]; export type TxCoder = P.UnwrapCoder<(typeof TxVersions)[T]>; type VRS = Partial<{ v: bigint; r: bigint; s: bigint; }>; type YRS = Partial<{ chainId: bigint; yParity: number; r: bigint; s: bigint; }>; export declare const legacySig: P.Coder; type CoderOutput = F extends P.Coder ? T : never; declare const accessListItem: P.Coder<(Uint8Array | Uint8Array[])[], { address: string; storageKeys: string[]; }>; export type AccessList = CoderOutput[]; export declare const authorizationRequest: P.Coder; declare const authorizationItem: P.Coder; export type AuthorizationItem = CoderOutput; export type AuthorizationRequest = CoderOutput; /** * Field types, matching geth. Either u64 or u256. */ declare const coders: { chainId: P.Coder; nonce: P.Coder; gasPrice: P.Coder; maxPriorityFeePerGas: P.Coder; maxFeePerGas: P.Coder; gasLimit: P.Coder; to: P.Coder, string>; value: P.Coder; data: P.Coder, string>; accessList: P.Coder<(Uint8Array | Uint8Array[])[][], { address: string; storageKeys: string[]; }[]>; maxFeePerBlobGas: P.Coder; blobVersionedHashes: P.Coder[], string[]>; yParity: P.Coder; v: P.Coder; r: P.Coder; s: P.Coder; authorizationList: P.Coder[][], { chainId: bigint; address: string; nonce: bigint; yParity: number; r: bigint; s: bigint; }[]>; }; type Coders = typeof coders; type CoderName = keyof Coders; type OptFields = T & Partial; type FieldCoder = P.CoderType & { fields: CoderName[]; optionalFields: CoderName[]; setOfAllFields: Set; }; export declare function removeSig(raw: TxCoder): TxCoder; declare const legacyInternal: FieldCoder>; type LegacyInternal = P.UnwrapCoder; type Legacy = Omit & { chainId?: bigint; yParity?: number; }; export declare const TxVersions: { legacy: FieldCoder; eip2930: FieldCoder>; eip1559: FieldCoder>; eip4844: FieldCoder>; eip7702: FieldCoder>; }; export declare const RawTx: P.CoderType; eip2930: FieldCoder>; eip1559: FieldCoder>; eip4844: FieldCoder>; eip7702: FieldCoder>; }>>; /** * Unchecked TX for debugging. Returns raw Uint8Array-s. * Handles versions - plain RLP will crash on it. */ export declare const RlpTx: P.CoderType<{ type: string; data: import('./rlp.js').RLPInput; }>; export type TxType = keyof typeof TxVersions; type ErrObj = { field: string; error: string; }; export declare class AggregatedError extends Error { message: string; errors: ErrObj[]; constructor(message: string, errors: ErrObj[]); } export declare function validateFields(type: TxType, data: Record, strict?: boolean, allowSignatureFields?: boolean): void; export declare function sortRawData(raw: TxCoder): any; export declare function decodeLegacyV(raw: TxCoder): bigint | undefined; export declare const __tests: any; export {}; //# sourceMappingURL=tx.d.ts.map