import { SkPath } from "@shopify/react-native-skia"; import { Gesture, type PanGestureHandlerEventPayload as ReanimatedPanGestureHandlerEventPayload, type PanGestureChangeEventPayload } from "react-native-gesture-handler"; import { SharedValue } from "react-native-reanimated"; export type PanGestureHandlerEventPayload = ReanimatedPanGestureHandlerEventPayload; export type PanGestureHandlerOnBeginEventPayload = { point: number; event: PanGestureHandlerEventPayload; }; export type PanGestureHandlerOnChangeEventPayload = { point: number; event: PanGestureHandlerEventPayload & PanGestureChangeEventPayload; }; export type HoverGestureOnBegin = ReturnType["onBegin"]; export type HoverGestureOnBeginCallBack = Parameters[0]; export type HoverGestureHandlerOnBeginEventPayload = { point: number; event: Parameters[0]; }; export type HoverGestureOnChange = ReturnType["onChange"]; export type HoverGestureOnChangeCallBack = Parameters[0]; export type HoverGestureHandlerOnChangeEventPayload = { point: number; event: Parameters[0]; }; export type HoverGestureOnEnd = ReturnType["onEnd"]; export type HoverGestureOnEndCallBack = Parameters[0]; export type HoverGestureHandlerOnEndEventPayload = Parameters[0]; export interface UseGestureProps { /** The x position of the cursor. */ x: SharedValue; /** The y position of the cursor. */ y: SharedValue; /** The path of the chart. */ path: SkPath; /** The height of the chart. */ height: number; /** The minimum value of the y axis. */ minYValue: number; /** The maximum value of the y axis. */ maxYValue: number; /** The radius of the cursor. */ cursorRadius: number; /** The precision of the y value. */ precision: number; onPanGestureBegin: ((payload: PanGestureHandlerOnBeginEventPayload) => void) | null; onPanGestureChange: ((payload: PanGestureHandlerOnChangeEventPayload) => void) | null; onPanGestureEnd: ((payload: PanGestureHandlerEventPayload) => void) | null; onHoverGestureBegin: ((payload: HoverGestureHandlerOnBeginEventPayload) => void) | null; onHoverGestureChange: ((payload: HoverGestureHandlerOnChangeEventPayload) => void) | null; onHoverGestureEnd: ((payload: HoverGestureHandlerOnEndEventPayload) => void) | null; } /** * Returns the gesture handlers for the LineChart component. * @param param0 - The props to allow the gesture handlers to interact with the * LineChart component. * @returns The gesture handlers for the LineChart component. */ export declare const useGestures: ({ x, y, path, height, minYValue, maxYValue, cursorRadius, precision, onPanGestureBegin, onPanGestureChange, onPanGestureEnd, onHoverGestureBegin, onHoverGestureChange, onHoverGestureEnd, }: UseGestureProps) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/gestureComposition").ComposedGesture; //# sourceMappingURL=useGestures.d.ts.map