import type { ReactNode } from 'react'; import type { CommonProps } from '../types.js'; export interface AlertDialogRenderProps { /** Closes the alert dialog when called. */ close: () => void; } export interface AlertDialogProps extends CommonProps { /** The title of the alert dialog. */ title: string; /** The contents of the alert dialog. A function may be provided to access a function to close the dialog. */ children: ReactNode | ((renderProps: AlertDialogRenderProps) => ReactNode); /** The tone of the alert dialog. */ tone: 'info' | 'success' | 'warning' | 'critical'; /** * Whether the dialog is open (controlled). * If using `DialogRoot`, this prop has no effect - provide `isOpen` to `DialogRoot` instead. */ isOpen?: boolean; /** * Whether the dialog is open by default (uncontrolled). * If using `DialogRoot`, this prop has no effect - provide `defaultOpen` to `DialogRoot` instead. */ defaultOpen?: boolean; /** * Handler that is called when the dialog's open state changes. * If using `DialogRoot`, this prop has no effect - provide `onOpenChange` to `DialogRoot` instead. */ onOpenChange?: (isOpen: boolean) => void; } /** * Renders an overlay that interrupts user activity and requires a user action. * * See [alert dialog usage guidelines](https://ui.cimpress.io/components/alert-dialog/). */ declare const _AlertDialog: (props: AlertDialogProps & import("react").RefAttributes) => import("react").JSX.Element | null; export { _AlertDialog as AlertDialog }; export interface AlertDialogBodyProps { /** The content to render within the alert dialog. */ children: ReactNode; } /** Renders content within `AlertDialog`. */ export declare function AlertDialogBody(props: AlertDialogBodyProps): import("react/jsx-runtime").JSX.Element; export declare namespace AlertDialogBody { var displayName: string; } export interface AlertDialogActionsProps { /** Actions that should be available in the alert dialog. */ children: ReactNode; } /** Renders actions within `AlertDialog`. */ export declare function AlertDialogActions({ children, ...props }: AlertDialogActionsProps): import("react/jsx-runtime").JSX.Element; export declare namespace AlertDialogActions { var displayName: string; } //# sourceMappingURL=alert-dialog.d.ts.map