configcat-common
Version:
ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.
14 lines • 832 B
TypeScript
import type { LazyLoadOptions } from "./ConfigCatClientOptions";
import type { IConfigFetcher } from "./ConfigFetcher";
import type { IConfigService, RefreshResult } from "./ConfigServiceBase";
import { ClientCacheState, ConfigServiceBase } from "./ConfigServiceBase";
import type { ProjectConfig } from "./ProjectConfig";
export declare class LazyLoadConfigService extends ConfigServiceBase<LazyLoadOptions> implements IConfigService {
private readonly cacheTimeToLiveMs;
readonly readyPromise: Promise<ClientCacheState>;
constructor(configFetcher: IConfigFetcher, options: LazyLoadOptions);
getConfig(): Promise<ProjectConfig>;
refreshConfigAsync(): Promise<[RefreshResult, ProjectConfig]>;
getCacheState(cachedConfig: ProjectConfig): ClientCacheState;
}
//# sourceMappingURL=LazyLoadConfigService.d.ts.map