/** * The single evaluator for a property's `visibleWhen` predicate — a static, * declarative field-visibility rule (scope B). The renderer (`ObjectFields`) and the * validator both call it so a field shown by the form is exactly the field validated at * submit, and a hidden field is neither rendered nor required. It reads only sibling * values already in the object; it never calls a consumer handler (that is scope A). * * A malformed predicate degrades to VISIBLE: the send-time server validation rejects a * malformed predicate loudly, so one never reaches a well-formed render, and showing a * field is the safe non-hiding default (a hidden-by-accident required field would dead- * end a form). */ import type { JsonSchema } from './types'; /** * Whether a property carrying `schema.visibleWhen` is visible against the current * `values` of its enclosing object. Absent predicate ⇒ always visible. Exactly one of * `equals`/`in`/`notEmpty` must be present; otherwise the predicate is malformed and the * field stays visible. */ export declare function isFieldVisible(schema: JsonSchema, values: Record): boolean; //# sourceMappingURL=visibility.d.ts.map