import { type GridState } from '../../core/grid/index.js'; import { type ColumnState, type RowNode } from '../../core/types/index.js'; import type { FormulaColumn } from './formula.types.js'; import { type Node } from './parse.js'; export interface ParseFailure { message: string; at: number; } interface Compiled { expression: string; onError: 'code' | 'blank'; node: Node | null; error: ParseFailure | null; dependsOn: string[]; } export type CompiledMap = ReadonlyMap; export declare const NO_FORMULAS: CompiledMap; export type ReportParseError = (columnId: string, failure: ParseFailure) => void; export declare function compileAll(columns: Record, report: ReportParseError): CompiledMap; export declare function compileExpressions(slice: unknown, report: ReportParseError): CompiledMap | null; export declare function withEntry(current: CompiledMap, id: string, entry: string | FormulaColumn, report: ReportParseError): CompiledMap; export declare function withoutEntry(current: CompiledMap, id: string): CompiledMap; export declare function expressionsOf(current: CompiledMap): Record; export declare function applyFormulas(nodes: RowNode[], compiled: CompiledMap, allColumns: readonly ColumnState[], grid?: GridState): RowNode[]; export {};