import type { RefObject } from '@mui/x-internals/types'; import type { DataGridProcessedProps } from "../../models/props/DataGridProps.mjs"; import type { GridApiCommon, GridRowId } from "../../models/index.mjs"; export declare const getVisibleRows: (apiRef: RefObject, props?: Pick) => { rows: import("@mui/x-data-grid").GridRowEntry[]; range: { firstRowIndex: number; lastRowIndex: number; } | null; rowIdToIndexMap: Map; }; /** * Computes the list of rows that are reachable by scroll. * Depending on whether pagination is enabled, it will return the rows in the current page. * - If the pagination is disabled or in server mode, it equals all the visible rows. * - If the row tree has several layers, it contains up to `state.pageSize` top level rows and all their descendants. * - If the row tree is flat, it only contains up to `state.pageSize` rows. */ export declare const useGridVisibleRows: (apiRef: RefObject, props?: Pick) => { rows: import("@mui/x-data-grid").GridRowEntry[]; range: { firstRowIndex: number; lastRowIndex: number; } | null; rowIdToIndexMap: Map; }; /** * Returns the row index expected by `apiRef.current.scrollToIndexes`. For server-side * pagination, the current page offset is added to the index of the loaded row. * Returns `undefined` when the row is not part of the visible rows. */ export declare const getRowIndexRelativeToAllRows: (apiRef: RefObject, id: GridRowId) => number | undefined;