import TypeScript from 'typescript'; import DependencyResolver from './DependencyResolver'; declare type Options = { dependencyResolver: DependencyResolver; compilerOptions: TypeScript.CompilerOptions; transformers: TypeScript.CustomTransformers; }; export default class LanguageServiceHost implements TypeScript.LanguageServiceHost { private dependencyResolver; private compilerOptions; private customTransformers?; private files; constructor(options: Options); readDirectory: (path: string, extensions?: readonly string[] | undefined, exclude?: readonly string[] | undefined, include?: readonly string[] | undefined, depth?: number | undefined) => string[]; directoryExists: (path: string) => boolean; getDirectories: (path: string) => string[]; addFile(filePath: string): void; getCustomTransformers: () => TypeScript.CustomTransformers | undefined; getScriptFileNames: () => string[]; getScriptVersion: (filePath: string) => string; getScriptSnapshot: (fileName: string) => TypeScript.IScriptSnapshot | undefined; getCurrentDirectory: () => string; getCompilationSettings: () => TypeScript.CompilerOptions; fileExists: (fileName: string) => boolean; readFile: (fileName: string) => string | undefined; getDefaultLibFileName: (options: TypeScript.CompilerOptions) => string; resolveModuleNames(moduleNames: string[], containingFile: string): (TypeScript.ResolvedModule | undefined)[]; resolveTypeReferenceDirectives(typeReferenceDirectiveNames: string[], containingFile: string): (TypeScript.ResolvedTypeReferenceDirective | undefined)[]; } export {};