declare const EventEmitter: any;
export interface NodeConfig {
    type: string;
    scheme: string;
    port: number;
    path: string;
}
/**
 * Auto detect the settings for a hostname
 *
 * @param {string} host - Hostname
 *
 * @returns {object}
 */
export declare class DetectionService extends EventEmitter {
    private production;
    cancelToken: any;
    cancel: any;
    constructor(production?: boolean);
    detect(host: any): {
        [nodeName: string]: NodeConfig;
    };
    /**
     * Check the socket connection for a given config
     *
     * @param {object} Config object
     *
     * @returns {Promise}
     */
    checkSocket(config: any): Promise<any>;
    /**
     * Check the REST connection for a given config
     *
     * @param {object} Config object
     *
     * @returns {Promise}
     */
    checkRest(config: any): Promise<any>;
    timeout(promise: any, ms: any): Promise<any>;
}
export {};
