import { Expression } from "../../mappings/d2sb/Expression"; import { ExpressionModel } from "../generic/ExpressionModel"; import { Serializable } from "../interfaces/Serializable"; import { EventHub } from "../helpers/EventHub"; export declare class SBDraft2ExpressionModel extends ExpressionModel implements Serializable { /** * Evaluates expression and sets its result to result property. * * If expression throws a SyntaxError, no result is returned and the syntax error is pushed to * validation.errors. If expression throws any other exception, it is pushed to validation.warnings * * @param context * @returns {any} */ evaluate(context?: { $job?: any; $self?: any; }): Promise; /** Cached result of expression last time it was evaluated */ result: any; /** Internal CWL representation of Expression */ private value; constructor(value?: number | string | Expression, loc?: string, eventHub?: EventHub); /** * Returns CWL representation. */ serialize(): number | string | Expression; /** * Sets CWL representation as internal value */ deserialize(val?: number | string | Expression): void; /** * Sets value of expression.script or primitive based on type parameter. */ setValue(val: number | string | Expression, type: "expression" | "string" | "number"): void; /** * Returns string representation of expression.script or primitive value. * @returns {string} */ toString(): string; /** * Returns script value of expression.script, or undefined if not set. * @returns {string} */ getScript(): string; clone(): SBDraft2ExpressionModel; cloneStatus(clone: SBDraft2ExpressionModel): void; }