import type { Connection, Disposable, ServerRequestHandler } from 'vscode-languageserver'; import * as LSP from 'vscode-languageserver-protocol'; import { type LoggingService } from './logging.service.js'; /** * Allows registering and executing commands and their handlers by name. */ export declare class CommandService implements Disposable { #private; /** * Instantiates a new command manager. */ constructor(connection: Connection, loggingService: LoggingService); dispose(): void; /** * Registers a handler for a command. */ on(name: string | string[], handler: ServerRequestHandler): Disposable; /** * Registers the command manager as a request handler. */ register(): void; }