import type { RefObject } from '@mui/x-internals/types'; import type { GridRowId, GridRowModel } from "../gridRows.mjs"; import type { GridColDef } from "../colDef/index.mjs"; /** * Get the cell aggregation result * @param {GridRowId} id The row id * @param {string} field The field * @returns { { position: 'footer' | 'inline'; value: any } | null } The cell aggregation result */ export type GetCellAggregationResultFn = (id: GridRowId, field: string) => { position: 'footer' | 'inline'; value: any; formattedValue?: any; } | null; export type FilterValueGetterFn = (row: GridRowModel, colDef: GridColDef) => any; export interface GridAggregationInternalHooks { useCellAggregationResult: GetCellAggregationResultFn; useFilterValueGetter: (apiRef: RefObject, props: Props) => FilterValueGetterFn; }