import * as React from 'react'; import type { Map } from 'maplibre-gl'; export interface UseRovingTabindexReturn { handleKeyDown: (e: React.KeyboardEvent) => void; handleFocus: () => void; handleBlur: () => void; setElementRef: (index: number, element: HTMLElement | SVGElement | null) => void; } /** * Custom hook to implement roving tabindex pattern for map datapoints. * * This hook manages tabIndex attributes imperatively via direct DOM manipulation * to avoid React reconciliation issues when changing tabIndex on focused elements. * Only one datapoint is in the tab order at a time (tabIndex={0}), * while others are not (tabIndex={-1}). */ export declare const useRovingTabindex: (map: React.MutableRefObject) => UseRovingTabindexReturn; //# sourceMappingURL=useRovingTabindex.d.ts.map