UNPKG

mysterium-vpn-js

Version:
28 lines (27 loc) 787 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 { ServiceStatus } from './service-status'; export interface ServiceOptions { port?: number; protocol?: string; [key: string]: any; } export interface ServiceInfo { id?: string; providerId?: string; type: string; options?: ServiceOptions; status: ServiceStatus; proposal: Proposal; connectionStatistics?: { attempted: number; successful: number; }; } export declare function parseServiceInfo(data: any): ServiceInfo; export declare function parseServiceListResponse(responseData: any): ServiceInfo[];