import { type PointerEventHandler } from "react"; type Handlers = { onPointer: PointerEventHandler; onDblPointer: PointerEventHandler; }; type Callback = PointerEventHandler; /** * Distinguishes between single and double pointer clicks. * * @remarks * This hook returns a callback that delays execution to check if a second click occurs within the specified delay. * If a second click occurs, `onDblPointer` is called. Otherwise, `onPointer` is called. * * @param handlers - Object containing `onPointer` (single click) and `onDblPointer` (double click) handlers. * @param delay - The delay in milliseconds to wait for a second click (default: 250ms). * @returns A `PointerEventHandler` to attach to an element. * * @example * ```tsx * const handler = usePointerHandler({ * onPointer: () => console.log("Single click"), * onDblPointer: () => console.log("Double click") * }); * return ; * ``` */ export declare function usePointerHandler({ onPointer, onDblPointer }: Handlers, delay?: number): Callback; export {};