hyperformula
Version:
HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas
26 lines (25 loc) • 931 B
TypeScript
/**
* @license
* Copyright (c) 2025 Handsoncode. All rights reserved.
*/
import { SimpleCellAddress } from '../Cell';
import { SheetMapping } from '../DependencyGraph/SheetMapping';
import { NamedExpressions } from '../NamedExpressions';
import { Ast } from './Ast';
import { ParserConfig } from './ParserConfig';
export declare class Unparser {
private readonly config;
private readonly sheetMapping;
private readonly namedExpressions;
constructor(config: ParserConfig, sheetMapping: SheetMapping, namedExpressions: NamedExpressions);
unparse(ast: Ast, address: SimpleCellAddress): string;
private unparseAst;
/**
* Unparses a sheet name.
* @param {number} sheetId - the ID of the sheet
* @returns {string} the unparsed sheet name
*/
private unparseSheetName;
private formatRange;
}
export declare function formatNumber(number: number, decimalSeparator: string): string;