import { AlertDialog as ADPrimitive } from 'radix-ui';
import type { ComponentProps, HTMLAttributes } from 'react';
import type { ButtonProps } from './Button';
import type { ModalContextValue } from './Modal.common';
/**
* A modal alert component that can be used to display a brief dialog that
* requires an action from the user. If provided an optional `` component, that component will automatically open the dialog when
* clicked.
*
* @param size - The width of the alert. Defaults to `medium`.
* @param variant - The variant of the alert. Defaults to `default`. Use
* `extended` sparingly to display longer, arbitrary content. Consider using a
* `ModalDialog` for more complex content or content that does not require
* immediate action.
*/
declare const ModalAlert: ({ variant, size, ...props }: Partial & ComponentProps) => import("react/jsx-runtime").JSX.Element;
declare const ModalAlertTrigger: import("react").ForwardRefExoticComponent>;
/**
* The primary content box of the alert. Should contain the ``
*/
declare const ModalAlertContent: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>;
declare const ModalAlertHeader: {
({ className, children, ...props }: HTMLAttributes): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
/**
* Footer of the alert. Should contain the `` and
* `` components. Content is displayed right-to-left by
* default.
* @param param0
* @returns
*/
declare const ModalAlertFooter: {
({ className, ...props }: HTMLAttributes): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
/**
* The title of the alert. Should be provided as a child of the
* `` component.
*/
declare const ModalAlertTitle: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>;
/**
* An accessible description to be announced when the dialog is opened. Should
* be provided as a child of the `` component. Children
* should be provided as `
` tags.
*/
declare const ModalAlertDescription: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>;
/**
* Action button for the alert. Will render as a ` component or as the child component if `asChild` is true.
* Automatically closes the alert when clicked, unless `preventDefault` is
* called in the `onClick` handler. Should be provided as a child of the
* component.
*/
declare const ModalAlertAction: import("react").ForwardRefExoticComponent<(ButtonProps & {
isPrimaryAction?: boolean;
}) & import("react").RefAttributes>;
/**
* Cancel button for the alert. Will render as a ` component or as the child component if `asChild` is true.
* Automatically closes the alert when clicked, unless `preventDefault` is
* called in the `onClick` handler. Should be provided as a child of the
* component.
*/
declare const ModalAlertCancel: import("react").ForwardRefExoticComponent>;
export { ModalAlert, ModalAlertAction, ModalAlertCancel, ModalAlertContent, ModalAlertDescription, ModalAlertFooter, ModalAlertHeader, ModalAlertTitle, ModalAlertTrigger, };