import SourceLocation from "@cafetextual/util/dist/src/source/SourceLocation"; import AAnnotation from '../parser/annotator/annotations/AAnnotation'; export default class ParseResult { ok: boolean; data?: any; ast: any; grammarURI: string; ruleName: string; src: Array; errMessage: string; verboseErr: string; errLocation: SourceLocation; annotations: Array>; static createSuccess(data: any, ast: any): ParseResult; static createErr(loc: SourceLocation, msg: string, verboseMsg: string): ParseResult; static err(type: string, src: Array, info: string): ParseResult; private static toFistLineLoc(src); toSerializeable(): any; }