import { MutableRefObject } from "react"; import { 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 { onOutboundNavigation?: (ref: GridElementRef, direction: NavDirections) => void; }