UNPKG

404 BTypeScriptView Raw
1import { DialogProps } from './index';
2import type { ReactNode } from 'react';
3export declare type DialogConfirmProps = Omit<DialogProps, 'visible' | 'closeOnAction' | 'actions'> & {
4 confirmText?: ReactNode;
5 cancelText?: ReactNode;
6 onConfirm?: () => void | Promise<void>;
7 onCancel?: () => void | Promise<void>;
8};
9export declare function confirm(p: DialogConfirmProps): Promise<boolean>;