import React from 'react'; import { FormErrorProviderProps } from '../types/FormErrorProviderProps'; /** * Provides a context for form errors. * This component wraps around form-related components * and provides them access to form errors. */ export declare const FormErrorProvider: React.FC; /** * Custom hook to access form errors. * @param fieldName - The name of the field whose error is to be retrieved. * @returns The error message associated with the field if present, otherwise null. */ export declare const useFormError: (fieldName: string) => string | null;