import * as React from 'react'; import { BaseUIChangeEventDetails } from "../../utils/createBaseUIEventDetails.js"; import { DialogHandle } from "../../dialog/store/DialogHandle.js"; import type { DialogRoot } from "../../dialog/root/DialogRoot.js"; /** * Groups all parts of the alert dialog. * Doesn’t render its own HTML element. * * Documentation: [Base UI Alert Dialog](https://base-ui.com/react/components/alert-dialog) */ export declare function AlertDialogRoot(props: AlertDialogRoot.Props): import("react/jsx-runtime").JSX.Element; export interface AlertDialogRootProps extends Omit, 'modal' | 'disablePointerDismissal' | 'onOpenChange' | 'actionsRef' | 'handle'> { /** * Event handler called when the dialog is opened or closed. */ onOpenChange?: (open: boolean, eventDetails: AlertDialogRoot.ChangeEventDetails) => void; /** * A ref to imperative actions. * - `unmount`: When specified, the dialog will not be unmounted when closed. * Instead, the `unmount` function must be called to unmount the dialog manually. * Useful when the dialog's animation is controlled by an external library. */ actionsRef?: React.RefObject; /** * A handle to associate the popover with a trigger. * If specified, allows external triggers to control the popover's open state. * Can be created with the AlertDialog.createHandle() method. */ handle?: DialogHandle; } export type AlertDialogRootActions = DialogRoot.Actions; export type AlertDialogRootChangeEventReason = DialogRoot.ChangeEventReason; export type AlertDialogRootChangeEventDetails = BaseUIChangeEventDetails & { preventUnmountOnClose(): void; }; export declare namespace AlertDialogRoot { type Props = AlertDialogRootProps; type Actions = AlertDialogRootActions; type ChangeEventReason = AlertDialogRootChangeEventReason; type ChangeEventDetails = AlertDialogRootChangeEventDetails; }