/** * Http client, used to get and send http requests. */ export interface HttpClient { post(url: string, body?: Object, options?: { headers?: { [header: string]: string; }; withCredentials?: boolean; }): Promise; get(url: string, options?: { headers?: { [header: string]: string; }; params?: { [param: string]: string | number | boolean | ReadonlyArray; }; withCredentials?: boolean; }): Promise; }