import { PropsWithChildren, HTMLProps } from 'react'; import { DefaultValues, Mode, SubmitHandler, DeepPartial, UseFormReturn } from 'react-hook-form'; import { ObjectSchema } from 'yup'; export interface FormProps extends PropsWithChildren { className?: string; name?: string; mode?: Mode; reValidateMode?: Exclude; defaultValues?: DefaultValues; schema?: ObjectSchema; formProps?: HTMLProps; onSubmit?: SubmitHandler; onChange?: (data: DeepPartial) => void; } export type FormRef = UseFormReturn; declare function FormInner({ className, name, children, mode, reValidateMode, defaultValues, schema, formProps, onSubmit, onChange, }: FormProps, ref: React.Ref>): import("react/jsx-runtime").JSX.Element; export declare const Form: (props: FormProps & { ref?: React.Ref>; }) => ReturnType; export {};