UNPKG

mysterium-vpn-js

Version:
22 lines (21 loc) 914 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 { AxiosInstance } from 'axios'; import { HttpInterface, HttpQuery } from './interface'; export declare class AxiosAdapter implements HttpInterface { _axios: AxiosInstance; _timeout: number; constructor(axiosInstance: AxiosInstance, defaultTimeout?: number); setHeaders(headers: any): void; setAuthHeader(token: string): void; get(path: string, query?: HttpQuery, timeout?: number): Promise<any>; getFile(path: string, query?: HttpQuery, timeout?: number): Promise<any>; post(path: string, data: any, timeout?: number): Promise<any>; delete(path: string, timeout?: number): Promise<any>; put(path: string, data: any, timeout?: number): Promise<any>; _decorateOptions(timeout?: number): any; }