/**
 * Configuration loader for Code Buddy CLI
 *
 * Handles loading and saving configuration from:
 * - Environment variables
 * - User settings file
 * - Command line options
 */
export interface CLIConfig {
    apiKey?: string;
    baseURL: string;
    model?: string;
    maxToolRounds: number;
    maxPrice: number;
}
/**
 * Ensure user settings directory exists
 */
export declare function ensureUserSettingsDirectory(): void;
/**
 * Load API key from environment or user settings
 */
export declare function loadApiKey(): string | undefined;
/**
 * Load base URL from environment or user settings
 */
export declare function loadBaseURL(): string;
/**
 * Load model from environment or user settings
 */
export declare function loadModel(): string | undefined;
/**
 * Load full configuration
 */
export declare function loadConfig(options: {
    apiKey?: string;
    baseUrl?: string;
    model?: string;
    maxToolRounds?: string;
    maxPrice?: string;
}): CLIConfig;
/**
 * Save command line settings to user settings file
 */
export declare function saveCommandLineSettings(apiKey?: string, baseURL?: string): Promise<void>;
/**
 * Validate that required configuration is present
 */
export declare function validateConfig(config: CLIConfig): {
    valid: boolean;
    errors: string[];
};
