import React, { ReactNode } from "react";
import { LegacyButtonType } from "antd/lib/button/button";
interface IModalProps {
    style?: React.CSSProperties;
    width?: string | number;
    closable?: boolean;
    confirmLoading?: boolean;
    maskClosable?: boolean;
    title: string | ReactNode;
    visible: boolean;
    children?: React.ReactNode;
    onOk?: () => void;
    onCancel?: () => void;
    okText?: React.ReactNode;
    okType?: LegacyButtonType;
    cancelText?: React.ReactNode;
    content?: React.ReactNode;
    footer?: React.ReactNode;
}
interface IModalConfirmProps {
    style?: React.CSSProperties;
    width?: string | number;
    closable?: boolean;
    title: string | ReactNode;
    content?: React.ReactNode;
    onOk?: () => void;
    onCancel?: () => void;
    footer?: React.ReactNode;
}
declare const YYModal: {
    (props: IModalProps): React.JSX.Element;
    confirm(props: IModalConfirmProps): void;
};
export default YYModal;
