import type { ErrorType } from '../errors/utils.js'; import type { BlockTag } from '../types/block.js'; import type { Chain } from '../types/chain.js'; import type { ExtractChainFormatterType } from '../types/chain.js'; import type { RpcTransaction } from '../types/transaction.js'; import type { Transaction } from '../types/transaction.js'; import type { PartialBy, UnionLooseOmit } from '../types/utils.js'; import { type DefineFormatterErrorType } from './defineFormatter.js'; type TransactionPendingDependencies = 'blockHash' | 'blockNumber' | 'transactionIndex'; export type FormattedTransaction, _excludedPendingDependencies extends string = TransactionPendingDependencies> = UnionLooseOmit<_formatterReturnType, TransactionPendingDependencies> & Pick, TransactionPendingDependencies>; /** @internal */ export declare const transactionType: { readonly '0x0': "legacy"; readonly '0x1': "eip2930"; readonly '0x2': "eip1559"; readonly '0x3': "eip4844"; readonly '0x4': "eip7702"; }; /** @internal */ export declare const rpcTransactionType: { readonly legacy: "0x0"; readonly eip2930: "0x1"; readonly eip1559: "0x2"; readonly eip4844: "0x3"; readonly eip7702: "0x4"; }; export type FromRpcTransactionErrorType = ErrorType; export declare function fromRpcTransaction(transaction: Omit, 'type'> & { type: string; }): Transaction; export type ToRpcTransactionErrorType = ErrorType; export declare function toRpcTransaction(transaction: Omit & { type: string; }): RpcTransaction; export type DefineTransactionErrorType = DefineFormatterErrorType | ErrorType; export declare const defineTransaction: (overrides: { fromRpc: (parameters: rpcType, baseFn: typeof fromRpcTransaction) => type; toRpc: (parameters: type, baseFn: typeof toRpcTransaction) => rpcType; }) => import("./defineFormatter.js").Formatter; export {}; //# sourceMappingURL=transaction.d.ts.map