import * as ts from "typescript"; import { Expression, J, Statement } from "../java"; export declare function isStatement(statement: J): statement is Statement; export declare function isExpression(expression: J): expression is Expression; export declare function getNextSibling(node: ts.Node): ts.Node | undefined; export declare function getPreviousSibling(node: ts.Node): ts.Node | undefined; export type TextSpan = [number, number]; export declare function compareTextSpans(span1: TextSpan, span2: TextSpan): 0 | 1 | -1; export declare function binarySearch(arr: T[], target: T, compare: (a: T, b: T) => number): number; export declare function hasFlowAnnotation(sourceFile: ts.SourceFile): boolean; export declare function checkSyntaxErrors(program: ts.Program, sourceFile: ts.SourceFile): [errorMsg: string, errorCode: number][]; export declare function isValidSurrogateRange(unicodeString: string): boolean; //# sourceMappingURL=parser-utils.d.ts.map