import { type GridState } from '../../core/grid/index.js'; import { type GridFeature, type RowNode } from '../../core/types/index.js'; import type { DataSource, FetchAllOptions, ServerMode, ServerRowModelOptions } from './server-row-model.types.js'; export declare class ServerRowModel { #private; loading: boolean; answered: boolean; error: string | null; rowCount: number | null; readonly mode: ServerMode; readonly blockSize: number; readonly maxBlocks: number; readonly groupKeysOf: ServerRowModelOptions['groupKeysOf']; readonly isChildOf: ServerRowModelOptions['isChildOf']; constructor(grid: GridState, source: DataSource, options: ServerRowModelOptions); refresh: () => void; fetchAll: (options?: FetchAllOptions) => Promise; ensureRange: (startRow: number, endRow: number) => void; start: () => void; expandGroup: (node: RowNode, groupKeys: unknown[]) => Promise; collapseGroup: (node: RowNode, isChild: (row: TRow) => boolean) => void; } export declare function serverRowModel(source: DataSource, options?: ServerRowModelOptions): GridFeature; export declare function getServerRowModel(grid: GridState): ServerRowModel | undefined; declare module '../../core/types/api.js' { interface GridApi { refreshServerRows?: () => void; ensureServerRange?: (startRow: number, endRow: number) => void; fetchAllServerRows?: (options?: FetchAllOptions) => Promise; } }