import React from 'react'; import { ReactProviderProps } from '@type/Components'; export declare type FormDataValue = string | undefined | null; export declare type FormData = { [key: string]: FormDataValue; }; export declare type FormError = { [key: string]: string | undefined; }; export interface IFormContext { data: FormData; errors: FormError; isSubmitting: boolean; isSubmitted: boolean; submitTimes: number; isError: boolean; readOnly: boolean; debounce: boolean; submit(): Promise; setData(key: string | FormData, value: FormDataValue): void; setError(key: string, value: string | undefined): void; clearError(name: string): void; reset(): void; } export declare const FormContext: React.Context; export declare function useForm(): IFormContext; export declare function FromProvider({ children }: ReactProviderProps): JSX.Element;