export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; }; export declare function isRecord(value: JsonValue): value is { [key: string]: JsonValue; }; export declare function parseJson(text: string, path: string): JsonValue; export declare function getErrorMessage(error: unknown): string; export declare function hasErrorCode(error: unknown, code: string): boolean; export declare function quoteCommandPart(part: string): string; /** Shared JSON string-array shape guard for folder/settings list readers. */ export declare function isStringArray(value: JsonValue): value is string[]; /** * Only absolute (POSIX, Windows drive-letter, or UNC), `~/`, or `$HOME/` * prefixed entries are trusted where a string becomes a nono grant/argv * value — the shared flag-smuggling shape guard. The Windows shapes matter * because `cradle-windows-x64.exe` is a shipped target: without them every * drive-letter alias or grant is warned and dropped. */ export declare function isPathShaped(value: string): boolean; /** Warn once, naming every key in `record` not present in `supported`. */ export declare function warnUnsupportedKeys(record: { readonly [key: string]: JsonValue; }, path: string, supported: readonly string[], warnings: string[]): void;