import type { TransactionLike, TransactionRequest } from 'ethers'; /** 构建签名用 TransactionRequest 的公共参数 */ export type BuildTxRequestParams = { from: string; nonce: number; gasLimit: bigint; gasPrice: bigint; priorityFee: bigint; chainId: number; txType: number; value?: bigint; }; /** * 将 populateTransaction 结果与 gas/nonce 字段合并为可签名交易。 * type 0 (Legacy) 使用 gasPrice;type 2 (EIP-1559) 使用 maxFeePerGas + maxPriorityFeePerGas。 */ export declare function buildTransactionRequest(unsigned: TransactionLike, { from, nonce, gasLimit, gasPrice, priorityFee, chainId, txType, value }: BuildTxRequestParams): TransactionRequest;