import { Http, RequestOptions } from '@angular/http'; export declare type requestOpt = { endpoint: string; body?: any; params?: { [key: string]: string; }; }; export declare class JdfRequestService { http?: Http; baseUrl: string; options: RequestOptions; constructor(http?: Http); setBaseUrl(url: string): void; get(options: requestOpt): Promise; post(options: requestOpt): Promise; sayHello(): void; }