import React, { type ReactElement } from "react";
import { ModalWidth as ModalWidthEnum } from "./ModalHelper";
import { type ModalWidth } from "./LegacyModal.types";
export interface LegacyModalProps {
    /**
     * Id of the modal, used internally and for accessibility
     */
    id?: string;
    "data-testid"?: string;
    /**
     * Show/hide the Dialog
     */
    show: boolean;
    /**
     * Heading for the modal, mandatory when ModalHeader isn't provided in children
     */
    title?: string;
    /**
     * Description for the modal title
     */
    description?: string;
    /**
     * Called when the modal is closed (by close button/click outside/esc key)
     */
    onClose: () => void;
    /**
     *  Makes the dialog behave like a modal (preventing closing on click outside of
     *  ESC key)..
     */
    alertDialog?: boolean;
    /**
     *  Used for the fromOrigin animation
     */
    triggerElement?: Element;
    /**
     *  Set the modal's width. Can be one of the presets or any custom size
     */
    width?: ModalWidth | string;
    /**
     *  Aria label for the close button
     */
    closeButtonAriaLabel?: string;
    /**
     *  Add gaps between parts of the modal
     */
    contentSpacing?: boolean;
    /**
     *  classNames for specific parts of the dialog
     */
    classNames?: {
        container?: string;
        overlay?: string;
        modal?: string;
    };
    /**
     *  Dialog content
     */
    children?: ReactElement | ReactElement[];
    /**
     * z-index attribute of the container
     */
    zIndex?: number;
    /**
     * When `false`, the modal will remain in the DOM when closed
     */
    unmountOnClose?: boolean;
}
declare const _default: React.FC<LegacyModalProps> & {
    width: typeof ModalWidthEnum;
};
export default _default;
