/** * Configuration system for Lex. * Provides centralized configuration loading with environment variable overrides. * * Precedence: * 1. Environment variables (LEX_APP_ROOT, LEX_DB_PATH, LEX_POLICY_PATH) * 2. .lex.config.json file * 3. Sensible defaults */ /** * Configuration structure for Lex application. */ export interface LexConfig { paths: { /** Application root directory - used for path resolution */ appRoot: string; /** Database file path (relative to appRoot if not absolute) */ database: string; /** Policy file path (relative to appRoot if not absolute) */ policy: string; }; } /** * Load and return the application configuration. * Configuration is loaded once and cached for subsequent calls. * * Priority order: * 1. Environment variables (LEX_APP_ROOT, LEX_DB_PATH, LEX_POLICY_PATH) * 2. .lex.config.json file in project root * 3. Default values * * @returns The resolved configuration */ export declare function loadConfig(): LexConfig; /** * Reset the cached configuration (useful for testing). * @internal */ export declare function resetConfig(): void; /** * Get the application root directory. * Convenience function for accessing the most commonly used config value. */ export declare function getAppRoot(): string;