/** * 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; getFile(path: string, query?: HttpQuery, timeout?: number): Promise; post(path: string, data: any, timeout?: number): Promise; delete(path: string, timeout?: number): Promise; put(path: string, data: any, timeout?: number): Promise; _decorateOptions(timeout?: number): any; }