import { type SerializeAuthorizationListErrorType } from '../../../eip7702/internal/utils/serializeAuthorizationList.js'; import { type BlobsToCommitmentsErrorType } from '../blob/blobsToCommitments.js'; import { type BlobsToProofsErrorType } from '../blob/blobsToProofs.js'; import { type CommitmentsToVersionedHashesErrorType } from '../blob/commitmentsToVersionedHashes.js'; import { type ToBlobSidecarsErrorType } from '../blob/toBlobSidecars.js'; import { type ConcatHexErrorType } from '../data/concat.js'; import { type ToHexErrorType } from '../encoding/toHex.js'; import { type ToRlpErrorType } from '../encoding/toRlp.js'; import { type InvalidLegacyVErrorType } from '../errors/transaction.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; import type { CompactSignature, Signature, Signatureish } from '../types/signature.js'; import type { TransactionType } from '../types/transaction.js'; import type { TransactionEnvelope, TransactionEnvelopeEip1559, TransactionEnvelopeEip2930, TransactionEnvelopeEip4844, TransactionEnvelopeEip7702, TransactionEnvelopeGeneric, TransactionEnvelopeLegacy, TransactionSerialized, TransactionSerializedEip1559, TransactionSerializedEip2930, TransactionSerializedEip4844, TransactionSerializedEip7702, TransactionSerializedLegacy } from '../types/transactionEnvelope.js'; import type { ExactPartial, OneOf } from '../types/utils.js'; import { type AssertTransactionEip1559ErrorType, type AssertTransactionEip2930ErrorType, type AssertTransactionEip4844ErrorType, type AssertTransactionEip7702ErrorType, type AssertTransactionLegacyErrorType } from './assertTransaction.js'; import { type GetTransactionType, type GetTransactionTypeErrorType } from './getTransactionType.js'; import { type SerializeAccessListErrorType } from './serializeAccessList.js'; export type SerializedTransactionReturnType> = TransactionSerialized<_transactionType>; export type SerializeTransactionFn = typeof serializeTransaction, _transactionType>; export type SerializeTransactionErrorType = GetTransactionTypeErrorType | SerializeTransactionEip1559ErrorType | SerializeTransactionEip2930ErrorType | SerializeTransactionEip4844ErrorType | SerializeTransactionEip7702ErrorType | SerializeTransactionLegacyErrorType | ErrorType; export declare function serializeTransaction>(transaction: transaction, signature?: Signatureish | undefined): SerializedTransactionReturnType; export type SerializeTransactionEip7702ErrorType = AssertTransactionEip7702ErrorType | SerializeAuthorizationListErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType; export declare function serializeTransactionEip7702(transaction: TransactionEnvelopeEip7702, signature?: Signatureish | undefined): TransactionSerializedEip7702; export type SerializeTransactionEip4844ErrorType = AssertTransactionEip4844ErrorType | BlobsToCommitmentsErrorType | CommitmentsToVersionedHashesErrorType | BlobsToProofsErrorType | ToBlobSidecarsErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType; export declare function serializeTransactionEip4844(transaction: TransactionEnvelopeEip4844, signature?: Signatureish | undefined): TransactionSerializedEip4844; export type SerializeTransactionEip1559ErrorType = AssertTransactionEip1559ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType; export declare function serializeTransactionEip1559(transaction: TransactionEnvelopeEip1559, signature?: Signatureish | undefined): TransactionSerializedEip1559; export type SerializeTransactionEip2930ErrorType = AssertTransactionEip2930ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType; export declare function serializeTransactionEip2930(transaction: TransactionEnvelopeEip2930, signature?: Signatureish | undefined): TransactionSerializedEip2930; export type SerializeTransactionLegacyErrorType = AssertTransactionLegacyErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | ErrorType; export declare function serializeTransactionLegacy(transaction: TransactionEnvelopeLegacy, signature_?: Signatureish | undefined): TransactionSerializedLegacy; export declare function toSignatureArray(signature: OneOf | ExactPartial> | Bytes | Hex): never[] | readonly ["0x" | "0x01", `0x${string}`, `0x${string}`]; //# sourceMappingURL=serializeTransaction.d.ts.map