import type { SkFont } from "@shopify/react-native-skia"; import { Gesture } from "react-native-gesture-handler"; import { type SharedValue } from "react-native-reanimated"; import type { ChartEngineLayout } from "../core/useLiveChartEngine"; import type { ChartPadding } from "../draw/line"; import type { ReferenceLine } from "../types"; /** * Builds a tap gesture that hit-tests a chart's reference-line **badges** (the * pill tags for working orders / alerts / targets) and fires `onPress(line, * index)` when one is tapped. Mirrors {@link useMarkers}: badge rects are * projected to screen each frame on the UI thread (so they track the rescaling * axis exactly like the rendered pills), and the gesture hit-tests against them. * * Also returns a `hitTest` worklet so a coexisting gesture (the scrub-action tap) * can defer to a badge under the finger instead of acting on it. Only badge-tagged * Form-A (value) lines are pressable; everything else projects to `null`. */ export declare function useReferenceLinePress(engine: ChartEngineLayout, padding: ChartPadding, lines: ReferenceLine[], font: SkFont, formatValue: (v: number) => string, active: boolean, /** Touch-target inflation around each pill, in px. */ hitSlop: number, onPress?: (line: ReferenceLine, index: number) => void, /** Per-line live value overrides (dragged values) so a draggable line's hit-rect * tracks the drag, index-aligned with `lines`. */ dragValues?: SharedValue): { tapGesture: ReturnType; hitTest: (x: number, y: number) => boolean; }; //# sourceMappingURL=useReferenceLinePress.d.ts.map