import type { ZodType } from "zod"; /** * Strip single-line (//) and multi-line (/* *\/) comments from a JSON string, * preserving string literals intact. Enables reading JSONC files with standard * JSON.parse(). */ export declare function stripJsonComments(text: string): string; /** * Async: read & parse a JSON/JSONC file. Returns undefined on missing/parse-error. */ export declare function readJsonSafe(filePath: string): Promise; /** * Sync: read & parse a JSON/JSONC file. Returns undefined on missing/parse-error. */ export declare function readJsonSafeSync(filePath: string): T | undefined; /** * Validate a parsed value against a Zod schema. * Returns the typed value on success; throws with file path context on failure. */ export declare function validateJson(data: unknown, schema: ZodType, filePath: string): T; //# sourceMappingURL=json.d.ts.map