import { JsonRpcProvider } from 'ethers'; import type { GeneratedWallet } from '../utils/wallet.js'; import type { AmountLike, BundleGasConfig } from './types/index.js'; export { getErc20Decimals, getErc20DecimalsMerkle } from '../core/erc20/decimals.js'; /** 生成多跳中间钱包(地址 + 私钥) */ export declare function generateHopWallets(recipientCount: number, hopCount: number | number[]): GeneratedWallet[][] | null; export declare function normalizeAmounts(recipients: string[], amount?: AmountLike, amounts?: AmountLike[]): string[]; /** * 批量获取余额(原生代币或 ERC20,优先 Multicall3) */ export declare function batchGetBalances(provider: JsonRpcProvider, addresses: string[], tokenAddress?: string, chainId?: number): Promise; /** 同一批地址的 ERC20 余额和原生币余额,一次 aggregate3。 */ export declare function batchGetTokenAndNativeBalances(provider: JsonRpcProvider, addresses: string[], tokenAddress: string, chainId?: number): Promise<{ token: bigint[]; native: bigint[]; }>; /** 归集/分发:按节点估算这笔转账的 gas。失败返回 null,调用方再用固定上限。 */ export declare function estimateSweepLimits(params: { provider: JsonRpcProvider; from: string; to: string; tokenAddress?: string; nativeFallback: bigint; tokenFallback: bigint; /** 估算值安全垫;节点估值通常是刚好够,批量转账/合约收款方需要余量 */ bufferPercent?: number; }): Promise<{ nativeGasLimit: bigint; tokenGasLimit: bigint; estimated: boolean; }>; export declare function estimateErc20TransferGas(provider: JsonRpcProvider, tokenAddress: string, from: string, to: string, amount: bigint, bufferPercent?: number): Promise; export declare function estimateMaxErc20TransferGas(provider: JsonRpcProvider, tokenAddress: string, from: string, recipients: string[], amounts: bigint[], bufferPercent?: number): Promise; export declare function calculateGasLimit(config: BundleGasConfig, isNative: boolean, _hasHops: boolean, _hopCount?: number): bigint; export declare function isNativeTokenAddress(tokenAddress?: string): boolean; export type { AmountLike, BundleGasConfig } from './types/index.js';