import React from 'react'; import type { IValidationCategory } from './categories'; export interface IValidationData { category: IValidationCategory | undefined; messageNode: React.ReactNode; hidden: boolean; } /** * Encapsulates processing of a validationMessage for use within a form field. * * 1) Extracts the validation message and category from a validationMessage (see categories.ts) * 2) Determines the visiblity of the validation message (errors and warnings are visible when the field is touched) * * @returns { category, messageNode, hidden } */ export declare function useValidationData(validationMessage: React.ReactNode, touched: boolean): IValidationData;