game-analysis-types
Version:
Common TypeScript types and utilities for game analysis tools.
35 lines • 1.1 kB
TypeScript
/**
* Service for managing environment variables
*/
export declare class EnvironmentService {
static instance: EnvironmentService;
static getInstance(): EnvironmentService;
getVariable(key: string): string | undefined;
/**
* Alias for getVariable for backward compatibility
*/
get(key: string, defaultValue?: string): string;
/**
* Set an environment variable (mainly for testing)
* @param key - The environment variable key
* @param value - The value to set
*/
setVariable(key: string, value: string): void;
/**
* Check if an environment variable is defined
* @param key - The environment variable key
* @returns True if defined, false otherwise
*/
hasVariable(key: string): boolean;
/**
* Check if the environment is development
* @returns True if development environment
*/
isDevelopment(): boolean;
/**
* Check if the environment is production
* @returns True if production environment
*/
isProduction(): boolean;
}
//# sourceMappingURL=EnvironmentService.d.ts.map