/** * Attaches pinch-zoom gesture to a target element. * Uses PointerEvents (unified API covering touch, pen, mouse). * @param target Element to attach the gesture to * @param onZoom Callback with scale delta relative to initial pinch distance * @returns Cleanup function */ export declare function attachPinchZoom(target: HTMLElement, onZoom: (scaleDelta: number) => void): () => void; /** * Attaches horizontal swipe detection to a target element. * Emits "left" or "right" when a horizontal swipe is detected. * @param target Element to attach the gesture to * @param onSwipe Callback with swipe direction * @returns Cleanup function */ export declare function attachSwipe(target: HTMLElement, onSwipe: (direction: "left" | "right") => void): () => void; /** * Attaches double-tap detection to a target element. * Only fires for touch/pen (not mouse). Two taps within 300ms on the same point. * @param target Element to attach the gesture to * @param onDoubleTap Callback fired on double-tap * @returns Cleanup function */ export declare function attachDoubleTap(target: HTMLElement, onDoubleTap: () => void): () => void; /** * Attaches downward swipe detection (for swipe-to-close fullscreen). * Only fires for touch/pen. Vertical swipe > 80px with more vertical than horizontal motion. * @param target Element to attach the gesture to * @param onSwipeDown Callback fired on downward swipe * @returns Cleanup function */ export declare function attachSwipeDown(target: HTMLElement, onSwipeDown: () => void): () => void; //# sourceMappingURL=touch-gestures.d.ts.map