UNPKG

320 BTypeScriptView Raw
1import { ModalProps } from './index';
2import type { ReactNode } from 'react';
3export declare type ModalAlertProps = Omit<ModalProps, 'visible' | 'closeOnAction' | 'actions'> & {
4 confirmText?: ReactNode;
5 onConfirm?: () => void | Promise<void>;
6};
7export declare function alert(p: ModalAlertProps): Promise<void>;