UNPKG

430 BTypeScriptView Raw
1import { UseDragConfig, Handler, EventTypes } from '../types';
2/**
3 * Drag hook.
4 *
5 * @param handler - the function fired every time the drag gesture updates
6 * @param [config={}] - the config object including generic options and drag options
7 */
8export declare function useDrag<K = EventTypes['drag']>(handler: Handler<'drag', K>, config?: UseDragConfig | {}): (...args: any[]) => import("../types").ReactEventHandlers;