import { KeyboardEvent, KeyboardEventHandler } from "react"; import { FocusManager } from "./useFocusManager"; import { Keys } from "./keys"; export interface KeyboardNavigationOptions { onCanSelect?: (event: KeyboardEvent, element: Element, key: Keys) => boolean; onSelect?: (event: KeyboardEvent, element: Element, key: Keys) => void; } export interface KeyboardNavigationBindings { first?: Keys[]; last?: Keys[]; next?: Keys[]; previous?: Keys[]; } export declare function useKeyboardNavigation(focusManager: FocusManager, { first, last, next, previous }: KeyboardNavigationBindings, { onCanSelect, onSelect }?: KeyboardNavigationOptions): { onKeyDown: KeyboardEventHandler; };