import { BaseKey, BaseRecord, HttpError } from "@pankod/refine-core"; import { FieldValues } from "react-hook-form"; import { UseFormProps, UseFormReturnType } from "../useForm"; export declare type UseModalFormReturnType = UseFormReturnType & { modal: { submit: (values: TVariables) => void; close: () => void; show: (id?: BaseKey) => void; visible: boolean; title: string; }; }; export declare type UseModalFormProps = UseFormProps & { /** * @description Configuration object for the modal. * `defaultVisible`: Initial visibility state of the modal. * * `autoSubmitClose`: Whether the form should be submitted when the modal is closed. * * `autoResetForm`: Whether the form should be reset when the form is submitted. * @type `{ defaultVisible?: boolean; autoSubmitClose?: boolean; autoResetForm?: boolean; }` * @default `defaultVisible = false` `autoSubmitClose = true` `autoResetForm = true` */ modalProps?: { defaultVisible?: boolean; autoSubmitClose?: boolean; autoResetForm?: boolean; }; }; export declare const useModalForm: ({ modalProps, refineCoreProps, ...rest }?: UseModalFormProps) => UseModalFormReturnType; //# sourceMappingURL=index.d.ts.map