import React from "react"; import { TagProps } from "../../__internal__/utils/helpers/tags"; export interface ModalProps extends TagProps { /** * @private * @internal * @ignore * Sets className for component. INTERNAL USE ONLY. */ className?: string; /** Modal content */ children?: React.ReactNode; /** The ARIA role to be applied to the modal */ ariaRole?: string; /** Determines if the Esc Key closes the modal */ disableEscKey?: boolean; /** Determines if the Dialog can be closed */ disableClose?: boolean; /** Determines if the background is disabled when the modal is open */ enableBackgroundUI?: boolean; /** A custom close event handler */ onCancel?: (ev: React.KeyboardEvent | KeyboardEvent) => void; /** Sets the open state of the modal */ open: boolean; /** Manually override the internal modal stacking order to set this as top */ topModalOverride?: boolean; /** Enables the automatic restoration of focus to the element that invoked * the modal when the modal is closed. */ restoreFocusOnClose?: boolean; } declare const Modal: (props: ModalProps) => React.JSX.Element; export default Modal;