import { FunctionComponent } from 'react'; import { TError } from './types'; import { UseFormReturn, FieldValues } from 'react-hook-form'; type TuseErrors = UseFormReturn & { GlobalError: FunctionComponent; setErrors: (e: TError) => void; }; declare const useForm: () => TuseErrors; export declare const validate: { email: { pattern: { value: RegExp; message: string; }; }; }; export default useForm;