import { RefObject } from 'react'; import { GridFilterOperator } from '@mui/x-data-grid'; import { GridApiCommunity } from '@mui/x-data-grid/models/api/gridApiCommunity'; import { FieldKey, GridEnrichedBySchemaColDef, Id, Item, TField } from '../../@types'; export type ResizeType = 'condense' | 'maxContent' | 'fitScreen'; /** * * @param columns * @param resizeType * @param apiRef * @returns columns resized to the chosen resizeType */ export declare function resizeColumns(columns: GridEnrichedBySchemaColDef[], resizeType: ResizeType): GridEnrichedBySchemaColDef[]; export declare const quantityOnlyOperators: ({ type }: { type: string; }) => GridFilterOperator[]; export declare const buildEditPath: (basePath: string, objId: Id) => string; export declare const buildExitPath: (basePath: string, objId?: Id) => string; export declare const scrollToNewRow: (apiRef: RefObject, tableAutoHeight?: boolean) => void; export declare function addNewRow({ newRow, indexField, tableAutoHeight, apiRef, setDataGridRows, }: { newRow: Item; indexField?: FieldKey; tableAutoHeight?: boolean; apiRef: RefObject; setDataGridRows: (value: React.SetStateAction[]>) => void; }): void; export declare function updateRow({ newRow, setDataGridRows, originalId, apiRef, }: { newRow: Item; originalId?: Id; setDataGridRows: (value: React.SetStateAction[]>) => void; apiRef: RefObject; }): void; export declare function deleteRow({ id, apiRef, setDataGridRows, onProcessRow, }: { id: Id; apiRef: RefObject; setDataGridRows: (value: React.SetStateAction[]>) => void; onProcessRow?: (p?: Item) => void; }): void; export declare function getAllRowIds(apiRef: RefObject): import("@mui/x-data-grid").GridRowId[]; //# sourceMappingURL=utils.d.ts.map