import { ReactElement } from 'react';
import type { FormProps } from 'antd/es/form';
import type { ModalProps } from 'antd/es/modal';
import type { CommonFormProps } from '../wau-base-form';
import './style';
export type ModalFormProps<T extends Record<string, any> = Record<string, any>> = Omit<FormProps<T>, 'onFinish' | 'title'> & CommonFormProps<T> & {
    /**
     * 接受返回一个boolean，返回 true 会关掉这个弹窗
     *
     * @name 表单结束后调用
     */
    onFinish?: (formData: T) => Promise<boolean | void>;
    /** @name 用于触发抽屉打开的 dom */
    trigger?: ReactElement;
    /** @name 受控的打开关闭 */
    visible?: ModalProps['visible'];
    /** @name 打开关闭的事件 */
    onVisibleChange?: (visible: boolean) => void;
    /**
     * 不支持 'visible'，请使用全局的 visible
     *
     * @name 弹框的属性
     */
    modalProps?: Omit<ModalProps, 'visible'>;
    /** @name 弹框的标题 */
    title?: ModalProps['title'];
    /** @name 弹框的宽度 */
    width?: ModalProps['width'];
};
declare function ModalForm<T extends Record<string, any> = Record<string, any>>({ children, trigger, onVisibleChange, modalProps, onFinish, title, width, ...rest }: ModalFormProps<T>): import("react/jsx-runtime").JSX.Element;
export default ModalForm;
