import type { Expression } from "../ast/expression.js"; import type { Range } from "../ast/range.js"; /** * Error thrown during interpretation of a program */ export declare class RuntimeError extends Error { /** * Interpreation steps */ interpretationStack: (Expression | undefined)[]; /** * Creates a new RuntimeError * * @param message the error message * @param cause the expression that caused the error, pushed to the stack */ constructor(message: string, cause?: Expression); /** * Finds the first range in the stack * * @returns the found range of undefined if none was found */ findFirstRange(): Range | undefined; } //# sourceMappingURL=runtimeError.d.ts.map