import React, { ReactNode } from 'react'; import { FieldValues, SubmitHandler, UseFormGetValues, UseFormSetValue } from 'react-hook-form'; import { UseFormHandleSubmit, UseFormReset } from "react-hook-form/dist/types/form"; export declare type FormInstance = { getValues: UseFormGetValues; setValue: UseFormSetValue; submit: UseFormHandleSubmit; reset: UseFormReset; }; export declare type FormProps = { /** * a node to be rendered in the special component. */ children?: ReactNode; /** * initial fields */ initialValues?: FieldValues; /** * submit callback */ onFinish?: SubmitHandler; /** * form instance */ form?: React.MutableRefObject; }; export declare const Form: React.ForwardRefExoticComponent>;