/** * Global configuration interface stored in ~/.the-codegen-project/config.json * This configuration persists across all projects and CLI sessions. */ export interface GlobalConfig { version: string; telemetry: TelemetryConfig; hasShownTelemetryNotice: boolean; lastUpdated?: string; } /** * Telemetry configuration interface */ export interface TelemetryConfig { enabled: boolean; anonymousId: string; endpoint: string; trackingId: string; apiSecret: string; } /** * Get global configuration. * Creates default config if it doesn't exist. * This function never throws - returns default config on any error. */ export declare function getGlobalConfig(): Promise; /** * Update global configuration. * Creates config directory if it doesn't exist. * This function never throws - fails silently on errors. */ export declare function updateGlobalConfig(config: GlobalConfig): Promise; /** * Check if the global config file exists. */ export declare function configFileExists(): Promise; /** * Get the path to the global config file. * Useful for debugging and testing. */ export declare function getConfigFilePath(): string; /** * Get the path to the config directory. * Useful for debugging and testing. */ export declare function getConfigDirectoryPath(): string;