import { DialogTriggerProps } from "./DialogTrigger.mjs"; import { DialogProps } from "./Dialog.mjs"; import { ReactNode } from "react"; export interface ConfirmationDialogProps extends Pick { /** * Marks the confirmed action as destructive, which styles the confirm button * and focuses the cancel button by default. */ variant?: 'destructive' | (string & {}); /** * The dialog's title. */ title: string; /** * Label for the primary action button. */ confirmationLabel: string; /** * Optional label for the cancel button, default label is "cancel". */ cancelLabel?: string; /** * Handler that is called when the confirm button is pressed. */ onConfirm?: () => void; /** * Handler that is called when the cancel button is pressed. */ onCancel?: () => void; /** * Button to focus by default when the dialog opens. * * Defaults to `cancel` for the `destructive` variant so that pressing * Enter out of habit takes the safe path. Pass `'action'` to * focus the confirm button instead. */ autoFocusButton?: 'cancel' | 'action'; /** * The dialog's content. */ children?: ReactNode; } export declare const ConfirmationDialog: { ({ title, confirmationLabel, cancelLabel, onCancel, onConfirm, children, variant, autoFocusButton, size, ...props }: ConfirmationDialogProps): import("react").JSX.Element; Trigger: ({ open, dismissable, keyboardDismissable, ...rest }: DialogTriggerProps) => ReactNode; };