import type { Dispatch } from 'react'; import React from 'react'; import { PathAction, PathState, FocusedPathAction, FocusedPathState, TreePathAction, TreePathState } from '../reducers'; import type { ItemOption } from '../Select.types'; import { PathMapType, FocusedToValueMapType } 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; }; type Props = { focusedPath: FocusedPathState; dispatchFocusedPath: Dispatch; path: PathState; dispatchPath: Dispatch; pathMap: PathMapType; focusedToValueMap: FocusedToValueMapType; handleListToggle: (opened: boolean) => void; handlePressDown: (item: ItemOption, e?: React.MouseEvent) => void; treePath: TreePathState; dispatchTreePath: Dispatch; treeView: boolean; valueToPathMap: Map; items: ItemOption[]; readOnly: boolean; }; type ReturnedProps = { onKeyDown: (event: React.KeyboardEvent) => void; }; export declare const useKeyNavigation: ({ focusedPath, dispatchFocusedPath, path, dispatchPath, pathMap, focusedToValueMap, handleListToggle, handlePressDown, treePath, dispatchTreePath, treeView, valueToPathMap, items, readOnly, }: Props) => ReturnedProps; export {}; //# sourceMappingURL=useKeyboardNavigation.d.ts.map