import { AbstractDialogProps } from "../../dialog"; import { ComponentProps, MouseEvent } from "react"; import { OmitInternalProps } from "../../shared"; declare const DefaultElement = "section"; export interface InnerAlertProps extends Omit, "dismissable"> { /** * The button to focus by default when the alert open. */ autoFocusButton?: "primary" | "secondary" | "cancel"; /** * The cancel button label. */ cancelButtonLabel?: string; /** * Called when the cancel button is clicked. * @param {MouseEvent} event - React's original event. * @returns {void} */ onCancelButtonClick?: (event: MouseEvent) => void; /** * Called when the primary button is clicked. * @param {MouseEvent} event - React's original event. * @returns {void} */ onPrimaryButtonClick?: (event: MouseEvent) => void; /** * Called when the secondary button is clicked. * @param {MouseEvent} event - React's original event. * @returns {void} */ onSecondaryButtonClick?: (event: MouseEvent) => void; /** * Whether or not the primary button is disabled. */ primaryButtonDisabled?: boolean; /** * The primary button label. */ primaryButtonLabel: string; /** * Whether or not the secondary button is disabled. */ secondaryButtonDisabled?: boolean; /** * The secondary button label. */ secondaryButtonLabel?: string; /** * The style to use. */ variant?: "confirmation" | "destructive" | "warning" | "negative"; } export declare function InnerAlert({ as, autoFocusButton, cancelButtonLabel, children, forwardedRef, onCancelButtonClick, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonDisabled, primaryButtonLabel, secondaryButtonDisabled, secondaryButtonLabel, variant, zIndex, ...rest }: InnerAlertProps): JSX.Element; export declare namespace InnerAlert { var defaultElement: string; } /** * An alert is a modal dialog that interrupts the user's workflow to communicate an important message and acquire a response. * * [Documentation](https://orbit.sharegate.design/?path=/docs/alert--default-story) */ export declare const Alert: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>; export declare type AlertProps = ComponentProps; export {};