/** * Direction used when moving the focus between menu items. * `1` moves forward (ArrowDown), `-1` moves backward (ArrowUp). */ export type MenuNavigationDirection = 1 | -1; /** * Finds the index of the next enabled menu item in the given direction, * wrapping around the list. Every item is visited at most once, so the search * always terminates, even when all items are disabled. * @param {boolean[]} disabledItems Disabled state of each menu item, in DOM order. * @param {number} currentIndex Index of the focused item, or `-1` when no item has focus. * @param {MenuNavigationDirection} direction `1` to move forward, `-1` to move backward. * @returns {number} The index of the next enabled item, or `-1` when there is none. */ export declare function getNextEnabledIndex(disabledItems: boolean[], currentIndex: number, direction: MenuNavigationDirection): number;