import { type PointerEvent, type PointerEventHandler } from "react"; type Config = { shouldPreventDefault?: boolean; delay?: number; }; type OnLongPress = (e: PointerEvent) => void; /** * Hook to handle long press interactions. * * @remarks * Triggers the callback after a specified delay while the pointer is held down. * Can optionally prevent the default behavior of the `pointerup` event. * * @typeParam E - The element type. * @param onLongPress - The function to call when a long press is detected. * @param config - Configuration options (delay, preventDefault). * @returns Event handlers for `onPointerDown` and `onPointerUp`. * * @example * ```tsx * const { onPointerDown, onPointerUp } = useLongPress(() => { * console.log("Long pressed!"); * }); * return ; * ``` */ export declare function useLongPress(onLongPress: OnLongPress, config?: Config): { onPointerDown: PointerEventHandler; onPointerUp: PointerEventHandler; }; export {};