import type { Connection } from 'vscode-languageserver'; import type { RuntimeFeature } from '../../di/index.js'; import { CommandService } from '../services/index.js'; import { LanguageServerServiceRuntime, type LanguageServerServiceRuntimeOptions } from './lsp-service-runtime.js'; export interface LanguageServerFeatureOptions { connection: Connection; runtimeFactory?: LanguageServerServiceRuntimeFactory; } export type LanguageServerServiceRuntimeFactory = (commandService: CommandService, options: LanguageServerServiceRuntimeOptions) => LanguageServerServiceRuntime; /** * Creates a runtime feature that wires the language server to the shared runtime. */ export declare function createLanguageServerFeature(options: LanguageServerFeatureOptions): RuntimeFeature;