import type * as React from 'react'; import type { FieldRoot } from '../root/FieldRoot'; export interface FieldValidityState { /** * Whether the control passed validation. `null` before it has run. */ valid: boolean | null; /** * The validation messages, or an empty array when valid. */ errors: string[]; /** * The field's broader state (disabled, touched, dirty, filled, focused). */ field: FieldRoot.State; } /** * A headless part that hands the field's validity to a render function. * Renders nothing of its own. */ export declare function FieldValidity(props: FieldValidity.Props): React.ReactElement | null; export interface FieldValidityProps { children: (validity: FieldValidityState) => React.ReactNode; } export declare namespace FieldValidity { type State = FieldValidityState; type Props = FieldValidityProps; } //# sourceMappingURL=FieldValidity.d.ts.map