import { StatusKey } from '../i18n/types'; import { FieldDescriptor } from '../types'; import { QuestionnaireStateErrorMessagesMap } from './QuestionnaireStep'; import { DescriptorState } from './types'; /** * Returns the error keys for a single descriptor. * Used by the hydrator and by adaptive-skip predicates that only * care about one field's validity. * * Iterates the registry directly (not `Object.keys(fields)`) so that * non-state-bearing descriptors with `getErrors` — e.g. text-type RTT * mismatch banners — are evaluated alongside editable fields. * * Visibility-gating happens at the call site (the hydrator gates errors * via `getEffectiveErrors`); this function emits errors regardless of * visibility, matching the legacy rule semantics. */ export declare const getFieldErrorKeys: (state: DescriptorState, descriptor: FieldDescriptor) => StatusKey[] | undefined; export declare const getInvalidFields: (state: DescriptorState) => QuestionnaireStateErrorMessagesMap;