import * as React from 'react'; import { BaseUIChangeEventDetails } from "../../internals/createBaseUIEventDetails.mjs"; import type { DialogRoot } from "../../dialog/root/DialogRoot.mjs"; import type { AlertDialogHandle } from "../handle.mjs"; /** * 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): React.JSX.Element; export interface AlertDialogRootState {} export interface AlertDialogRootProps extends Omit, 'modal' | 'disablePointerDismissal' | 'onOpenChange' | 'actionsRef' | 'handle'> { /** * Event handler called when the alert dialog is opened or closed. */ onOpenChange?: ((open: boolean, eventDetails: AlertDialogRoot.ChangeEventDetails) => void) | undefined; /** * A ref to imperative actions. * - `unmount`: Manually unmounts the alert dialog. * Call this after any externally controlled closing animation finishes. * - `close`: Closes the alert dialog imperatively when called. */ actionsRef?: React.RefObject | undefined; /** * A handle to associate the alert dialog with a trigger. * If specified, allows external triggers to control the alert dialog's open state. * Can be created with the AlertDialog.createHandle() method. */ handle?: AlertDialogHandle | undefined; } export type AlertDialogRootActions = DialogRoot.Actions; export type AlertDialogRootChangeEventReason = DialogRoot.ChangeEventReason; export type AlertDialogRootChangeEventDetails = BaseUIChangeEventDetails & { preventUnmountOnClose(): void; }; export declare namespace AlertDialogRoot { type State = AlertDialogRootState; type Props = AlertDialogRootProps; type Actions = AlertDialogRootActions; type ChangeEventReason = AlertDialogRootChangeEventReason; type ChangeEventDetails = AlertDialogRootChangeEventDetails; }