declare type props = { axis?: "x" | "y"; onSwipe?: (element: HTMLElement, x: number, y: number) => void; onSwipeEnd: (element: HTMLElement, x: number, y: number) => void; }; export declare type useSwipeableRef = (element: E) => void; export declare type useSwipeableResult = [ useSwipeableRef, E | undefined ]; declare const useSwipeable: ({ axis, onSwipe, onSwipeEnd, }: props) => useSwipeableResult; export default useSwipeable;