/** * 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. */ export interface HttpQuery { [s: string]: any; } export interface HttpInterface { 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; }