import { AriaAttributes, type RefObject, type FormEvent as ReactFormEvent, type ChangeEvent, type FocusEvent } from 'react'; /** * Getter function to read the error type form the validity state. * The validity state values are readonly and can't therefore not be iterated but need to accessed directly instead. * https://stackoverflow.com/questions/20891950/html-validation-api-returns-an-empty-object-in-firefox?rq=2 * @internal */ export declare function getErrorType(validityState?: ValidityState): "badInput" | "patternMismatch" | "rangeOverflow" | "rangeUnderflow" | "stepMismatch" | "tooLong" | "tooShort" | "typeMismatch" | "valueMissing" | null; /** * Internal getter function to return the matching formatted message for * each validityStateKey. * @internal */ export declare function getI18nErrorMessage(key: keyof ValidityState, ref?: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | null): import("react/jsx-runtime.js").JSX.Element | null; /** @internal */ interface FormFieldValidationProps { ariaProps: Pick; onInvalid: (event: ReactFormEvent) => void; onChange: (event?: ChangeEvent) => void; onBlur: (event?: FocusEvent) => void; } /** @internal */ export declare function useFormFieldValidation(ref: RefObject, controlId?: string): FormFieldValidationProps; export {};