import type { SuiClient } from "@mysten/sui/client"; /** * Like `CoinMetadata` from `@mysten/sui`, but includes the coin `type`. */ export type CoinMeta = { type: string; symbol: string; decimals: number; name: string; description: string; id: string | null; iconUrl: string | null; }; /** * Fetch coin metadata from the RPC and cache it. */ export declare class CoinMetaFetcher { protected readonly suiClient: SuiClient; protected readonly cache: Map; constructor({ suiClient, preloadUrl, preloadData, }: { suiClient: SuiClient; preloadUrl?: string; preloadData?: CoinMeta[]; }); getCoinMeta(coinType: string): Promise; getCoinMetas(coinTypes: string[]): Promise>; }