import { MiniCodeContext } from "../../context"; import { MiniCodeOptions } from "../../mini-code"; import { type LspEntry } from "./manager"; import { File } from "../../files"; import { CmEditor } from "../../utils/cm-ext"; import type { ReadonlySignal } from "@ncpa0cpl/vanilla-jsx/signals"; export declare class LspContext { private readonly minicode; private lspManager; constructor(minicode: MiniCodeContext, opts: MiniCodeOptions); registerPlugins(cm: CmEditor, file: File): void; updatePlugins(cm: CmEditor, file: File): void; /** * Opens (or focuses) the tab for the given `file://` URI and resolves with * its editor view. Used by the LSP workspace to support cross-file * navigation such as go-to-definition and find-references. */ private displayFile; /** Forward a filesystem change event to the LSP manager. */ onFileChange(relPath: string, eventType: string): void; /** Returns a signal of all unique LSP entries. */ allEntries(): ReadonlySignal; /** * Restarts the LSP server with the given ID. Disconnects the old client, * creates a fresh one from the same config, and re-attaches all open * editors whose file extension matches the server. */ restartLsp(id: number): void; terminate(): void; } //# sourceMappingURL=context.d.ts.map