import { ModalReactProps } from './Modal'; import '@douyinfe/semi-foundation/lib/es/modal/modal.css'; export interface ConfirmProps extends ModalReactProps { type: 'success' | 'info' | 'warning' | 'error' | 'confirm'; } export default function confirm(props: ConfirmProps): { destroy: () => void; update: (newConfig: T extends { type: Exclude; } ? ModalReactProps : ConfirmProps) => void; }; export declare function withInfo(props: ModalReactProps): ConfirmProps; export declare function withSuccess(props: ModalReactProps): ConfirmProps; export declare function withWarning(props: ModalReactProps): ConfirmProps; export declare function withError(props: ModalReactProps): { type: "success" | "info" | "warning" | "error" | "confirm"; getContainerContext?: () => { Provider: import("vue").VNode; }; cancelButtonProps?: import("../button/Button").ButtonProps; okButtonProps: import("../button/Button").ButtonProps; bodyStyle?: import("vue").CSSProperties; maskStyle?: import("vue").CSSProperties; style?: import("vue").CSSProperties; icon: import("vue").VNode | string | (() => import("vue").VNode | string); closeIcon?: import("vue").VNode | string | (() => import("vue").VNode | string); title?: import("vue").VNode | string | (() => import("vue").VNode | string); content?: import("vue").VNode | string | (() => import("vue").VNode | string); footer?: import("vue").VNode | string | null | (() => import("vue").VNode | string); header?: import("vue").VNode | string | (() => import("vue").VNode | string); onCancel?: (e: MouseEvent) => void | Promise; onOk?: (e: MouseEvent) => void | Promise; afterClose?: () => void; cancelText?: string; centered?: boolean; className?: string; modalContentClass?: string; closable?: boolean; confirmLoading?: boolean; cancelLoading?: boolean; hasCancel?: boolean; height?: string | number; mask?: boolean; maskClosable?: boolean; maskFixed?: boolean; motion?: boolean; okText?: string; okType?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").OKType; visible?: boolean; width?: string | number; zIndex?: number; getPopupContainer?: () => HTMLElement; closeOnEsc?: boolean; size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size; lazyRender?: boolean; keepDOM?: boolean; direction?: any; fullScreen?: boolean; preventScroll?: boolean; footerFill?: boolean; }; export declare function withConfirm(props: ModalReactProps): ConfirmProps;