import React, { ReactNode } from 'react'; import { FormState, FormErrors } from '../types'; interface FormContextValue extends FormState { setFieldValue: (field: string, value: any) => void; setFieldError: (field: string, error: string) => void; setFieldTouched: (field: string, touched: boolean) => void; validateField: (field: string) => Promise; validateForm: () => Promise; resetForm: () => void; submitForm: () => Promise; getFieldProps: (field: string) => { value: any; onChangeText: (value: string) => void; onBlur: () => void; error: string | undefined; touched: boolean; }; } export declare const useFormContext: () => FormContextValue; interface FormProviderProps { children: ReactNode; value: FormContextValue; } export declare const FormProvider: React.FC; export {};