import { Components, JSX } from '@vime/core'; interface VmMenuProps { class?: string; style?: string; /** Whether the menu is open/visible. */ active?: Components.VmMenu["active"]; /** The `id` attribute of the menu. */ identifier?: Components.VmMenu["identifier"]; /** Reference to the controller DOM element that is responsible for opening/closing this menu. */ controller?: Components.VmMenu["controller"]; /** The direction the menu should slide in from. */ slideInDirection?: Components.VmMenu["slideInDirection"]; } interface VmMenuEvents { /** Emitted when the menu is open/active. */ vmOpen: Parameters[0]; /** Emitted when the menu has closed/is not active. */ vmClose: Parameters[0]; /** Emitted when the menu is focused. */ vmFocus: Parameters[0]; /** Emitted when the menu loses focus. */ vmBlur: Parameters[0]; /** Emitted when the active submenu changes. */ vmActiveSubmenuChange: Parameters[0]; /** Emitted when the currently focused menu item changes. */ vmActiveMenuItemChange: Parameters[0]; /** Emitted when the height of the menu changes. */ vmMenuHeightChange: Parameters[0]; } interface VmMenuSlots { default: any; } import { SvelteComponent } from "svelte/internal"; declare class Menu extends SvelteComponent { $$prop_def: VmMenuProps; $$events_def: VmMenuEvents; $$slot_def: VmMenuSlots; $on(type: K, callback: (e: VmMenuEvents[K]) => any): () => void; $set($$props: Partial): void; constructor(options: any); /** Focuses the menu. */ get focusMenu(): Components.VmMenu["focusMenu"]; /** Removes focus from the menu. */ get blurMenu(): Components.VmMenu["blurMenu"]; /** Returns the currently focused menu item. */ get getActiveMenuItem(): Components.VmMenu["getActiveMenuItem"]; /** Sets the currently focused menu item. */ get setActiveMenuItem(): Components.VmMenu["setActiveMenuItem"]; /** Calculates the height of the settings menu based on its children. */ get calculateHeight(): Components.VmMenu["calculateHeight"]; get ref(): any; get getWebComponent(): HTMLVmMenuElement | undefined; } export default Menu;