import type { MenuRootContextValue } from "../root/menu-root-context.js"; /** Payload of the floating tree's `itemhover` event. */ export interface MenuItemHoverEvent { /** Floating node of the menu the hovered item belongs to. */ nodeId: string; /** The hovered item element. */ target: EventTarget | null; } /** * Returns an `onMouseMove` handler that announces an item hover on the * floating tree, so an open submenu of the same menu can close when a * different item is hovered (see `