import { TemplateResult } from '@blinkk/selective-edit'; import { BaseUI } from './index'; export interface HoverMenuConfig { /** * Custom classes for the hover menu. */ classes?: Array; items: Array; } /** * Configuration for menu item. * * Controls how the menu item looks and the handlers for events. */ export interface HoverMenuItemConfig { /** * Label explaining the usage of the menu item. */ label: string; /** * Small description of the menu item. */ description?: string; /** * Material icon to use for the menu item. */ icon?: string; /** * Ability to check if the menu item is disabled. */ isDisabled?: () => boolean | undefined; /** * Event handler for when the menu item is clicked. */ onClick: (evt: Event) => void; } declare const HoverMenu_base: { new (...args: any[]): { _listeners?: Record void)[]> | undefined; addListener(eventName: string, callback: (...args: any) => void): void; readonly listeners: Record void)[]>; triggerListener(eventName: string, ...args: any): void; }; } & (new (...args: any[]) => { _uuid?: string | undefined; readonly uuid: string; readonly uid: string; }) & typeof BaseUI; export declare class HoverMenu extends HoverMenu_base { config: HoverMenuConfig; isVisible: boolean; constructor(config: HoverMenuConfig); classesForMenu(): Record; handleKeyup(evt: KeyboardEvent): void; handleOffClick(evt: Event): void; hide(): void; show(): void; template(): TemplateResult; templateContent(): TemplateResult; toggle(): void; } export {};