/** * ConfigManager provides surgical config file modification using jsonc-parser. * Preserves comments, formatting, and supports JSON/JSONC files. */ export declare class ConfigManager { /** * Reads and parses a JSON/JSONC configuration file. * @param filePath - Path to the configuration file * @returns Parsed configuration object * @throws Error if file not found or contains invalid JSON */ readConfig(filePath: string): Promise; /** * Writes content to a file atomically using write-then-rename pattern. * Creates parent directories if they don't exist. * @param filePath - Path to write the file * @param content - Content to write * @throws Error if write fails (permissions, disk full, etc.) */ writeConfig(filePath: string, content: string): Promise; /** * Surgically modifies a value at the specified path in a config file. * Preserves comments, formatting, and other content. * @param filePath - Path to the configuration file * @param path - Array of property names/indexes representing the path to the value * @param value - New value to set at the specified path * @throws Error if file not found or modification fails */ modifyConfig(filePath: string, path: string[], value: any): Promise; } //# sourceMappingURL=config-manager.d.ts.map