export type Json = JsonPrimitive | JsonObject | JsonArray; export type JsonPrimitive = string | number | boolean | null; export interface JsonObject extends Record { } export interface JsonArray extends Array { } /** * Like `typeof json`, but includes arrays. Excludes `'undefined'` because it's not valid JSON. */ export type JsonType = 'string' | 'number' | 'boolean' | 'null' | 'object' | 'array'; /** * Returns the `JsonType` of `value`, which is like `typeof json` * but includes `'array'` and omits `'undefined'`. */ export declare const json_type_of: (value: Json) => JsonType | undefined; /** * Embeds `data` as a JSON string, escaping single quotes. * Useful for optimizing JSON in JS because it parses faster. */ export declare const json_embed: (data: T, stringify?: (data: T) => string) => string; /** * Serializes a value to JSON with deterministic key ordering. * Recursively sorts object keys alphabetically for consistent hashing. * * @returns deterministic JSON string representation */ export declare const json_stringify_deterministic: (value: unknown) => string; //# sourceMappingURL=json.d.ts.map