import { ScrollBarDirection } from '../../scroll-bar';
import { Ref } from 'vue';
type ScrollBackOptions = {
    scrollOffset: {
        x: number;
        y: number;
    };
    maxScrollDistance: {
        x: number;
        y: number;
    };
    timer?: number;
    onScroll?: (direction: ScrollBarDirection) => void;
    onScrollEnd?: (direction: ScrollBarDirection) => void;
};
/**
 * 在特定的时间内滚动到0
 * @param options
 * @returns
 */
declare const useScrollBack: ({ scrollOffset, maxScrollDistance, timer, onScroll, onScrollEnd }: ScrollBackOptions) => {
    start: (direction: ScrollBarDirection) => void;
    stop: () => void;
    isActive: Readonly< Ref<boolean, boolean>>;
};
export { useScrollBack };
