/** * Sidecar storage for `~/.peaks/config.json` (the slim 2.0 file). * The on-disk `~/.peaks/config.json` is strictly `{ version, ocr.llm.* }`. * LIVE runtime data (provider configs, proxy, workspace state) lives in * dedicated sidecar files under the same `~/.peaks/` directory so the * user has one discoverable location for all global peaks state, while * `config.json` itself remains a minimal, schema-validatable artifact. * * Each sidecar has its own `version` field (`"2.0.0"`) for future migrations. * All reads/writes use the same hardened-fs primitives as the main * config file (symlink / hardlink / HTTPS guards via * `validateUserConfigPathForWrite`). */ export declare const SIDECAR_SCHEMA_VERSION = "2.0.0"; export declare function providersConfigPath(home?: string): string; export declare function proxyConfigPath(home?: string): string; export declare function workspacesConfigPath(home?: string): string; export declare function sidecarExists(path: string): boolean; export declare function readSidecarJson(path: string, fallback: T): T; export declare function writeSidecarJson(path: string, content: unknown): void; export declare function ensureSidecarVersion(content: { version?: unknown; }): { version: string; };