hyperformula-dc
Version:
HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas
28 lines (27 loc) • 968 B
TypeScript
/**
* @license
* Copyright (c) 2021 Handsoncode. All rights reserved.
*/
import { SimpleCellAddress } from './Cell';
import { Config } from './Config';
import { FunctionRegistry } from './interpreter/FunctionRegistry';
import { InterpreterState } from './interpreter/InterpreterState';
import { Ast } from './parser';
export declare class ArraySize {
width: number;
height: number;
isRef: boolean;
static fromArray<T>(array: T[][]): ArraySize;
static error(): ArraySize;
static scalar(): ArraySize;
constructor(width: number, height: number, isRef?: boolean);
isScalar(): boolean;
}
export declare class ArraySizePredictor {
private config;
private functionRegistry;
constructor(config: Config, functionRegistry: FunctionRegistry);
checkArraySize(ast: Ast, formulaAddress: SimpleCellAddress): ArraySize;
private checkArraySizeForFunction;
checkArraySizeForAst(ast: Ast, state: InterpreterState): ArraySize;
}