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