import { Chain } from 'viem/chains';
import { ChainId, VaultConfigResponse } from '../api/vault-config.js';
import '../vaults/config.js';
import 'viem';

/**
 * Gets a chain object from the vault config response
 * @param chainId The chain ID to look up
 * @param config Optional config object. If not provided, will fetch from API
 * @returns Promise<Chain>
 */
declare function getChainFromConfig(chainId: ChainId, config?: VaultConfigResponse): Promise<Chain>;
/**
 * Clears the chains cache
 */
declare function clearChainsCache(): void;

export { clearChainsCache, getChainFromConfig };
