import * as ts from './lib/typescriptServices'; import { IExtraLibs } from './monaco.contribution'; import IWorkerContext = monaco.worker.IWorkerContext; export declare class TypeScriptWorker implements ts.LanguageServiceHost { private _ctx; private _extraLibs; private _languageService; private _compilerOptions; constructor(ctx: IWorkerContext, createData: ICreateData); getCompilationSettings(): ts.CompilerOptions; getScriptFileNames(): string[]; private _getModel; getScriptVersion(fileName: string): string; getScriptSnapshot(fileName: string): ts.IScriptSnapshot | undefined; getScriptKind?(fileName: string): ts.ScriptKind; getCurrentDirectory(): string; getDefaultLibFileName(options: ts.CompilerOptions): string; isDefaultLibFileName(fileName: string): boolean; private static clearFiles; getSyntacticDiagnostics(fileName: string): Promise; getSemanticDiagnostics(fileName: string): Promise; getSuggestionDiagnostics(fileName: string): Promise; getCompilerOptionsDiagnostics(fileName: string): Promise; getCompletionsAtPosition(fileName: string, position: number): Promise; getCompletionEntryDetails(fileName: string, position: number, entry: string): Promise; getSignatureHelpItems(fileName: string, position: number): Promise; getQuickInfoAtPosition(fileName: string, position: number): Promise; getOccurrencesAtPosition(fileName: string, position: number): Promise | undefined>; getDefinitionAtPosition(fileName: string, position: number): Promise | undefined>; getReferencesAtPosition(fileName: string, position: number): Promise; getNavigationBarItems(fileName: string): Promise; getFormattingEditsForDocument(fileName: string, options: ts.FormatCodeOptions): Promise; getFormattingEditsForRange(fileName: string, start: number, end: number, options: ts.FormatCodeOptions): Promise; getFormattingEditsAfterKeystroke(fileName: string, postion: number, ch: string, options: ts.FormatCodeOptions): Promise; findRenameLocations(fileName: string, positon: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename: boolean): Promise; getRenameInfo(fileName: string, positon: number, options: ts.RenameInfoOptions): Promise; getEmitOutput(fileName: string): Promise; getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: number[], formatOptions: ts.FormatCodeOptions): Promise>; updateExtraLibs(extraLibs: IExtraLibs): void; } export interface ICreateData { compilerOptions: ts.CompilerOptions; extraLibs: IExtraLibs; } export declare function create(ctx: IWorkerContext, createData: ICreateData): TypeScriptWorker;