import { type MutableRefObject } from "react"; import { type NavDirections } from "../../hooks/useFullKeyboardListeners"; export type GridElementRef = MutableRefObject & { current?: HTMLElement & { disabled?: boolean; }; }; export type DirectionMap = Map; export type DirectionMaps = Record; export type Position = VerticalPosition & HorizontalPosition; type VerticalPosition = { topElement?: GridElementRef; bottomElement?: GridElementRef; }; type HorizontalPosition = { leftElement?: GridElementRef; rightElement?: GridElementRef; }; export interface GridKeyboardNavigationContextType { /** * Callback fired when navigation moves beyond the bounds of the grid. */ onOutboundNavigation?: (ref: GridElementRef, direction: NavDirections) => void; } export {};