UNPKG

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