UNPKG

react-ui-animate

Version:
14 lines (13 loc) 463 B
type Listener<E> = (event: E) => void; export declare abstract class Gesture<E> { static readonly VELOCITY_LIMIT = 20; private changeListeners; private endListeners; onChange(listener: Listener<E>): this; onEnd(listener: Listener<E>): this; protected emitChange(event: E): void; protected emitEnd(event: E): void; abstract attach(elements: HTMLElement | HTMLElement | Window): () => void; abstract cancel(): void; } export {};