UNPKG

hyperformula

Version:

HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas

24 lines (23 loc) 1.02 kB
/** * @license * Copyright (c) 2025 Handsoncode. All rights reserved. */ import { SimpleCellAddress } from './Cell'; import { FormulaTransformer } from './dependencyTransformers/Transformer'; import { Ast, ParserWithCaching } from './parser'; import { Statistics } from './statistics/Statistics'; import { UndoRedo } from './UndoRedo'; export declare class LazilyTransformingAstService { private readonly stats; parser?: ParserWithCaching; undoRedo?: UndoRedo; private transformations; private combinedTransformer?; constructor(stats: Statistics); version(): number; addTransformation(transformation: FormulaTransformer): number; beginCombinedMode(sheet: number): void; commitCombinedMode(): number; applyTransformations(ast: Ast, address: SimpleCellAddress, version: number): [Ast, SimpleCellAddress, number]; getTransformationsFrom(version: number, filter?: (transformation: FormulaTransformer) => boolean): IterableIterator<FormulaTransformer>; }