import type { GridRowData, GridRowId, GridRowMeta } from '../types' export type Collection = { /** * For flat structures, this is all ids. For grouped and trees, this includes * only the top level nodes */ ids: GridRowId[] /** * An id & row Map */ entities: Map /** * An id & row meta Map */ meta: Map } export type SortFn = | null | (( ids: GridRowId[], entities: Map, meta: Map ) => GridRowId[])