/// <reference types="node" />
import { MessageConnection } from 'vscode-jsonrpc';
import { EventEmitter } from 'events';
export declare class Common {
    static sendSimpleRequest(connection: MessageConnection, messageType: any, payload: any, timeout: number, timeoutMessage: string): Promise<any>;
    static sendRequestSync(connection: MessageConnection, messageType: any, payload: any, emitter: EventEmitter, eventId: string, listener: (params: any) => boolean, timeout: number, timeoutMessage: string): Promise<any>;
    static sendSimpleNotification(connection: MessageConnection, messageType: any, payload: any): void;
}
export declare namespace ErrorMessages {
    const ADDINSTALLABLE_TIMEOUT = "Failed to add installable server in time";
    const UPDATEINSTALLABLE_TIMEOUT = "Failed to update installable server in time";
    const DELETEINSTALLABLE_TIMEOUT = "Failed to delete installable server in time";
    const GETALLINSTALLABLESERVERS_TIMEOUT = "Failed to retrieve all installable servers in time";
    const ADDINSTALLEDSERVER_TIMEOUT = "Failed to add installed server in time";
    const INSTALLSERVER_TIMEOUT = "Failed to install server in time";
    const CANCELINSTALLION_TIMEOUT = "Failed to cancel server installation in time";
    const DELETEINSTALLION_TIMEOUT = "Failed to delete server installation in time";
    const UPDATEINSTALLATION_TIMEOUT = "Failed to update server installation in time";
    const GETALLINSTALLEDSERVERS_TIMEOUT = "Failed to retrieve all installed servers in time";
    const GETALLINSTALLINGSERVERS_TIMEOUT = "Failed to retrieve all installing servers in time";
    const STARTSERVER_TIMEOUT = "Failed to start server in time";
    const STOPSERVER_TIMEOUT = "Failed to stop server in time";
    const STARTANALYSIS_TIMEOUT = "Failed to start analysis in time";
    const CANCELANALYSIS_TIMEOUT = "Failed to cancel analysis in time";
    const GETALLANALYSES_TIMEOUT = "Failed to retrieve all analyses in time";
    const GETALLSERVERHANDLES_TIMEOUT = "Failed to retrieve all analyses in time";
}
