/** * A container for overlays like modals and popovers. Renders the overlay * into a Portal which is placed at the end of the document body. * Also ensures that the overlay is hidden from screen readers if a * nested modal is opened. Only the top-most modal or overlay should * be accessible at once. */ import { ReactPortal } from 'react'; import type { ModalContextProviderProps } from '../providers/ModalContextProvider.js'; /** * @public */ export interface OverlayContainerProps extends ModalContextProviderProps { /** * The container element in which the overlay portal will be placed. * @defaultValue document.body */ portalContainer?: HTMLElement; } /** * Use the `OverlayContainer` to create a portal, rendering children in a container * that is located outside the hierarchy of the parent component. * @public */ export declare function OverlayContainer(props: OverlayContainerProps): ReactPortal;