import * as React from 'react'; import { DataGridProps } from '../DataGrid.types'; import { ColumnType } from '../types/column.type'; import { RowId } from '../types/row.type'; import { CellType } from '../types/cell.type'; import { EditFinishParas } from '../types/edit.type'; type DataGridNonNullableProps = Required, 'data' | 'columns' | 'initialState' | 'density' | 'uniqueField' | 'sortMode' | 'pagination' | 'paginationMode' | 'scrollbarSize' | 'slots' | 'slotProps'>>; export type DataGridPropsWithDefaultValue = Omit, keyof DataGridNonNullableProps> & DataGridNonNullableProps; export type DataGridContextValue = DataGridPropsWithDefaultValue & { paginationHeight: number; computedColumnWidths: number[]; allRowIds: Array; gridHeight: number; gridWidth: number; gridScrollHeight: number; gridScrollWidth: number; isScrollX: boolean; isScrollY: boolean; onColumnResize: (column: ColumnType, columnWidth: number, newWidth: number, stopped?: boolean) => void; editingCell: CellType; editingValueCache: Record; updateEditingValue: (rowId: RowId, field: string, value: any) => void; onFinishEditing: (paras: EditFinishParas) => Promise; }; export declare const defaultContextValue: DataGridContextValue; export declare const DataGridContext: React.Context>; export declare function useDataGridContext(): DataGridContextValue; export {};