import type { UseMouseSourceType } from "../use-mouse/index.js"; import type { ElementTarget } from "../use-target-element/index.js"; export interface MousePressedOptions { /** * Whether to listen to touch events * * @defaultValue true */ touch?: boolean; /** * Whether to listen to drag events * * @defaultValue true */ drag?: boolean; /** * Whether to use event capturing * * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#capture MDN - addEventListener#capture} * * @defaultValue false */ capture?: boolean; /** * The initial value of the mouse press * * @defaultValue false */ initialValue?: boolean; } export interface UseMousePressedReturns { /** * Whether the mouse is pressed */ pressed: boolean; /** * The source type of the mouse press */ sourceType: UseMouseSourceType; } /** * A React Hook that tracks mouse pressed state. */ export declare function useMousePressed(target?: ElementTarget | (() => Window) | (() => Document), options?: MousePressedOptions): UseMousePressedReturns;