import { Asset } from '../asset'; import { AnyChain, ChainEcosystem } from '../chain'; import { AssetRoute, ChainRoutes } from './definition'; export interface ConfigServiceOptions { assets: Map; chains: Map; routes: Map; } export declare class ConfigService { readonly assets: Map; readonly chains: Map; readonly routes: Map; constructor({ assets, chains, routes }: ConfigServiceOptions); getEcosystemAssets(ecosystem?: ChainEcosystem): Asset[]; getAsset(keyOrAsset: string | Asset): Asset; getChain(keyOrChain: string | AnyChain): AnyChain; getChainRoutes(keyOrChain: string | AnyChain): ChainRoutes; getSourceChains(asset: Asset, ecosystem: ChainEcosystem | undefined): AnyChain[]; getDestinationChains(asset: Asset, source: AnyChain): AnyChain[]; getAssetRoutes(asset: Asset, source: AnyChain, destination: AnyChain): AssetRoute[]; updateAsset(asset: Asset): void; updateChain(chain: AnyChain): void; updateRoutes(routes: ChainRoutes): void; updateChainRoute(chain: AnyChain, route: AssetRoute): void; }