import type { ElementTarget } from "../use-target-element/index.js"; export interface UseHoverOptions { /** * Delay in milliseconds before the `onEnter` event is triggered */ delayEnter?: number; /** * Delay in milliseconds before the `onLeave` event is triggered */ delayLeave?: number; /** * Event handler when the mouse enters the target element */ onEnter?: (e: MouseEvent) => void; /** * Event handler when the mouse leaves the target element */ onLeave?: (e: MouseEvent) => void; /** * Event handler when the mouse enters or leaves the target element */ onChange?: (isHovered: boolean, e: MouseEvent) => void; } /** * A React Hook that helps to track the hover state of an element. */ export declare function useHover(target: ElementTarget, options?: UseHoverOptions): boolean;