import { RefObject } from 'react';
interface SwipeArgs<T> {
    swipeRef: RefObject<T | null>;
    onSwipeStart?: ({ state, direction }: SwipeReturn) => void;
    onSwipeMove?: ({ state, direction }: SwipeReturn) => void;
    onSwipeCancel?: ({ state, direction }: SwipeReturn) => void;
    onSwipeEnd?: ({ state, direction }: SwipeReturn) => void;
    threshold?: number;
}
interface SwipeReturn {
    state?: 'start' | 'move' | 'cancel' | 'end';
    direction?: 'up' | 'down' | 'right' | 'left' | null;
}
export declare const useSwipe: <T extends HTMLElement>({ swipeRef, onSwipeStart, onSwipeMove, onSwipeCancel, onSwipeEnd, threshold, }: SwipeArgs<T>) => SwipeReturn;
export {};
