import { Dispatch, SetStateAction } from "react"; import { DictDeepActionKeyWayType } from "../types"; export type UseFormDataSetValueType = (value: any, keyWay: DictDeepActionKeyWayType, options?: { unionToArray: boolean; index?: number; }) => void; export type UseFormDataGetValueType = (keyWay: DictDeepActionKeyWayType) => any; export type UseFormDataDeleteArrayItemType = (keyWay: DictDeepActionKeyWayType) => void; export type UseFormDataReturnType = { formData: T; setFormData: Dispatch>; setValue: UseFormDataSetValueType; getValue: UseFormDataGetValueType; resetForm: () => void; clearForm: () => void; deleteArrayItem: UseFormDataDeleteArrayItemType; }; export default function useFormData>(value?: T): UseFormDataReturnType;