import type { ValidationState } from './types.js'; /** * The single place that decides what `onValidityChange` hears about. * * - Inside a `FormField`, nothing is emitted until error highlighting is * enabled for the field (first blur, `validate()`, submit, messages with `showError`). The latest * state held back meanwhile is emitted the moment highlighting opens. Without * a `FormField` there is no highlighting state, so nothing is held back. * - A settled state is only emitted when its error set differs from the last * emitted one. The trigger is not part of the comparison, and a valid field * starts out with nothing emitted. * - `pending` is emitted once when an async run starts, carrying the last * emitted errors. Runs superseding it do not emit again. A run that * reveals on mount (`initial`) emits only its `done`. * - The `done` that follows an emitted `pending` always emits, so the consumer * is never left waiting. * * @internal */ export declare function useValidationStateEmitter(onValidityChange: ((state: ValidationState) => void) | undefined): (state: ValidationState) => void; //# sourceMappingURL=useValidationStateEmitter.d.ts.map