import type { GetAllObjectPaths, GetPathObjectType } from '@under-control/core'; import type { ValidationErrorsArray, ValidationErrorsListProps } from '../types'; type FormExtractorAttrs = { includeGlobals?: boolean; nested?: boolean; }; type FormErrorsExtractor =

>(path: P, attrs?: FormExtractorAttrs) => ValidationErrorsListProps>; type GlobalFormErrorsExtractor = () => ValidationErrorsListProps; export type FormValidatorMessagesHookAttrs = { errors: ValidationErrorsArray; }; export type FormValidatorMessagesHookResult = { all: ValidationErrorsArray; global: GlobalFormErrorsExtractor; extract: FormErrorsExtractor; }; export declare function useFormValidatorMessages({ errors, }: FormValidatorMessagesHookAttrs): FormValidatorMessagesHookResult; export {};