UNPKG

@agnostack/env

Version:

Please contact agnoStack via info@agnostack.com for any questions

34 lines (33 loc) 1.07 kB
export namespace ENV_PREFIX { let NEXT: string; let VITE: string; let GATSBY: string; let DEFAULT: string; } export const ENV_PREFIXES: string[]; export function nextKeyValidator(envKey: any): boolean; export function lowerKeyValidator(envKey: any): boolean; export function publicKeyValidator(envKey: any): boolean; export function cleanLowerEnv(_env: any, keyValidator?: (envKey: any) => boolean): {}; export function cleanPublicEnv(_env: any, keyValidator?: (envKey: any) => boolean): {}; export function parseEnvData(_env?: NodeJS.ProcessEnv): { env: { ENVIRONMENT: string; TZ?: string; }; nextEnv: {}; publicEnv: {}; stringifiedEnv: {}; argParams: {}; params: { ENVIRONMENT: string; TZ?: string; }; args: any[]; }; export function getPublicEnvValue(publicEnv: any, key: any): any; export function replaceEnvTemplate(replaceable: any, { env: _env, template, callback, }?: { env?: NodeJS.ProcessEnv; template?: RegExp; callback?: (replacedValue: any) => any; }): string;