export interface ScrollToOptions { /** * number of px to scroll more (less) */ additionalScroll?: number; /** * duration of scroll animation */ duration?: number; /** * animation function */ func?: (x: number) => number; /** * callback to fire when scrolling ended */ onScrollEnd?: () => void; /** * element to be on top when scroll ended */ target: HTMLElement; targetRect?: DOMRectReadOnly; /** * element to be scrolled (e.g. ) */ wrap: HTMLElement; wrapRect?: DOMRectReadOnly; direction?: 'vertical' | 'horizontal'; } export declare type StopFunction = () => void; /** * Scroll page (options.wrap) to the top of the options.target element */ export declare function scrollTo(options: ScrollToOptions): StopFunction;