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