import { OptionProps } from '../_Options'; export interface ChipKeyboardParams { multiple: boolean; open: boolean; setOpen: (open: boolean) => void; inputRef: React.RefObject; fieldRef: React.RefObject; chips: { enabled: boolean; selectedChip: number | null; setSelectedChip: (index: number | null) => void; selectPreviousChip: (prev: number | null) => void; selectNextChip: (prev: number | null) => void; options: OptionProps[]; deselectOptionValue: (value: string | undefined) => void; }; } /** * Chip-specific keyboard behaviors extracted from the general keyboard manager. * Responsibilities: * - Horizontal arrow navigation between chips (ArrowLeft/ArrowRight) * - Chip removal (Backspace/Delete) with focus shifting rules * - Enter on a focused chip to remove it (when dropdown closed) * - Determining whether we are in "chip mode" (multi + chips enabled + options present) * * Returns specific handler functions and an `isChipMode` flag consumed by the parent keyboard manager. */ export declare function useAutocompleteChipKeyboard(params: ChipKeyboardParams): { isChipMode: boolean; handleHorizontalChipNav: (event: React.KeyboardEvent, focusState: { isInputFocused: boolean; caretPosition: number | null; }) => boolean; handleChipEnter: (event: React.KeyboardEvent) => boolean; handleChipEscape: (event: React.KeyboardEvent) => boolean; handleChipRemoval: (event: React.KeyboardEvent, focusState: { caretPosition: number | null; }) => boolean; };