import React from "react"; import { FormProps, ModalProps } from "../../components"; import { FormField, SerializedFormData } from "../../lib"; /** * Returns a function which, when called: shows a form dialog with a * confirmation callback and an optional cancellation callback. * * @typeParam T - The shape of the serialized form data. */ export declare const useFormDialog: () => >(title: string, message: React.ReactNode, fields: FormField[], labelConfirm: string, labelCancel: string, onConfirm: (data: FT) => void, onCancel?: () => void, modalProps?: Partial, formProps?: FormProps, autofocus?: boolean) => void;