import { TransactionType } from './types.ts'; import type { EthersProvider } from '@ethereumjs/util'; import type { Transaction, TxData, TxOptions, TypedTxData } from './types.ts'; /** * Instantiate a transaction; the `type` field selects the concrete {@link TypedTransaction} class. * * When `type` is omitted a legacy transaction is created. * * @throws If the `type` field is not supported * @throws If delegated type-specific factory validation fails */ export declare function createTx(txData: TypedTxData, txOptions?: TxOptions): Transaction[T]; /** * Decode an RLP-serialized transaction (legacy or EIP-2718 typed). * * @throws If the typed tx ID is unknown * @throws If delegated type-specific factory validation fails */ export declare function createTxFromRLP(data: Uint8Array, txOptions?: TxOptions): Transaction[T]; /** * Decode a transaction from block-body RLP (typed bytes or legacy value array). * * @throws If `data` is neither a `Uint8Array` nor a `Uint8Array[]` * @throws If delegated factory validation fails */ export declare function createTxFromBlockBodyData(data: Uint8Array | Uint8Array[], txOptions?: TxOptions): import("./index.ts").LegacyTx | import("./index.ts").AccessList2930Tx | import("./index.ts").FeeMarket1559Tx | import("./index.ts").Blob4844Tx | import("./index.ts").EOACode7702Tx; /** * Instantiate a transaction from JSON-RPC fields (`eth_getTransactionByHash` shape). * * Numeric and hex fields are normalized before construction. * * @throws If delegated {@link createTx} validation fails */ export declare function createTxFromRPC(txData: TxData[T], txOptions?: TxOptions): Promise; /** * Fetch a transaction by hash from a JSON-RPC provider and instantiate it. * * @throws If the provider returns no data for the hash * @throws If delegated {@link createTxFromRPC} validation fails */ export declare function createTxFromJSONRPCProvider(provider: string | EthersProvider, txHash: string, txOptions?: TxOptions): Promise; //# sourceMappingURL=transactionFactory.d.ts.map