import type { UseMouseOptions, UseMouseReturns } from "../use-mouse/index.cjs"; import type { Pausable } from "../use-pausable/index.cjs"; import type { ElementTarget } from "../use-target-element/index.cjs"; export interface MouseInElementOptions extends UseMouseOptions { handleOutside?: boolean; } export interface UseMouseInElementReturns extends Pausable { /** * Whether the mouse is outside the element */ isOutside: boolean; /** * The x position of the mouse relative to the element */ elementX: number; /** * The y position of the mouse relative to the element */ elementY: number; /** * The x position of the element */ elementPositionX: number; /** * The y position of the element */ elementPositionY: number; /** * The height of the element */ elementHeight: number; /** * The width of the element */ elementWidth: number; /** * The mouse state */ stop(): void; /** * The mouse state */ mouse: UseMouseReturns; } /** * A React Hook that tracks mouse position in an element. */ export declare function useMouseInElement(target: ElementTarget, options?: MouseInElementOptions): UseMouseInElementReturns;