import { KeyboardEvent } from 'react'; import { MenuOption } from '../components/elements/DropdownMenu'; /** * Hook that handles keyboard navigation and type-to-select functionality of a dropdown menu and returns the focused option. * * @param {MenuOption[][]} options - An array of dropdown options, with each nested array representing a row of options. * @param {MenuOption} selected - The currently selected dropdown option. * @param {boolean} expandMenu - Whether the dropdown menu is expanded or not. * @param {(toggle?: boolean) => void} handleExpandMenu - Function to handle toggling the dropdown menu. * @param {(value: MenuOption) => void} onChange - Function to handle changing the selected option. * @returns {{ focusedOption: MenuOption, handleKeyDown: (event: KeyboardEvent) => void }} - The currently focused option and a function to handle keydown events. */ export declare const useDropdownKeyboardNavigation: (options: MenuOption[][], selected: MenuOption | undefined, expandMenu: boolean, handleExpandMenu: (toggle?: boolean) => void, onChange: (value: MenuOption) => void) => { focusedOption: MenuOption | undefined; handleKeyDown: (event: KeyboardEvent) => void; };