import { DropdownOption } from '@mezzanine-ui/core/dropdown/dropdown'; import { Dispatch, SetStateAction } from 'react'; /** * Provides a keyboard navigation handler for dropdown lists, encapsulating Arrow keys, Enter, and Escape behaviors. * Keeps logic centralized in DropdownItem for easy reuse. */ export declare function createDropdownKeydownHandler(params: { activeIndex: number | null; onEnterSelect?: (option: DropdownOption) => void; onEscape?: () => void; open: boolean; options: DropdownOption[]; setActiveIndex: Dispatch>; /** * Optional setter for keyboard-only active index. * When provided, it is updated alongside `setActiveIndex` on arrow key navigation, * and cleared on Escape / directional keys that exit the list. */ setKeyboardActiveIndex?: Dispatch>; setListboxHasVisualFocus: (focus: boolean) => void; setOpen: (open: boolean) => void; }): (e: React.KeyboardEvent) => void;