import { CancellationToken, CodeAction, ExecuteCommandParams } from 'vscode-languageserver'; import { BackgroundAnalysisProgramFactory } from '../../../analyzer/backgroundAnalysisProgram'; import { ImportResolverFactory } from '../../../analyzer/importResolver'; import { AnalyzerServiceOptions } from '../../../analyzer/service'; import { IBackgroundAnalysis } from '../../../backgroundAnalysisBase'; import { ConsoleInterface } from '../../../common/console'; import { FileSystem } from '../../../common/fileSystem'; import { LanguageServerInterface, MessageAction, ServerSettings, WindowInterface } from '../../../common/languageServerInterface'; import { ServiceProvider } from '../../../common/serviceProvider'; import { Range } from '../../../common/textRange'; import { Uri } from '../../../common/uri/uri'; import { Workspace } from '../../../workspaceFactory'; import { HostSpecificFeatures } from './testState'; export declare class TestFeatures implements HostSpecificFeatures { importResolverFactory: ImportResolverFactory; backgroundAnalysisProgramFactory: BackgroundAnalysisProgramFactory; getCodeActionsForPosition(workspace: Workspace, fileUri: Uri, range: Range, token: CancellationToken): Promise; execute(ls: LanguageServerInterface, params: ExecuteCommandParams, token: CancellationToken): Promise; } export declare class TestLanguageService implements LanguageServerInterface { readonly console: ConsoleInterface; readonly fs: FileSystem; readonly window: TestWindow; readonly supportAdvancedEdits = true; readonly serviceProvider: ServiceProvider; private readonly _workspace; private readonly _defaultWorkspace; constructor(workspace: Workspace, console: ConsoleInterface, fs: FileSystem, options?: AnalyzerServiceOptions); getWorkspaces(): Promise; getWorkspaceForFile(uri: Uri): Promise; getSettings(_workspace: Workspace): Promise; createBackgroundAnalysis(serviceId: string): IBackgroundAnalysis | undefined; reanalyze(): void; restart(): void; } declare class TestWindow implements WindowInterface { showErrorMessage(message: string): void; showErrorMessage(message: string, ...actions: MessageAction[]): Promise; showWarningMessage(message: string): void; showWarningMessage(message: string, ...actions: MessageAction[]): Promise; showInformationMessage(message: string): void; showInformationMessage(message: string, ...actions: MessageAction[]): Promise; } export {};