import { type ComponentMap, type FormField } from '../components/Form/types'; export type UseFormStateProps = { fields: FormField[]; initialValues?: Record; onSubmit?: (values: Record) => void | Promise; onSuccess?: (values: Record) => void; onError?: (error: any) => void; }; export type UseFormStateReturn = { values: Record; globalError: any; handleFieldChange: (fieldName: string, value: any) => void; handleSubmit: (e: React.FormEvent) => void; getFieldProps: (field: FormField) => { [key: string]: any; value: any; onChange: (value: any) => void; }; }; export declare const useFormState: ({ fields, initialValues, onSubmit, onSuccess, onError, }: UseFormStateProps) => UseFormStateReturn; //# sourceMappingURL=useFormState.d.ts.map