/** * Proxy config (`httpProxy`) lives in `~/.peaks/proxy.json` — NOT in * the slim `~/.peaks/config.json`. The slim config only carries * `version` + `ocr.llm.*`; the HTTP/HTTPS proxy the CLI uses for * outbound requests lives here in a dedicated sidecar. * * This module is the only owner of proxy.json. Back-compat reads * from `~/.peaks/config.json.proxy.httpProxy` are tolerated for * legacy configs (1.x); the next `setHttpProxy` call promotes the * value into `~/.peaks/proxy.json` and the legacy config.json field * is stripped by `loadGlobalConfig` governance. */ export type ProxySidecar = { version: string; httpProxy: string | null; }; export declare function isValidProxyUrl(value: string): boolean; export declare function validateProxyUrl(value: unknown): void; export declare function getHttpProxy(): string | null; export declare function setHttpProxy(httpProxy: string | null): void; export declare function clearHttpProxy(): void;