import { ChainNetwork, ConfigType, SettingChainNetwork, SettingChainNetworkHost } from '../models'; import OreIdContext from './IOreidContext'; export default class Settings { constructor(args: { oreIdContext: OreIdContext; }); private _cachedChainNetworks; private _oreIdContext; /** Calls getConfigFromApi() to retrieve settings for all chain networks defined by OreID service * and caches the result */ getAllChainNetworkSettings(): Promise; /** Returns Chain Network Settings for a specific chain */ getChainNetworkSettings(chainNetwork: ChainNetwork): Promise; /** Loads settings value from the server e.g. configType='chains' returns valid chain types and addresses */ getConfig(configType: ConfigType): Promise; /** * Call api services/config to get configuration values of a specific type * Returns: for configType:Config.Chains, returns array of SettingChainNetwork objects for all chains suported by the service * */ getConfigFromApi(configType: ConfigType.Chains): Promise; /** Returns network config (url, port, etc.) for specified chainNetwork */ getChainNetworkNextworkConfig(chainNetwork: ChainNetwork): Promise; /** Return ChainNetwork that matches chainId (as defined in OreId Chain Network Settings) */ getChainNetworkByChainId(chainId: string): Promise; /** Returns true if network is NOT an EOS sisterchain */ isNotEosNetwork(chainNetwork: ChainNetwork): Promise; }