import { IDisposable } from "../../../../base/common/lifecycle.js"; import { IWorkbenchLayoutService } from "../../../../workbench/services/layout/browser/layoutService.service.js"; /** * Wires pointer-event-based horizontal scrolling on a chip lane. * * On phone, the chat-input chip row uses `overflow-x: auto` to scroll * natively when content overflows the viewport, but each chip's * `Gesture.addTarget` (in monaco's action-bar item renderer) calls * `preventDefault` on `touchmove`, swallowing the pan before the lane * can scroll. To restore the scroll behavior, this helper listens for * pointer events on the lane element and translates horizontal drags * into `scrollLeft` updates. A small movement threshold keeps single * taps falling through to the chip click handlers (so taps still open * pickers); once the threshold is crossed the gesture is claimed via * `setPointerCapture` and the trailing synthetic click is suppressed. * * The pointer handlers self-gate on phone-layout: on desktop they * return immediately so mouse-drag semantics on the bottom toolbar * are unchanged. The cost on desktop is one DOM-class read per * pointer-down — negligible. * * @param lane The element with `overflow-x: auto` (the chip row). * @param layoutService Used to read the current viewport class. * @returns Disposable that detaches all pointer listeners. */ export declare function installMobileChipLaneScroll(lane: HTMLElement, layoutService: IWorkbenchLayoutService): IDisposable;