import*astsfrom'typescript';import{CompilerOptions,Diagnostic}from'./api';exportdeclareconstGENERATED_FILES:RegExp;exportdeclareconstDTS:RegExp;exportdeclareconstenumStructureIsReused{Not=0,SafeModules=1,Completely=2,}exportdeclarefunctiontsStructureIsReused(program:ts.Program):StructureIsReused;exportdeclarefunctioncreateMessageDiagnostic(messageText:string):ts.Diagnostic&Diagnostic;exportdeclarefunctionisInRootDir(fileName:string,options:CompilerOptions):string|true|null;exportdeclarefunctionrelativeToRootDirs(filePath:string,rootDirs:string[]):string;/** * Converts a ng.Diagnostic into a ts.Diagnostic. * This looses some information, and also uses an incomplete object as `file`. * * I.e. only use this where the API allows only a ts.Diagnostic. */exportdeclarefunctionngToTsDiagnostic(ng:Diagnostic):ts.Diagnostic;