export type ConfigDocument = Record; /** Read the user-facing JSON document without normalizing away its configured shape. */ export declare function readConfigDocument(path: string): ConfigDocument; /** * Apply an edit only after the existing config loader accepts the complete result. * * The temporary validation file is kept beside the target so `${ENV}` expansion and relative * paths behave just as they do when the proxy starts. Unknown top-level settings are preserved. */ export declare function updateConfigDocument(path: string, edit: (document: ConfigDocument) => void): void; /** Parse a CLI value as JSON when possible, otherwise keep it as a string. */ export declare function parseConfigValue(value: string): unknown; export declare function parseConfigPath(path: string): string[]; export declare function readConfigPath(document: ConfigDocument, path: string): unknown; export declare function writeConfigPath(document: ConfigDocument, path: string, value: unknown): void; export declare function deleteConfigPath(document: ConfigDocument, path: string): boolean;