UNPKG

@noanswer/context-compose

Version:

Orchestrate complex AI interactions with Context Compose. A powerful CLI and server for building, validating, and managing context for large language models using the Model Context Protocol (MCP).

44 lines (43 loc) 1.35 kB
import 'dotenv/config'; /** * Loads environment variables from .env file. * Finds and loads .env file from project root. */ export declare function loadEnv(): void; /** * Gets environment variable value with default fallback. * @param key Environment variable key * @param defaultValue Default value if not set * @returns Environment variable value or default */ export declare function getEnv(key: string, defaultValue?: string): string; /** * Gets required environment variable value. * Throws error if value is not set. * @param key Environment variable key * @returns Environment variable value * @throws Error When environment variable is not set */ export declare function getRequiredEnv(key: string): string; /** * Gets safe environment variables for logging (masks sensitive values) */ export declare function getSafeEnvVars(): Record<string, string>; /** * Check if running in development mode */ export declare function isDevelopment(): boolean; /** * Check if running in production mode */ export declare function isProduction(): boolean; /** * Prints environment variable configuration status. */ export declare function printEnvStatus(): void; export declare const EnvLoader: { load: typeof loadEnv; get: typeof getEnv; getRequired: typeof getRequiredEnv; printStatus: typeof printEnvStatus; };