import type { CaipNetworkId } from '@reown/appkit-common'; import type { SwapTokenWithBalance } from './TypeUtil.js'; import type { BlockchainApiBalanceResponse, BlockchainApiSwapAllowanceRequest } from './TypeUtil.js'; export type TokenInfo = { address: `0x${string}`; symbol: string; name: string; decimals: number; logoURI: string; domainVersion?: string; eip2612?: boolean; isFoT?: boolean; tags?: string[]; }; export declare const SwapApiUtil: { getTokenList(caipNetworkId?: CaipNetworkId): Promise; fetchGasPrice(): Promise<{ standard: string | undefined; fast: string | undefined; instant: string | undefined; } | null>; fetchSwapAllowance({ tokenAddress, userAddress, sourceTokenAmount, sourceTokenDecimals }: Pick & { sourceTokenAmount: string; sourceTokenDecimals: number; }): Promise; getMyTokensWithBalance(forceUpdate?: string): Promise; /** * Maps the balances from Blockchain API to SwapTokenWithBalance array * @param balances * @returns SwapTokenWithBalance[] */ mapBalancesToSwapTokens(balances: BlockchainApiBalanceResponse["balances"]): SwapTokenWithBalance[]; handleSwapError(error: unknown): Promise<"Insufficient liquidity" | undefined>; };