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 in the top layer instead of the v3 overlay (default false) */ modal?: boolean; /** what happens to a dialog that is already open (default 'replace', as in v3) */ strategy?: Strategy; /** leave out the v3 class names */ unstyled?: boolean; /** classes per slot, added after the app defaults */ classNames?: DialogClassNames; /** use the new default look instead of the 3.0 one; customUI then sits in the dialog body */ skin?: boolean; } export type ConfirmAlertOptions = ReactConfirmAlertProps; export declare function confirmAlert(properties: ReactConfirmAlertProps): void; /** * Rendered in place, open while mounted. The parent unmounts it from a button's onClick. * @deprecated use */ export default class ReactConfirmAlert extends Component { componentWillUnmount(): void; render(): ReactElement; }