import type { PropsWithChildren, ReactNode } from 'react'; import type { FieldValues, SubmitErrorHandler, SubmitHandler, UseFormReturn } from 'react-hook-form'; import { Sheet } from '../Sheet'; import type { Dialog } from './Dialog'; type Props = { className?: string; formClassName?: string; open: boolean; title: ReactNode; form: UseFormReturn; submitLabel?: string; cancelLabel?: string; extraAction?: ReactNode; as?: typeof Dialog | typeof Sheet; onSubmit: SubmitHandler; onInvalid?: SubmitErrorHandler; onClose: () => void; dataTestId?: string; }; export declare const FormDialog: ({ className, formClassName, open, title, form, children, submitLabel, cancelLabel, extraAction, as: As, onSubmit, onInvalid, onClose, dataTestId, }: PropsWithChildren>) => import("react/jsx-runtime").JSX.Element; export {};