import type { FocusEvent, FocusEventHandler, KeyboardEvent, KeyboardEventHandler, RefObject } from 'react'; interface MeasureInfo { accessor: string | ((entry: Record) => unknown); label?: string; formatter?: (value: unknown) => string; axis: 'x' | 'y' | 'z'; } interface ScatterDataset { label?: string; data?: Record[]; color?: string; opacity?: number; } interface FlatPoint { datasetIndex: number; pointIndex: number; datasetLabel: string; raw: Record; } interface UseScatterPointFocusOptions { chartRef: RefObject; enabled: boolean; dataset: ScatterDataset[]; measures: MeasureInfo[]; onSelect?: (point: FlatPoint, event: KeyboardEvent) => void; consumerOnBlur?: FocusEventHandler; consumerOnFocus?: FocusEventHandler; consumerOnKeyDownCapture?: KeyboardEventHandler; } /** * Manages keyboard navigation through scatter chart data points using aria-activedescendant. * * Single tab stop: focusing the chart immediately activates the first (or last-visited) point. * Arrow keys navigate between points sorted by X value. Tab/Shift+Tab leave the chart naturally. * * Static attributes (id, role, aria-label) are applied to all symbols via effect. * Only `data-point-focused` and `aria-activedescendant` change during navigation. * * Active when `chartConfig.accessibilityLayer` is enabled. */ export declare function useScatterPointFocus({ chartRef, enabled, dataset, measures, onSelect, consumerOnBlur, consumerOnFocus, consumerOnKeyDownCapture, }: UseScatterPointFocusOptions): { containerProps: { tabIndex?: undefined; 'aria-roledescription'?: undefined; role?: undefined; onKeyDownCapture?: undefined; onKeyUp?: undefined; onBlur?: undefined; onFocus?: undefined; }; handlePointClick: any; } | { containerProps: { readonly tabIndex: 0; readonly 'aria-roledescription': "chart"; role?: undefined; onKeyDownCapture?: undefined; onKeyUp?: undefined; onBlur?: undefined; onFocus?: undefined; }; handlePointClick: any; } | { containerProps: { tabIndex: number; role: "application"; 'aria-roledescription': string; onKeyDownCapture: (e: KeyboardEvent) => void; onKeyUp: (e: KeyboardEvent) => void; onBlur: (e: FocusEvent) => void; onFocus: (e: FocusEvent) => void; }; handlePointClick: (datasetIndex: number, pointIndex: number) => void; }; export {};