import { SourceFile, Tree } from "./tree"; import { TreeVisitor } from "./visitor"; export declare const ParseErrorKind = "org.openrewrite.tree.ParseError"; export interface ParseError extends SourceFile { readonly kind: typeof ParseErrorKind; readonly text: string; readonly erroneous?: SourceFile; } export declare function isParseError(tree: any): tree is ParseError; export declare class ParseErrorVisitor

extends TreeVisitor { isAcceptable(sourceFile: SourceFile, p: P): Promise; protected accept(t: Tree, p: P): Promise; protected visitParseError(e: ParseError, p: P): Promise; } //# sourceMappingURL=parse-error.d.ts.map