import { Component, type ButtonHTMLAttributes, type ReactElement, type ReactNode } from 'react';
import type { DialogClassNames, Strategy } from './types';
export type ReactConfirmAlertButton = {
label: string;
className?: string;
} & ButtonHTMLAttributes;
export interface ReactConfirmAlertProps {
targetId?: string;
title?: string;
message?: string;
buttons?: Array;
childrenElement?: () => ReactNode;
customUI?: (customUiOptions: {
title: string;
message: string;
buttons: Array;
onClose: () => void;
}) => ReactNode;
closeOnClickOutside?: boolean;
closeOnEscape?: boolean;
/** @deprecated use onKeyDown with the new API */
keyCodeForClose?: Array;
willUnmount?: () => void;
afterClose?: () => void;
onClickOutside?: () => void;
onKeypressEscape?: (event: KeyboardEvent) => void;
/** @deprecated use onKeyDown with the new API */
onkeyPress?: (event: KeyboardEvent, close: () => void) => void;
overlayClassName?: string;
/** render a native modal