/** Options accepted by {@link useTileryPointerDrag}. */ export type TileryPointerDragOptions = { /** Called on every pointer-move event while the drag is active. */ onMove: (e: React.PointerEvent) => void; /** * When `true`, `stopPropagation` is called on the initial pointer-down * event to prevent ancestor handlers from reacting. */ stopPropagationOnDown?: boolean; }; /** * Pointer event handlers and drag state returned by * {@link useTileryPointerDrag}. */ export type TileryPointerDragHandlers = { /** `true` while a drag gesture is in progress. */ isDragging: boolean; /** Attach to the element that should initiate the drag on pointer-down. */ onPointerDown: (e: React.PointerEvent) => void; /** Attach to the element to receive move events during the drag. */ onPointerMove: (e: React.PointerEvent) => void; /** Attach to the element to end the drag on pointer-up. */ onPointerUp: (e: React.PointerEvent) => void; }; /** * Attaches pointer-capture semantics to an element so it receives all pointer * events for the duration of a drag, even if the cursor leaves the element. */ export declare function useTileryPointerDrag({ onMove, stopPropagationOnDown, }: TileryPointerDragOptions): TileryPointerDragHandlers; //# sourceMappingURL=use-pointer-drag.d.ts.map