import { Contract, JsonRpcProvider } from 'ethers'; /** * Four.meme TokenManager V2 支持的链 */ export type FourChainV2 = 'BSC'; export declare class TM2 { readonly address: string; readonly provider: JsonRpcProvider; constructor(address: string, provider: JsonRpcProvider); /** * 通过链名称连接 */ static connectByChain(chain: FourChainV2, rpcUrl: string): TM2; /** * 通过链名称和私钥连接 */ static fromPrivateKeyByChain(chain: FourChainV2, rpcUrl: string, privateKey: string): Contract; private get c(); buyToken(originOrToken: bigint | string, tokenOrTo: string | bigint, toOrAmount?: string | bigint, amountOrMaxFunds?: bigint, maxFunds?: bigint): Promise; buyTokenAMAP(originOrToken: bigint | string, tokenOrTo: string | bigint, toOrFunds?: string | bigint, fundsOrMinAmount?: bigint, maybeMin?: bigint): Promise; sellToken(originOrToken: bigint | string, tokenOrAmount: string | bigint, maybeAmount?: bigint, maybeMinFunds?: bigint, feeRate?: bigint, feeRecipient?: string): Promise; sellTokenFrom(origin: bigint, token: string, from: string, amount: bigint, minFunds: bigint, feeRate?: bigint, feeRecipient?: string): Promise; }