import type { GridRowId } from '@mui/x-data-grid-pro'; import type { RefObject } from '@mui/x-internals/types'; import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js"; interface GridFormulaFillCell { id: GridRowId; field: string; } /** * Computes the value to fill into `targetCell` when the fill handle drags * `sourceCell`. When the source is a live formula and the target column accepts * formulas, the formula's relative references are shifted by the source→target * positional delta (Excel fill semantics) and the adjusted canonical source is * returned. In every other case it returns `null`, and the caller copies the * source cell's evaluated value as before. * * Returns `null` when: * - the target column is not `allowFormulas` — a `=…` string there would be * inert literal text, so the evaluated value is copied instead; * - the source cell is not a live, evaluated formula (`getCellFormulaResult` * covers `allowFormulas`, `disableFormulas`/`dataSource`/pivot, and a real `=` * value, and rejects a literal `=text` parked in a non-formula column). * * When the source is a formula but cannot be adjusted (parse error, or a cell * outside the position context such as a group/pinned row), the original * canonical source is returned unchanged so the formula is never dropped. */ export declare function getFilledFormulaSource(apiRef: RefObject, sourceCell: GridFormulaFillCell, targetCell: GridFormulaFillCell): string | null; export {};