import React from 'react'; import { DOMProps, QAProps } from '../types'; import { LayerExtendableProps, LayerCloseReason } from '../utils/useLayer'; export interface ModalProps extends DOMProps, LayerExtendableProps, QAProps { open?: boolean; keepMounted?: boolean; disableBodyScrollLock?: boolean; children?: React.ReactNode; /** * Id of visible `` caption element */ 'aria-labelledby'?: string; /** * A11y text * Prefer `aria-labelledby` in case caption is visible to user */ 'aria-label'?: string; container?: HTMLElement; contentClassName?: string; } export declare type ModalCloseReason = LayerCloseReason; export declare function Modal({ open, keepMounted, disableBodyScrollLock, disableEscapeKeyDown, disableOutsideClick, onEscapeKeyDown, onEnterKeyDown, onOutsideClick, onClose, children, style, className, contentClassName, 'aria-labelledby': ariaLabelledBy, 'aria-label': ariaLabel, container, qa, }: ModalProps): JSX.Element | null;