import type { Ref } from 'vue'; declare type ElRef = Nullable; interface ComponentElRef { $el: T; } declare type Nullable = T | null; interface Fn { (...arg: T[]): R; } export declare const useScrollToCenter: (scrollRef: Ref, opt?: { duration?: number; callback?: Fn; direction?: 'scrollTop' | 'scrollLeft'; }) => { scrollToCenter: (buttonEl: T) => void; }; export {};