UNPKG

@openinc/parse-server-opendash

Version:
21 lines (20 loc) 621 B
import { ConfigMap } from ".."; /** * Config class to handle configuration values from environment variables. * It supports different types of values (string, int, float, boolean) and provides methods to get the values. * */ export declare class ConfigState<T extends string> { private configs; private baseConfigs; private values; constructor(configs: ConfigMap); init(log: boolean): Promise<void>; get(key: T): string; getBoolean(key: T): boolean; getNumber(key: T): number; export(): Record<string, any>; private validateKey; private validateKeyType; log(): void; }