import { ReactNode } from "react";
import { ButtonProps } from "../../Button";
import './index.scss';
type ConfirmType = "success" | "info" | "error" | "warn" | "warning";
interface ConfirmDialogProps {
    /**图标类型*/
    type?: ConfirmType;
    /**打开*/
    open?: boolean;
    /**标题*/
    title?: ReactNode;
    /**内容*/
    content?: ReactNode;
    /**自定义图标*/
    icon?: ReactNode;
    /**ok文本*/
    okText?: string;
    /**cancel文本*/
    cancelText?: string;
    /**底部操作栏*/
    actions?: ReactNode;
    /**是否显示actions*/
    showActions?: boolean;
    /**确定回调*/
    onOk?: Function;
    /**取消回调*/
    onCancel?: Function;
    /**cls*/
    className?: string;
    /**confirm 宽度*/
    width?: string | number;
    /**显示取消按钮*/
    showCancel?: boolean;
    /**显示关闭按钮*/
    closable?: boolean;
    /**禁用backdrop点击*/
    disableBackdropClick?: boolean;
    /**禁用esc键*/
    disableEscapeKeyDown?: boolean;
    /**确定按钮属性*/
    okButtonProps?: ButtonProps;
    /**取消按钮属性*/
    cancelButtonProps?: ButtonProps;
    /**promise resolve*/
    resolveFn?: Function;
    /**确定时回调*/
    callback?: Function;
    /**销毁方法*/
    destroy?: Function;
}
type ConfirmProps = Omit<ConfirmDialogProps, 'open' | 'resolveFn' | 'destroy' | 'callback'> & {
    uuid?: string;
};
interface ConfirmFn {
    (config: ConfirmProps | string, callback?: Function): void | Promise<any>;
}
export interface ConfirmObject {
    info: ConfirmFn;
    warn: ConfirmFn;
    error: ConfirmFn;
    success: ConfirmFn;
    destroyAll?: (uuid?: string) => void;
}
export declare const Confirm: ConfirmObject;
export {};
