import type { ConvoAIConfig, ProfileConfig } from '../api/types.js'; export interface ResolvedProfile extends ProfileConfig { app_id: string; customer_id: string; customer_secret: string; } /** Load the global config file. Returns an empty config if the file is missing or unreadable. */ export declare function loadConfig(): ConvoAIConfig; /** Persist the config object to disk. */ export declare function saveConfig(config: ConvoAIConfig): void; /** Load a project-local .convoai.json if it exists. Returns null otherwise. */ export declare function loadProjectConfig(): Partial | null; /** * Get the active profile, merging base config fields with the named (or default) profile. * Throws if required credentials (app_id, customer_id, customer_secret) are missing. */ export declare function getActiveProfile(profileName?: string): ResolvedProfile; /** * Fully resolved config: project config > profile config > base config. * Returns a merged ProfileConfig (credentials may still be absent if unconfigured). */ export declare function resolveConfig(profileName?: string): ProfileConfig;