/** * EniBundler EIP-712 签名工具 * * 各钱包离线签署操作意图,主钱包收集后统一提交。 */ import type { SignedOpParams, TokenPullParams, SignOpInput } from './types.js'; /** * 获取 signer 当前 nonce */ export declare function getBundlerNonce(params: { rpcUrl?: string; bundlerAddress: string; signer: string; }): Promise; /** * 签署 SignedOp — 授权一个合约调用操作 */ export declare function signOperation(params: { privateKey: string; bundlerAddress: string; op: SignOpInput; nonce?: bigint; rpcUrl?: string; }): Promise; /** * 签署 TokenPull — 授权代币拉取(替代链上 approve) */ export declare function signTokenPull(params: { privateKey: string; bundlerAddress: string; token: string; spender: string; amount: bigint; nonce?: bigint; rpcUrl?: string; }): Promise; /** * 批量签署操作 — 多个钱包各签一个操作 */ export declare function signOperationsBatch(params: { privateKeys: string[]; bundlerAddress: string; ops: SignOpInput[]; rpcUrl?: string; }): Promise;