import Popup from './Popup.js'; import ContextMenuButton from './ContextMenuButton.js'; /** * The context menu. */ export declare abstract class ContextMenu extends Popup { /** * The array of buttons in the context menu. */ readonly buttons: ContextMenuButton[]; /** * The index of the focused button in the context menu. */ focusCursor: number; /** * The items container element. */ private itemsContainer?; /** * Ensures that the items container element is created. * * @returns * The items container element. */ ensureItemsContainer(): HTMLElement | undefined; show(anchorElement?: HTMLElement): void; hide(): void; /** * Adds a divider to the context menu. * * @returns * The divider element. */ protected addDivider(): HTMLElement | undefined; protected onClickOutside(event: MouseEvent): void; /** * Checks whether an element is contained in any descendant popup. * * @param target * Target node from click event. * * @returns * True when the target is inside any descendant popup container. */ private isInDescendantPopup; protected addEventListeners(): void; protected onKeyDown(e: KeyboardEvent): void; } export default ContextMenu;