import type { HotInstance } from '../types'; import type { default as CellCoords } from '../../3rdparty/walkontable/src/cell/coords'; /** * @typedef ViewportScroller * @property {function(): void} resume Resumes the viewport scroller. * @property {function(): void} suspend Suspends the viewport scroller until the `resume` method is called. * @property {function(): void} skipNextScrollCycle Skip the next scroll cycle. * @property {function(CellCoords): void} scrollTo Scroll the viewport to a given cell. */ /** * Installs a viewport scroller module. The module is responsible for scrolling the viewport to a given cell * based on the selection type (single cell selection, multiple cells selection, header selection etc.). * It's triggered by the selection module via the `afterSetRangeEnd` hook every time the selection changes. * * @param {Core} hot The Handsontable instance. * @returns {ViewportScroller} The viewport scroller module. */ export declare function createViewportScroller(hot: HotInstance): { resume(): void; suspend(): void; skipNextScrollCycle(): void; scrollTo(cellCoords: CellCoords): void; };