import type { Account } from "../../wallets/interfaces/wallet.js"; import type { PreparedTransaction } from "../prepare-transaction.js"; export type ToSerializableTransactionOptions = { /** * The transaction to convert to a serializable transaction. */ transaction: PreparedTransaction; /** * The from address or account to use for gas estimation and authorization signing. */ from?: string | Account; }; /** * Converts a prepared transaction to a transaction with populated options. * @param options - The transaction and additional options for conversion * @returns A serializable transaction for inspection or submission to an account. * * For easier transaction sending, {@see sendTransaction} * @example * ```ts * import { prepareTransaction, toSerializableTransaction } from "thirdweb"; * * const transaction = await prepareTransaction({ * transaction: { * to: "0x...", * value: 100, * }, * }); * const finalTx = await toSerializableTransaction({ * transaction, * }); * * account.sendTransaction(finalTx); * ``` * @transaction */ export declare function toSerializableTransaction(options: ToSerializableTransactionOptions): Promise<{ gasPrice?: never; maxFeePerGas?: bigint; maxPriorityFeePerGas?: bigint; accessList: import("viem").AccessList | undefined; authorizationList: { address: import("ox/Address").Address; chainId: number; nonce: bigint; r: bigint; s: bigint; yParity: number; }[] | undefined; chainId: number; data: `0x${string}`; gas: bigint; nonce: number | undefined; to: string | undefined; type: ("legacy" | "eip2930" | "eip1559" | "eip4844" | "eip7702") | undefined; value: bigint | undefined; } | { gasPrice?: bigint; maxFeePerGas?: never; maxPriorityFeePerGas?: never; accessList: import("viem").AccessList | undefined; authorizationList: { address: import("ox/Address").Address; chainId: number; nonce: bigint; r: bigint; s: bigint; yParity: number; }[] | undefined; chainId: number; data: `0x${string}`; gas: bigint; nonce: number | undefined; to: string | undefined; type: ("legacy" | "eip2930" | "eip1559" | "eip4844" | "eip7702") | undefined; value: bigint | undefined; }>; //# sourceMappingURL=to-serializable-transaction.d.ts.map