/** * Dispatches a synthetic drag event on `element` for behavior tracking purposes. * Does nothing if the element is null or no longer attached to the DOM. * @param element - the drag handle. * @param type - whether a dragstart or dragend event needs to be dispatched. * * @internal */ export declare function dispatchDragTrackingEvent(element: HTMLElement | null, type: 'dragstart' | 'dragend'): void; /** * Cancels an in-progress dnd-kit keyboard-initiated drag by dispatching a * synthetic Escape keydown on `ownerDocument`. dnd-kit's `KeyboardSensor` * listens for Escape directly on the owner document to cancel a drag, so * this triggers the library's own real cancellation path (including its * internal listener teardown) instead of only resetting local state. * * @internal */ export declare function cancelActiveKeyboardDrag(ownerDocument: Document): void; /** * Attaches a capture-phase `pointerdown` listener on `ownerDocument` that * cancels an active keyboard-initiated drag on the next pointer * interaction anywhere in the document. Capture phase is used so the * cancellation runs before a target's own handler can stop propagation. * @param onBeforeCancel - invoked right before the cancellation is dispatched, * e.g. to flag that the cancellation was pointer-triggered. * @returns a cleanup function that detaches the listener. * * @internal */ export declare function attachKeyboardDragCancelListener(ownerDocument: Document, onBeforeCancel?: () => void): () => void; //# sourceMappingURL=dnd-behavior-tracking-utils.d.ts.map