import { Component, ComponentClass, ReactElement } from 'react'; import type { DialogProps } from '@instructure/ui-dialog'; import type { PortalNode } from '@instructure/ui-portal'; import type { TransitionType } from '@instructure/ui-motion'; import type { OverlayProps, OverlayState } from './props'; /** --- category: components --- **/ declare class Overlay extends Component { static allowedProps: readonly ("open" | "transition" | keyof { onOpen?: (DOMNode: PortalNode) => void; onClose?: () => void; mountNode?: import("@instructure/ui-position").PositionMountNode; insertAt?: "bottom" | "top"; } | keyof { children?: React.ReactNode; label: string; defaultFocusElement?: import("@instructure/shared-types").UIElement; contentElement?: import("@instructure/shared-types").UIElement; shouldContainFocus?: boolean; shouldReturnFocus?: boolean; shouldCloseOnDocumentClick?: boolean; shouldCloseOnEscape?: boolean; onDismiss?: (event: React.UIEvent | React.FocusEvent, documentClick?: boolean) => void; } | keyof { in?: boolean; unmountOnExit?: boolean; transitionOnMount?: boolean; transitionEnter?: boolean; transitionExit?: boolean; onEnter?: () => void; onEntering?: () => void; onEntered?: (type?: TransitionType) => void; onExit?: () => void; onExiting?: () => void; onExited?: (type?: TransitionType) => void; })[]; static defaultProps: { open: boolean; insertAt: string; shouldContainFocus: boolean; shouldReturnFocus: boolean; shouldCloseOnDocumentClick: boolean; shouldCloseOnEscape: boolean; in: boolean; unmountOnExit: boolean; transitionOnMount: boolean; transitionEnter: boolean; transitionExit: boolean; }; constructor(props: OverlayProps); private _timeouts; private _DOMNode; private _isMounted; ref: Element | null; handleRef: (el: Element | null) => void; componentDidMount(): void; componentDidUpdate(prevProps: OverlayProps): void; componentWillUnmount(): void; get DOMNode(): PortalNode; set DOMNode(el: PortalNode); handlePortalOpen: (DOMNode: PortalNode) => void; handleTransitionExited: (_type?: TransitionType) => void; renderTransition(content: ReactElement>): import("@emotion/react/jsx-runtime").JSX.Element; render(): import("@emotion/react/jsx-runtime").JSX.Element; } export default Overlay; export { Overlay }; //# sourceMappingURL=index.d.ts.map