export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; }; /** Checks the container only; field types still require domain validation. */ export declare function requireObject(value: unknown, error?: string): Record; /** Ordinary persisted objects; optional properties keep JSON.stringify semantics. */ export declare function objectJson(value: unknown): string; export declare function optionalJson(value: unknown): string | null; export declare function parseObject(text: string): Record; export declare function defined>(value: T): T; /** Canonical JSON for immutable identities: reject lossy values, sort object keys. * This deliberately differs from ordinary JSON.stringify's optional-field behavior. */ export declare function canonicalJson(value: unknown, error?: string): string; //# sourceMappingURL=json.d.ts.map