import type { CodeAction, LspDiagnostic, LspServerAdapter, ServerCommand } from "./types.js"; export declare function resolveSpawnCommand(command: ServerCommand, platform?: NodeJS.Platform, comSpec?: string | undefined): ServerCommand; /** * Distinguishes "the server was still working when the budget ran out" * from exits/errors: pull diagnostics may degrade to already-published * push results on this rejection, never on a server crash. */ export declare class LspRequestTimedOutError extends Error { static is(error: unknown): error is LspRequestTimedOutError; } export declare class LspClient { #private; constructor(adapter: LspServerAdapter, command: ServerCommand, cwd: string, timeoutMs: number); start(): Promise; initialize(root: string): Promise; didOpen(uri: string, text: string, languageId: string): void; didClose(uri: string): boolean; diagnostics(uri: string): Promise; codeActions(uri: string, text: string, diagnostics: LspDiagnostic[], kind: string): Promise; resolveActions(actions: CodeAction[]): Promise; shutdown(): Promise; close(): void; private request; private notify; } //# sourceMappingURL=lsp-client.d.ts.map