import { Position } from "./position"; import { Node } from "./model"; /** * An AST node that marks the presence of an error, for example a syntactic or semantic error in the original tree. */ export interface ErrorNode { message: string; position?: Position; } /** * Generic implementation of ErrorNode. */ export declare class GenericErrorNode extends Node implements ErrorNode { message: string; constructor(error?: Error, message?: string); }