import { TouchEventHandler } from 'react'; export declare enum SwipeDirection { Right = "right", Left = "left", Up = "up", Down = "down", Unset = "unset" } export interface SwipeBindings { onTouchStart: TouchEventHandler; onTouchEnd: TouchEventHandler; } /** * Catches finger swipe over referenced element and returns swipe direction * @param {number} widthThresholdRatio - ratio for calculating minimal distance in pixels to track horizontal swipe event * @param {number} heightThresholdRatio - ratio for calculating minimal distance in pixels to track swipe vertical event * @returns {[SwipeDirection, SwipeBindings]} Array with direction value and object with touch event listeners */ export declare function useSwipe(widthThresholdRatio: number, heightThresholdRatio: number): [SwipeDirection, SwipeBindings];