import { ExecuteCommandParams, ServerCapabilities } from "../languageclient"; import { LanguageClientConnection } from "../main"; export declare type CommandCustomCallbackFunction = (command: ExecuteCommandParams) => Promise; export default class CommandExecutionAdapter { private static commandsCustomCallbacks; static canAdapt(serverCapabilities: ServerCapabilities): boolean; static registerCustomCallbackForCommand(command: string, callback: CommandCustomCallbackFunction): void; /** Returns a {Promise} */ static executeCommand(connection: LanguageClientConnection, command: string, commandArgs?: any[]): Promise; private static createExecuteCommandParams; }