// Type definitions for react-swipeable 4.3 // Project: https://github.com/dogfessional/react-swipeable // Definitions by: Giedrius Grabauskas // Konstantin Vasilev // Hiroki Horiuchi // Adam Bowles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; declare class ReactSwipeable extends React.Component> {} declare namespace ReactSwipeable { type OnSwipingCallback = (event: React.TouchEvent, deltaX: number, deltaY: number, absX: number, absY: number, velocity: number) => void; type OnSwipedCallback = (event: React.TouchEvent, deltaX: number, deltaY: number, isFlick: boolean, velocity: number) => void; type OnSwipedDirectionCallback = (event: React.TouchEvent, delta: number, isFlick: boolean) => void; type OnSwipingDirectionCallback = (event: React.TouchEvent, delta: number) => void; type OnTapCallback = (event: React.TouchEvent) => void; interface SwipeableProps extends React.ClassAttributes>, React.HTMLAttributes { onSwiped?: OnSwipedCallback; onSwiping?: OnSwipingCallback; onSwipingUp?: OnSwipingDirectionCallback; onSwipingRight?: OnSwipingDirectionCallback; onSwipingDown?: OnSwipingDirectionCallback; onSwipingLeft?: OnSwipingDirectionCallback; onSwipedUp?: OnSwipedDirectionCallback; onSwipedRight?: OnSwipedDirectionCallback; onSwipedDown?: OnSwipedDirectionCallback; onSwipedLeft?: OnSwipedDirectionCallback; onTap?: OnTapCallback; flickThreshold?: number; delta?: number; preventDefaultTouchmoveEvent?: boolean; stopPropagation?: boolean; nodeName?: string; trackMouse?: boolean; disabled?: boolean; rotationAngle?: number; innerRef?: React.Ref; children?: React.ReactNode; } } export = ReactSwipeable;