import type { Menu } from '../../contextMenu/menu/menu'; /** * @typedef MenuFocusNavigator * @property {function(number): void} setCurrentPage Sets the current index of the selected focus. * @property {function(): number} getCurrentPage Gets the index of currently focus element. * @property {function(): void} toFirstItem Move the focus index to the first element in the list. * @property {function(): void} toLastItem Move the focus index to the last element in the list. * @property {function(): void} toNextItem Move the focus index to the next element in the list. * @property {function(): void} toPreviousItem Move the focus index to the previous element in the list. * @property {function(): void} clear Clear the internal state of the navigator. * @property {function(): void} listen Activate the navigator by listening the keyboard shortcuts. */ /** * Creates navigator controller for filter subcomponents in the menu. * * @param {Menu} mainMenu The main Menu instance. * @param {BaseUI[]} menuItems The list of the component's elements to paginate to. * @returns {Paginator} */ export declare function createMenuFocusController(mainMenu: Menu, menuItems: unknown[]): { listen: () => void; setMenu: (menu: Menu) => void; getMenu: () => Menu; getLastMenuPage: () => number; setCurrentPage: (index: number) => void; setPageCursorAt: (index: number) => void; getCurrentPage: () => number; toFirstItem: () => void; toLastItem: () => void; toNextItem: () => void; toPreviousItem: () => void; getSize: () => number; clear: () => void; };