UNPKG

mysterium-vpn-js

Version:
27 lines (26 loc) 798 B
/** * Copyright (c) 2020 BlockDev AG * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Proposal } from '../proposal/proposal'; import { ConnectionStatistics } from './statistics'; export declare enum ConnectionStatus { CONNECTED = "Connected", NOT_CONNECTED = "NotConnected", DISCONNECTING = "Disconnecting", CONNECTING = "Connecting", ON_HOLD = "OnHold" } export interface ConnectionInfo { status: ConnectionStatus; consumerId?: string; hermesId?: string; proposal?: Proposal; sessionId?: string; } export declare type Connection = ConnectionInfo & { statistics: ConnectionStatistics; }; export declare function parseConnectionInfo(data: any): ConnectionInfo;