import type { LspServerAdapter } from "./types.js"; export type LspAction = "diagnostics" | "fix"; export interface DiagnosticRoute { adapter: LspServerAdapter; reason: string; files: string[]; } export interface DiagnosticRouteParams { root?: string; paths?: string[]; limit?: number; server?: string | string[]; /** Set to false to disable best-effort auto-install of missing servers. */ autoInstall?: boolean; } export declare const SUPPORTED_SERVER_DESCRIPTION = "Supported LSP servers are defined by pi-lsp config and selected by file extension."; export declare function selectDiagnosticRoutes(adapters: LspServerAdapter[], params: DiagnosticRouteParams, defaultLimit: number): { root: string; routes: { adapter: LspServerAdapter; reason: string; files: string[]; }[]; skipped: DiagnosticRoute[]; }; export interface FixRoute { adapter: LspServerAdapter; files: string[]; } export interface MultiFileFixRouteParams { root?: string; paths: string[]; server?: string; } /** * Resolve fix routes for one or more files, grouped per adapter so each * LSP server is spawned once for all of its files. */ export declare function selectFixRoutes(adapters: LspServerAdapter[], params: MultiFileFixRouteParams): { root: string; routes: { adapter: LspServerAdapter; reason: string; files: string[]; }[]; }; /** Restrict adapters by name; unknown or blank names fail loudly with the configured names. */ export declare function filterAdapters(adapters: LspServerAdapter[], selected: string | string[] | undefined): LspServerAdapter[]; //# sourceMappingURL=routes.d.ts.map