/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ExpressionNode } from "./ast"; import { BinaryOps, Delayed, Errors, UnaryOps } from "./core"; import { CalcObj, CalcValue, Pending, Resolver, Runtime } from "./types"; export interface EvalContext { readonly errors: Errors; readonly binOps: BinaryOps; readonly unaryOps: UnaryOps; } export declare function evaluate(ctx: EvalContext, origin: O, rt: Runtime, resolver: Resolver, expr: ExpressionNode): CalcValue | Delay; export declare type Interpreter = (origin: O, root: CalcObj, expr: ExpressionNode) => [Pending[], Delayed>]; export declare const evalContext: EvalContext; export declare const interpret: Interpreter; //# sourceMappingURL=interpreter.d.ts.map