import React from 'react'; import type { FieldValues, UseFormReturn, UseFormProps } from 'react-hook-form'; export interface FormProps extends Omit, 'onSubmit'> { error?: any; /** * The methods returned by `useForm`. * This prop is only necessary if you've called `useForm` yourself to get * access to one of its functions, like `reset`. * * @example * * ```typescript * const formMethods = useForm() * * const onSubmit = (data: FormData) => { * sendDataToServer(data) * formMethods.reset() * } * * return ( *
* ) * ``` */ formMethods?: UseFormReturn; /** * Configures how React Hook Form performs validation, among other things. * * @example * * ```jsx * * ``` * * @see {@link https://react-hook-form.com/docs/useform} */ config?: UseFormProps; onSubmit?: (value: TTransformedValues, event?: React.BaseSyntheticEvent) => void; } export declare const Form: (props: FormProps & React.RefAttributes) => React.ReactElement | null; //# sourceMappingURL=Form.d.ts.map