import type { Dispatch } from 'react'; import React from 'react'; import { PathAction, PathState, FocusedPathAction, FocusedPathState, TreePathState, TreePathAction } from '../reducers'; import type { ItemOptionTransformed } from '../Combobox.types'; import { PathMapType, FocusedToValueMapType, ValueToItemMapType } from './usePathMaps'; export declare const keys: { Enter: string; Space: string; Tab: string; Escape: string; Backspace: string; ArrowLeft: string; ArrowRight: string; ArrowUp: string; ArrowDown: string; Home: string; End: string; PageUp: string; PageDown: string; }; export declare const getItemByFocused: (focusedPath: FocusedPathState, focusedToValueMap: FocusedToValueMapType) => ItemOptionTransformed | undefined; type Props = { focusedPath: FocusedPathState; dispatchFocusedPath: Dispatch; path: PathState; dispatchPath: Dispatch; pathMap: PathMapType; focusedToValueMap: FocusedToValueMapType; handleListToggle: (opened: boolean) => void; handlePressDown: (item: ItemOptionTransformed, e?: React.MouseEvent) => void; setTextValue: (newTextValue: string) => void; multiple: boolean | undefined; value: string | string[]; textValue: string; valueToItemMap: ValueToItemMapType; treePath: TreePathState; dispatchTreePath: Dispatch; treeView: boolean; valueToPathMap: Map; items: ItemOptionTransformed[]; }; type ReturnedProps = { onKeyDown: (event: React.KeyboardEvent) => void; }; export declare const useKeyNavigation: ({ focusedPath, dispatchFocusedPath, path, dispatchPath, pathMap, focusedToValueMap, handleListToggle, handlePressDown, setTextValue, multiple, value, textValue, valueToItemMap, treePath, dispatchTreePath, treeView, valueToPathMap, items, }: Props) => ReturnedProps; export {}; //# sourceMappingURL=useKeyboardNavigation.d.ts.map