/** * volume 内部工具函数 * * 供 volume-wash / volume-bundle 共享使用,不作为公共 API 导出。 */ import { ethers, Wallet } from 'ethers'; import type { Call3Value } from './types.js'; import type { PoolType } from './volume-helpers.js'; export declare function getDefaultRouter(poolType: PoolType): string; export declare function buildBuyCall(wallet: Wallet, amount: bigint, tokenAddress: string, poolType: PoolType, routerAddress: string, fee: number, delegateInterface: ethers.Interface, portalInterface: ethers.Interface): Call3Value; export declare function buildSellCall(wallet: Wallet, amount: bigint, // ✅ 传入具体数量,用于非 100% 卖出时的占位或精确值 tokenAddress: string, sellPercent: number, tokenDecimals: number, poolType: PoolType, routerAddress: string, fee: number, delegateInterface: ethers.Interface, portalInterface: ethers.Interface): Call3Value; export declare function buildSellCallWithAmount(wallet: Wallet, amount: bigint, tokenAddress: string, poolType: PoolType, routerAddress: string, fee: number, delegateInterface: ethers.Interface, portalInterface: ethers.Interface): Call3Value;