/** * ENI BatchRouter — 批量转账(分发 / 归集) * * - batchTransferEgas: 批量分发 EGAS (1 笔 tx, 通过合约) * - batchTransferTokenForSubmit: 批量分发 ERC20 (1 笔 tx, 通过合约) * - batchSweepToken: 批量归集 ERC20 (各钱包独立签名) * - batchSweepEgas: 批量归集 EGAS (各钱包独立签名) * - eniDisperseForSubmit: 前端统一入口 (EGAS / ERC20 分发) * - eniSweepForSubmit: 前端统一入口 (EGAS / ERC20 归集) */ import type { BatchTransferParams, BatchTransferResult } from './types.js'; export declare function batchTransferEgas(params: BatchTransferParams): Promise; export interface BatchTransferTokenParams { rpcUrl?: string; batchRouterAddress?: string; mainPrivateKey: string; token: string; recipients: string[]; amounts: bigint[]; gasPrice?: bigint; } export declare function batchTransferToken(params: BatchTransferTokenParams): Promise; export interface BatchSweepTokenParams { rpcUrl?: string; token: string; privateKeys: string[]; amounts: bigint[]; target: string; gasPrice?: bigint; gasLimit?: bigint; } export interface BatchSweepTokenResult { transactions: Array<{ signedTx: string; from: string; nonce: number; }>; } export declare function batchSweepToken(params: BatchSweepTokenParams): Promise; export interface BatchSweepEgasParams { rpcUrl?: string; privateKeys: string[]; amounts: bigint[]; target: string; gasPrice?: bigint; } export declare function batchSweepEgas(params: BatchSweepEgasParams): Promise; export interface EniDisperseParams { rpcUrl?: string; fromPrivateKey: string; recipients: string[]; amounts: string[]; tokenAddress?: string; tokenDecimals?: number; hopCount?: number; gasLimit?: number; } export interface EniDisperseResult { signedTransactions: string[]; hopWallets?: { address: string; privateKey: string; }[][]; } export declare function eniDisperseForSubmit(params: EniDisperseParams): Promise; export interface EniSweepParams { rpcUrl?: string; sourcePrivateKeys: string[]; target: string; targetPrivateKey?: string; tokenAddress?: string; tokenDecimals?: number; ratioPct?: number; hopCount?: number; gasLimit?: number; } export interface EniSweepResult { signedTransactions: string[]; hopWallets?: { address: string; privateKey: string; }[][]; } export declare function eniSweepForSubmit(params: EniSweepParams): Promise;