export interface ToolConfig { command?: string; defaultFlags?: string[]; } export interface VersionCache { lastCheck: number; latestVersion: string; } export interface Config { defaultTool: string; tools: { [name: string]: ToolConfig; }; versionCache?: VersionCache; } /** * Get the config directory path */ export declare function getConfigDir(): string; /** * Get the config file path */ export declare function getConfigPath(): string; /** * Ensure the config directory exists */ export declare function ensureConfigDir(): void; /** * Load configuration from disk, or return defaults */ export declare function loadConfig(): Config; /** * Save configuration to disk */ export declare function saveConfig(config: Config): void; /** * Get the default tool (checks env var first, then config) */ export declare function getDefaultTool(): string; /** * Set the default tool and save to config */ export declare function setDefaultTool(tool: string): { success: boolean; message: string; }; /** * Get the cached version info */ export declare function getVersionCache(): VersionCache | undefined; /** * Save version cache to config */ export declare function setVersionCache(cache: VersionCache): void; /** * Check if we should perform a version check (based on cache age) */ export declare function shouldCheckVersion(): boolean; //# sourceMappingURL=config.d.ts.map