import type { Sandbox } from "@codesandbox/api/dist/esm/RESTTypes"; import type { IFileStats } from "@codesandbox/nodebox"; import { Disposable } from "@codesandbox/pitcher-common"; import type { language } from "@codesandbox/pitcher-protocol"; import type { BrowserFSClient } from "../.../../FSClient"; import type { BrowserFileClient } from "../.../../file/FileClient"; export declare const LANGUAGE_SERVER_MAPPINGS: Map; export declare class BrowserLSP extends Disposable { private fsClient; private fileClient; private npmRegistries; private onLspNotificationEmitter; onNotification: import("@codesandbox/pitcher-common").Event; private onLspRequestEmitter; onRequest: import("@codesandbox/pitcher-common").Event<{ languageId: string; serverId: string; message: { id: string | number; method: string; params?: unknown; }; }>; private emulatorPromise; private langServers; constructor(fsClient: BrowserFSClient, fileClient: BrowserFileClient, npmRegistries: Sandbox["npmRegistries"]); updateRegistries(npmRegistries: Sandbox["npmRegistries"]): void; private ensureEmulatorPromise; private _readFileSync; /** * Takes the package.json, downloads its private packages configured for the user * and then returns the new package.json (without those packages) + the node modules * dependencies. */ private rewritePackageJson; private startEmulator; /** * @id {string}: Can be a language or server identifier */ private getServerById; sendLSPNotification(params: language.LanguageLspNotification["params"]): Promise; sendLSPRequest(params: language.LSPRequestMessage["request"]["params"]): Promise; sendLSPServerResponse(params: language.LanguageLspServerResponse["request"]["params"]): Promise; readFile(filepath: string): Promise; statFile(filepath: string): Promise; } //# sourceMappingURL=BrowserLSP.d.ts.map