@bitblit/ratchet-aws
Version:
Common tools for use with AWS browser and node
13 lines (12 loc) • 582 B
TypeScript
import { EnvironmentServiceProvider } from './environment-service-provider.js';
import { EnvironmentServiceConfig } from './environment-service-config.js';
export declare class EnvironmentService<T> {
private provider;
private cfg;
private readPromiseCache;
static defaultEnvironmentServiceConfig(): EnvironmentServiceConfig;
constructor(provider: EnvironmentServiceProvider<T>, cfg?: EnvironmentServiceConfig);
getConfig(name: string): Promise<T>;
fetchConfigValueByPath<T>(cfgName: string, path: string[]): Promise<T>;
private getConfigUncached;
}