export type UseDragToScrollOptions = {
disabled?: boolean;
ref?: React.RefObject;
};
export type UseDragToScroll = {
ref: React.RefObject;
onPointerDown: (e: React.PointerEvent) => void;
onClickCapture: (e: React.MouseEvent) => void;
};
/**
* Click-and-drag horizontal scrolling for an overflow-x container. Spread the
* returned `ref`, `onPointerDown` and `onClickCapture` onto the scroller. Pair
* with `touch-action: pan-x` so touch panning still works. Pass an existing
* `ref` to attach to a scroller the caller already references.
*/
export declare const useDragToScroll: ({ disabled, ref: externalRef, }?: UseDragToScrollOptions) => UseDragToScroll;
//# sourceMappingURL=useDragToScroll.d.ts.map