mysterium-tequilapi
Version:
Api library to control mysterium client and node
22 lines (20 loc) • 802 B
Flow
// @flow
/**
* Flowtype definitions for axios-adapter
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.5.8
* Author: [Joar Wilk](http://twitter.com/joarwilk)
* Repo: http://github.com/joarwilk/flowgen
*/
import { Axios } from "axios";
import { HttpInterface, HttpQueryParams } from "./interface";
declare export default class AxiosAdapter implements HttpInterface {
_axios: Axios;
_timeout: number;
constructor(axiosInstance: Axios, defaultTimeout?: number): this;
get(path: string, query?: HttpQueryParams, 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;
}