/** * JSON value model and canonical serialization. * * Canonical serialization is a determinism primitive: stable node IDs and * determinism hashes are derived from it, so key order must not depend on how a * document happened to be written. */ export type JsonPrimitive = string | number | boolean | null; export type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue; }; /** True for a plain object (not an array, not null). */ export declare function isPlainObject(value: unknown): value is Record; /** True for any JSON-serializable value. */ export declare function isJsonValue(value: unknown): value is JsonValue; /** * Serialize a JSON value with object keys sorted lexicographically. * * Used for content hashes, never for emitted HTML: emitted output uses the * spec's own ordering where ordering is meaningful to a reader. */ export declare function canonicalStringify(value: JsonValue): string; //# sourceMappingURL=json.d.ts.map