UNPKG

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