import type { GridRowId } from '../types'; import type { ApiSection } from './types'; export type GridScrollApi = { /** * Scroll grid to row and column. * * @param rowId : id of row to scroll to. Passing null will not scroll the grid vertically. * @param columnId : id of column to scroll to. Passing null or omitting will not scroll the grid horizontally. Defaults to first column if the provided column id is not valid. * @param mode : scroll-mode. 'always' means it will always scroll. 'auto' will only scroll if not in viewport. */ scrollTo: (rowId: GridRowId | null, columnId?: string | null, mode?: 'always' | 'auto') => void; /** * Scroll to first row in grid. * @param columnId : id of column to scroll to. Passing null or omitting will not scroll the grid horizontally. Defaults to first column if the provided column id is not valid. */ scrollToTop: (columnId?: string | null) => void; /** * Scroll to last row in grid. * @param columnId : id of column to scroll to. Passing null or omitting will not scroll the grid horizontally. Defaults to first column if the provided column id is not valid. */ scrollToBottom: (columnId?: string | null) => void; }; export declare const createScrollApi: ApiSection; //# sourceMappingURL=scroll.d.ts.map