import type { GridRowId } from '@mui/x-data-grid-pro'; import type { RefObject } from '@mui/x-internals/types'; import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js"; import type { GridFormulaResult } from "./gridFormulaInterfaces.js"; /** * Evaluates a DRAFT formula source against the current grid data without * committing anything — the formula bar's on-the-fly result preview. Reads are * strictly side-effect free: formula-cell dependencies resolve from the * committed lookup (state), raw dependencies through `valueGetter` from row * data, positions from the live view position context. Nothing is written to * the evaluation cache or its invalidation bookkeeping. * * @param {RefObject} apiRef The private grid api. * @param {{ id: GridRowId; field: string }} cell The cell the draft belongs to. * @param {string} source The draft text, including the leading `=`. * @param {{ a1Notation: boolean }} options Whether the draft is written in the A1 dialect. * @returns {GridFormulaResult | null} The would-be result, or `null` for a non-formula draft. */ export declare function previewFormulaResult(apiRef: RefObject, cell: { id: GridRowId; field: string; }, source: string, options: { a1Notation: boolean; }): GridFormulaResult | null;