import type { GridColDef, GridRowId, GridRowModel } from '@mui/x-data-grid-pro'; import type { RefObject } from '@mui/x-internals/types'; import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs"; /** * Adapter-layer glue between the editor pipeline and the pure A1 engine * transforms. A1 is editing-UI only: `toCanonicalFormula` runs at commit/paste, * `toDisplayFormula` at edit-begin, and the stored row value, copy, export and * `getCellFormula` always stay canonical. */ /** * Renders a stored canonical formula source as A1 for the editor seed. `cell` * is the cell that owns the formula — anchor-relative range axes render * against its current view position. */ export declare function convertCanonicalToA1Display(source: string, apiRef: RefObject, cell: { id: GridRowId; field: string; }): string; /** * Converts an A1 formula committed through the editor to canonical form. When * the committed text is identical to what was seeded (Enter without an edit), * the stored canonical source is returned unchanged — re-freezing relative * references against a possibly re-sorted view would silently change them. */ export declare function convertA1ToCanonicalCommit(source: string, row: GridRowModel, colDef: GridColDef, apiRef: RefObject): string; /** * Converts an A1 formula pasted into a cell to canonical form, applying the * Excel fill offset: relative references shift by the target cell's distance * from the paste origin (the top-left target cell). Canonical formulas * pasted from an in-grid copy carry no A1 tokens and pass through unchanged. */ export declare function convertA1ToCanonicalPaste(source: string, row: GridRowModel, colDef: GridColDef, apiRef: RefObject): string;