import React from "react"; interface IPopupHostProps { anchor: React.RefObject; /** If the popup height is less than this value, the top of the popup will be moved up so that the height is at least this value. */ jumpThreshold?: number; /** Called when the close animation completes. */ onClose?: () => void; children: React.ReactElement; } /** * A component that displays a popup over an anchor element. * The popup is dismissed when clicking outside of it, or pressing the Escape key. * * This component is a low level component that should be used by other re-usable components, not directly in views. */ export default class PopupHost extends React.Component { constructor(props: IPopupHostProps); private isVisible; private popupRef; private hideTimer; render(): false | React.JSX.Element; componentDidUpdate(): void; componentWillUnmount(): void; /** Shows, and positions the popup. */ show(): void; /** * Recalculates the position of the popup relative to the anchor. * Call this if the height of the child popup may have changed. */ performLayout(): void; private onKeyDown; private documentClick; /** * Starts the animation to hide the popup. * The onClose callback will be called once the animation completes. */ beginHide(): void; private hide; private removeDocumentClickListener; } export {};