import React from 'react'; import { type BoxDefaultElement, type BoxProps } from '../../layout/Box'; import { type PortalProps } from '../Portal'; export type ModalWrapperBaseProps = { /** * Disable overlay click that closes the Modal * @default false */ disableOverlayPress?: boolean; /** * Disable responsiveness so it maintains the same UI across different viewports. * @danger This is a migration escape hatch. It is not intended to be used normally. * @default false */ dangerouslyDisableResponsiveness?: boolean; /** * Callback function fired when the overlay is pressed. */ onOverlayPress?: (() => void) | undefined; /** * Configure if the overlay should be visible/hidden * @default false */ hideOverlay?: boolean; /** * WAI-ARIA Roles * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles */ role?: Extract; /** * Controls visibility of the Modal * @default false */ visible: boolean; /** * Callback fired after the component is closed. */ onDidClose?: () => void; } & Pick; export type ModalWrapperProps = ModalWrapperBaseProps & BoxProps; export declare const ModalWrapper: React.MemoExoticComponent< React.ForwardRefExoticComponent< Omit & React.RefAttributes > >; //# sourceMappingURL=ModalWrapper.d.ts.map