import React from 'react'; import { CustomContextMenuData, SubmenulessMenuItemTemplate } from './CustomContextMenu'; /** * Custom hook to handle keyboard navigation for a context menu. Provides handlers for various keyboard events and sets up/tears down event listeners. * * @param { SubmenulessMenuItemTemplate[] } menuOptions - Array of menu items without submenus. * @param { string[] } menuLabelStack - Stack of menu labels representing the current path in the context menu. * @param { string } activeMenuLabel - Label of the currently active menu. * @param { number } selectedIndex - Index of the currently selected menu item. * @param { React.Dispatch> } setSelectedIndex - setState function to update the selected index. * @param { (data: CustomContextMenuData) => void } onClick - Callback function to handle click events on menu items. * @param { (submenuLabel: string) => void } handleNavigateToSubmenu - Function to navigate to a submenu. * @param { (submenuLabel: string, method: 'click' | 'keyboard') => void } handleBackToParentMenu - Function to navigate back to the parent menu. * @param { () => void } handleNavigateToBase - Function to navigate back to the base menu. * @returns { void } */ export declare const useContextMenuKeyboardNavigation: (menuOptions: SubmenulessMenuItemTemplate[], menuLabelStack: string[], activeMenuLabel: string, selectedIndex: number, setSelectedIndex: React.Dispatch>, onClick: (data: CustomContextMenuData) => void, handleNavigateToSubmenu: (submenuLabel: string) => void, handleBackToParentMenu: (submenuLabel: string, method: 'click' | 'keyboard') => void, handleNavigateToBase: () => void) => void;