1 | import { DialogProps } from './index';
|
2 | import type { ReactNode } from 'react';
|
3 | export 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 | };
|
9 | export declare function confirm(p: DialogConfirmProps): Promise<boolean>;
|