export declare class InvalidConfiguration extends Error { constructor(key: string, value: any, description: string); } export declare function convertTimeStrToSeconds(input: string, envName: string, description?: string): number; export declare function convertSizeToBytes(input: string, envName: string, description?: string): number; export declare function asPortNumber(input: number, envName: string): number; /** * Returns the specified data source if assertions are passed, throws * an error otherwise. * @param dataSource The data source to assert. */ export declare function assertDataSource(dataSource?: string): string; /** * Returns data source specific environment variable name. */ export declare function keyByDataSource(origin: string, dataSource?: string, preAggregations?: boolean): string; /** * Checks if at least one PRE_AGGREGATIONS env var is set for a given data source. */ export declare function hasPreAggregationsEnvVars(dataSource?: string): boolean; declare const variables: Record any>; type Vars = typeof variables; export declare function getEnv(key: T, opts?: Parameters[0]): ReturnType; export declare function isDockerImage(): boolean; export {}; //# sourceMappingURL=env.d.ts.map