/** * Configuration management for Cortex CLI * * Thin facade over SettingsLoader — all values come from .env. * Preserves the CLIConfig interface for backward compatibility with * 35+ command files that import ConfigManager.get('serverUrl') etc. */ export interface CLIConfig { serverUrl: string; defaultModel?: string; theme: string; timeout: number; maxRetries: number; logLevel: 'silent' | 'error' | 'info' | 'debug'; } export declare class ConfigManager { private static cachedConfig; private static loader; /** Override for the project root that holds `.env` (test isolation). */ private static overrideRoot; /** The directory whose `.env` ConfigManager reads/writes. */ private static rootDir; private static getLoader; static load(): CLIConfig; static get(key: K): CLIConfig[K]; static set(key: K, value: CLIConfig[K]): Promise; static reset(): Promise; static save(config: CLIConfig): Promise; static validate(_config: Partial): boolean; static clearCache(): void; static getConfigPath(): string; /** * Redirect where ConfigManager reads/writes its `.env`. Pass the path to a * `.env` file (its directory becomes the project root) or `null` to restore * auto-detection. Primarily for test isolation, so tests never mutate the * real project `.env`. */ static setConfigPath(envFilePath: string | null): void; } //# sourceMappingURL=ConfigManager.d.ts.map