import { ReactNode } from 'react'; import { FieldValues, UseFormProps } from 'react-hook-form'; import { RaRecord } from '../types'; import { ValidateForm } from './getSimpleValidationResolver'; /** * Creates a form element, initialized with the current record, calling the saveContext on submit * * Wrapper around react-hook-form's useForm, FormContextProvider, and
* ); * * @typedef {Object} Props the props you can use * @prop {Object} defaultValues * @prop {Function} validate * @prop {Function} save * * @see useForm * @see FormGroupContext * * @link https://react-hook-form.com/api/useformcontext */ export declare const Form: (props: FormProps) => JSX.Element; export declare type FormProps = FormOwnProps & Omit