/** * JSON value helpers shared across the analysis package. * * Both {@link ./semantic-targets.ts}'s IR validator and * {@link ./constraint-applicability.ts}'s snapshot-path `@const` check need * deep-equality and type-guard helpers for `JsonValue`. This file holds the * canonical implementations so the two callers cannot drift. * * These helpers are internal to `@stripe/formspec-analysis` — they are not re- * exported from `internal.ts` and are not part of the published API. * * @internal */ import type { JsonValue } from "@stripe/formspec-core/internals"; /** * Deep-equality check for two JSON values. * * Compares arrays element-wise (order-sensitive) and objects key-wise * (order-insensitive; sorted key comparison). Primitives compare via `===`. * * Canonical implementation. Both the IR validator in `semantic-targets.ts` * and the snapshot-path `@const` check in `constraint-applicability.ts` call * this — keep them consistent by editing this file, not by adding per-caller * copies. * * @internal */ export declare function jsonValueEquals(left: JsonValue, right: JsonValue): boolean; //# sourceMappingURL=json-value.d.ts.map