import type { sendAftRequest } from "../lib/aft-bridge.js"; import { sendAftRequests } from "../lib/aft-bridge.js"; import { findAftBinary } from "../lib/binary-probe.js"; import { resolveAdaptersForCommand } from "../lib/harness-select.js"; export interface LspDoctorOptions { argv: string[]; sendRequest?: typeof sendAftRequest; sendRequests?: typeof sendAftRequests; findBinary?: typeof findAftBinary; resolveAdapters?: typeof resolveAdaptersForCommand; } export interface LspInspectResponse { success: boolean; code?: string; message?: string; file?: string; extension?: string; project_root?: string | null; experimental_lsp_ty?: boolean; disabled_lsp?: string[]; lsp_paths_extra?: string[]; matching_servers?: LspServerInspection[]; diagnostics_complete?: boolean; diagnostics_gaps?: Array<{ server_id: string; reason: string; }>; diagnostics_count?: number; diagnostics?: LspDiagnostic[]; typescript_package_warning?: string; } export interface LspServerInspection { id: string; name: string; kind: string; extensions: string[]; root_markers: string[]; binary_name: string; binary_path: string | null; binary_source: "path" | "lsp_paths_extra" | "project_node_modules" | "not_found" | string; workspace_root: string | null; spawn_status: string; args: string[]; } export interface LspDiagnostic { file: string; line: number; column: number; end_line?: number; end_column?: number; severity: string; message: string; code?: string | null; source?: string | null; } export declare function findProjectRootForFile(filePath: string, fallbackCwd?: string): string; export declare function printLspDoctorHelp(): void; export declare function runLspDoctor(options: LspDoctorOptions): Promise; export declare function renderLspInspection(inputFile: string, response: LspInspectResponse): string; export declare function typescriptPackageWarning(response: LspInspectResponse): string | null; //# sourceMappingURL=lsp.d.ts.map