/** * LSP Language Registry * * Maps file extensions to language server configurations. * Servers are configurable via .valora/lsp-servers.json — but that file is * project-declared, untrusted content (anyone who can get a victim to clone a * repo and run any `valora` command inside it controls it), and its * `command`/`args` are spawned verbatim the moment a matching file is * touched. Same root-cause class as `.valora/config.json`'s hooks field * (see `hook-execution.service.ts`) — reuse the same workspace-trust gate * rather than building a second trust mechanism. */ import type { LSPLanguage, LSPServerConfig } from './lsp.types.js'; /** * Get the server configuration for a file */ export declare function getServerForFile(filePath: string, projectRoot?: string): LSPServerConfig | null; /** * Get the server configuration for a language */ export declare function getServerForLanguage(language: LSPLanguage, projectRoot?: string): LSPServerConfig | null; /** * Get all configured server configurations */ export declare function getAllServers(projectRoot?: string): Record; /** * Reset cached configurations (for testing) */ export declare function resetLanguageRegistry(): void; //# sourceMappingURL=lsp-language-registry.d.ts.map