import { CharStream, ParserRuleContext } from 'antlr4ts'; import { BaseError } from '../base-error'; import { Position } from '../position'; /** * CST to AST conversion error class. */ export declare class AstConversionError extends BaseError { /** * Start position of error node. * The position containing the first character of the node. */ readonly start: Position; /** * End position of error node. * The last position of the node + 1 is returned. */ readonly end: Position; /** * The original string of error node. * Whitespaces are included. */ readonly text: string; constructor(ctx: ParserRuleContext, input: CharStream, /** * Error message. */ e: string); }