export declare const CONFIG_DIR_NAME = "openspec"; export declare const CONFIG_FILE_NAME = "config.json"; export interface TelemetryConfig { anonymousId?: string; noticeSeen?: boolean; } export interface GlobalConfig { telemetry?: TelemetryConfig; [key: string]: unknown; } /** * Get the path to the global config file. * Follows XDG Base Directory Specification and platform conventions. * * - All platforms: $XDG_CONFIG_HOME/openspec/ if XDG_CONFIG_HOME is set * - Unix/macOS fallback: ~/.config/openspec/ * - Windows fallback: %APPDATA%/openspec/ */ export declare function getConfigPath(): string; /** * Read the global config file. * Returns an empty object if the file doesn't exist. */ export declare function readConfig(): Promise; /** * Write to the global config file. * Preserves existing fields and merges in new values. */ export declare function writeConfig(updates: Partial): Promise; /** * Get the telemetry config section. */ export declare function getTelemetryConfig(): Promise; /** * Update the telemetry config section. */ export declare function updateTelemetryConfig(updates: Partial): Promise; //# sourceMappingURL=config.d.ts.map