import { IAsyncStorage } from './storage'; import { CosmosChainData } from './types'; type ChannelData = { chainId: string; }; /** * This class provides methods related to IBC channels. */ export declare class ChannelUtils { private static cache; /** * * @returns `true` if the cache is initialized, `false` otherwise. */ static isCacheInitialized(): boolean; /** * Initializes the cache for storing channel data. * * @param storage - An implementation of {@link IAsyncStorage} interface. */ static initializeCache(storage: IAsyncStorage): void; /** * Fetches the destination chain ID for a given source chain and channel ID * * @param channelId channel ID * @param chain chain data object - must include chainId and restUrl * * @returns {Promise} object with the destination chainId property */ static fetchChannelInfo(channelId: string, chain: CosmosChainData): Promise; } export {};