import { type MaybeRef } from 'vue';
export interface AutoScrollOptions {
/** Pixels from edge where scrolling starts */
threshold?: number;
/** Scroll speed in pixels per frame */
speed?: number;
/** Max scroll speed (for acceleration near edge) */
maxSpeed?: number;
}
/**
* Auto-scroll when dragging near edges of a scrollable container.
*
* @example
* ```vue
*
*
*
*
*
* ...
*
*
*
* ```
*/
export declare function useAutoScroll(container: MaybeRef, options?: AutoScrollOptions): {
/** Call on drag-move with cursor position */
onDragMove: (position: {
x: number;
y: number;
}) => void;
/** Call on drag-end to stop scrolling */
stop: () => void;
/** Is currently auto-scrolling */
isScrolling: import("vue").Ref;
};