/** * Returns a drop down menu's position relative to the toolbar's current location and the * MenuToggle that was pressed. The dimensions returned are relative to the toolbar's * current monitor. * @param menuId The shell ID (e.g. filemenu) * @param menuContentHeight The height of menu contents. */ export declare const calculatePosition: (menuId: string, menuContentHeight?: number) => Promise<{ top: number; left: number; }>; /** * Calculates the height and position that a window should take based on the height necessary to display * the window's DOM contents without scrollbars, but not beyond the scope of the monitor itself. * * @param childWindow Window The window to calculate * @param menuId string The id of the menu, used for a CSS selector * @param [maxHeight] Maximum height for the window * @param [fixedHeight] Optional fixed height */ export declare const calculateDimensions: (childWindow: Window, menuId: string, fixedHeight: number | undefined, maxHeight: number | undefined, minHeight: number) => Promise<{ top: number; left: number; height: number; }>; /** * Copy CSS elements from parent to child window. Portals operate in a new window which doesn't automatically * have access to the CSS from the main window, so we need to clone those elements into the menu's window * when it is created. * @param childWindow Child window reference */ export declare const injectCSS: (childWindow: Window) => void; //# sourceMappingURL=menuHelpers.d.ts.map