import { type IsAddressErrorType } from '../address/isAddress.js'; import { type IsHexErrorType } from '../data/isHex.js'; import { type PadHexErrorType } from '../data/pad.js'; import { type HexToBigIntErrorType, type HexToNumberErrorType } from '../encoding/fromHex.js'; import { type FromRlpErrorType } from '../encoding/fromRlp.js'; import type { RecursiveArray } from '../encoding/toRlp.js'; import { type InvalidAddressErrorType } from '../errors/address.js'; import { type InvalidLegacyVErrorType, type InvalidSerializedTransactionErrorType } from '../errors/transaction.js'; import type { ErrorType } from '../errors/utils.js'; import type { Hex } from '../types/data.js'; import type { AccessList, TransactionType } from '../types/transaction.js'; import type { TransactionEnvelope, TransactionEnvelopeEip1559, TransactionEnvelopeEip2930, TransactionEnvelopeEip4844, TransactionEnvelopeEip7702, TransactionEnvelopeLegacy, TransactionSerialized, TransactionSerializedEip1559, TransactionSerializedEip2930, TransactionSerializedEip4844, TransactionSerializedEip7702, TransactionSerializedGeneric } from '../types/transactionEnvelope.js'; import type { IsNarrowable } from '../types/utils.js'; import { type AssertTransactionEip1559ErrorType, type AssertTransactionEip2930ErrorType, type AssertTransactionEip4844ErrorType, type AssertTransactionEip7702ErrorType, type AssertTransactionLegacyErrorType } from './assertTransaction.js'; import { type GetSerializedTransactionType, type GetSerializedTransactionTypeErrorType } from './getSerializedTransactionType.js'; export type ParseTransactionReturnType> = IsNarrowable extends true ? (type extends 'eip1559' ? TransactionEnvelopeEip1559 : never) | (type extends 'eip2930' ? TransactionEnvelopeEip2930 : never) | (type extends 'eip4844' ? TransactionEnvelopeEip4844 : never) | (type extends 'eip7702' ? TransactionEnvelopeEip7702 : never) | (type extends 'legacy' ? TransactionEnvelopeLegacy : never) : TransactionEnvelope; export type ParseTransactionErrorType = GetSerializedTransactionTypeErrorType | ParseTransactionEip1559ErrorType | ParseTransactionEip2930ErrorType | ParseTransactionEip4844ErrorType | ParseTransactionEip7702ErrorType | ParseTransactionLegacyErrorType; export declare function parseTransaction(serializedTransaction: serialized): ParseTransactionReturnType; export type ParseTransactionEip7702ErrorType = ToTransactionArrayErrorType | AssertTransactionEip7702ErrorType | ToTransactionArrayErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ParseAuthorizationListErrorType | ParseEip155SignatureErrorType | ErrorType; export declare function parseTransactionEip7702(serializedTransaction: TransactionSerializedEip7702): TransactionEnvelopeEip7702; export type ParseTransactionEip4844ErrorType = ToTransactionArrayErrorType | AssertTransactionEip4844ErrorType | ToTransactionArrayErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ParseEip155SignatureErrorType | ErrorType; export declare function parseTransactionEip4844(serializedTransaction: TransactionSerializedEip4844): TransactionEnvelopeEip4844; export type ParseTransactionEip1559ErrorType = ToTransactionArrayErrorType | AssertTransactionEip1559ErrorType | ToTransactionArrayErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ParseEip155SignatureErrorType | ParseAccessListErrorType | ErrorType; export declare function parseTransactionEip1559(serializedTransaction: TransactionSerializedEip1559): TransactionEnvelopeEip1559; export type ParseTransactionEip2930ErrorType = ToTransactionArrayErrorType | AssertTransactionEip2930ErrorType | ToTransactionArrayErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ParseEip155SignatureErrorType | ParseAccessListErrorType | ErrorType; export declare function parseTransactionEip2930(serializedTransaction: TransactionSerializedEip2930): TransactionEnvelopeEip2930; export type ParseTransactionLegacyErrorType = AssertTransactionLegacyErrorType | FromRlpErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ErrorType; export declare function parseTransactionLegacy(serializedTransaction: Hex): TransactionEnvelopeLegacy; export type ToTransactionArrayErrorType = FromRlpErrorType | ErrorType; export declare function toTransactionArray(serializedTransaction: string): import("../encoding/fromRlp.js").FromRlpReturnType<"hex">; export type ParseAccessListErrorType = InvalidAddressErrorType | IsAddressErrorType | ErrorType; export declare function parseAccessList(accessList_: RecursiveArray): AccessList; type ParseAuthorizationListErrorType = HexToNumberErrorType | ParseEip155SignatureErrorType | ErrorType; type ParseEip155SignatureErrorType = HexToBigIntErrorType | PadHexErrorType | ErrorType; export {}; //# sourceMappingURL=parseTransaction.d.ts.map