import { Amount, ChainBalanceData, CosmosChainData, DenomData, TokenBalanceData } from './types'; import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate'; import { SkipSupportedAsset } from './skip-api'; /** * Gets the source chain for a given denom trace. * @param denomTrace - The denom trace string. * @param chain - The current chain data ({@link CosmosChainData}). * @param chains - A record of chain data indexed by chain IDs. * @returns The source chain ID as a string or null if not found. */ export declare const getSourceChain: (denomTrace: string, chain: CosmosChainData, chains: Record) => Promise; /** * Retrieves token data including balance and denom information. * @param token - The token amount and denom ({@link Amount}). * @param chain - The current chain data ({@link CosmosChainData}). * @param denoms - A record of denom data indexed by denom strings. * @param chains - A record of chain data indexed by chain IDs. * @returns A Promise resolving to the token balance data ({@link TokenBalanceData}) or undefined if not found. */ export declare const getTokenData: (token: Amount, denoms: Record) => Promise; /** * `TokenBalanceAPI` provides methods for retrieving token balances and rich token balance data for Cosmos chains. */ export declare class TokenBalanceAPI { /** * Fetches the token balances for a given address on a specific chain. * @param address - The blockchain address. * @param chains - An array of CosmosChainData objects. * @returns A Promise resolving to an array of token amounts ({@link Amount[]}). * @throws An error if the chain is not supported or if there's a failure in fetching balances. */ static COSMWASM_CLIENTS: Record; static getBalances(address: string, chainId: string, chains: Array, isTestnet?: boolean): Promise; static getCw20Balances(address: string, chains: Array, cw20Tokens: SkipSupportedAsset[], isTestnet?: boolean): Promise; /** * Fetches rich token balances which includes detailed token information along with the balance. * @param address - The blockchain address. * @param denoms - A record of denom data indexed by denom strings. * @param chains - An array of CosmosChainData objects. * @returns A Promise resolving to a ChainBalanceData object containing rich balance data ({@link ChainBalanceData}). * @throws An error if the chain is not supported or if there's a failure in fetching rich balances. */ static getRichBalances(address: string, chainId: string, denoms: Record, chains: Array, cw20Tokens?: SkipSupportedAsset[], isTestnet?: boolean): Promise; }