import { ChartFrame } from '../frame/types'; import { HitSeries, HitTester } from './types'; export type GeometrySpec = { kind: 'point'; } | { kind: 'band'; orientation?: 'x' | 'y'; } | { kind: 'cell'; } | { kind: 'slice'; cx: number; cy: number; } | { kind: 'axis'; cx: number; cy: number; }; export interface ChartRegistration { /** Frame owning plot rect + scales (used for crosshair math + tooltip anchor). */ frame: ChartFrame; /** Which hit-tester to build. */ geometry: GeometrySpec; /** Registered series with hit-testable marks. */ series: HitSeries[]; } /** Derive the concrete HitTester for a registration. */ export declare function createHitTester(reg: ChartRegistration): HitTester;