import type { UiMenu } from './menu.js'; /** Row heights: xs 24 · sm 32 (Carbon default) · md 40 · lg 48. */ export type MenuSize = 'xs' | 'sm' | 'md' | 'lg'; /** Which item takes focus when a menu opens; `none` keeps focus where it is (a submenu opened by hover). */ export type MenuFocus = 'first' | 'last' | 'none'; /** The focused element, following shadow roots down. */ export declare function deepActiveElement(): HTMLElement | null; /** * Keyboard opening for a menu button (APG): Down Arrow opens on the first item, Up Arrow on the last. * Returns true when it handled the key. */ export declare function openMenuFromKey(event: KeyboardEvent, menu: UiMenu, anchor: Element): boolean; /** `ui-select` of a menu item (bubbles through menus, menu buttons and overflow menus). */ export interface MenuSelectDetail { value: string; label: string; checked: boolean; }