/* Copyright IBM Corp. 2018 */ import { Observable } from 'rxjs'; import { HttpResourceOptions } from './../../../api'; import { WchService } from './../wch.service'; export declare class WchHttpService { /** * Fetches a JSON resource and keeps this live based on the given or the default options * * @param aUrl the URL to fetch, this can be a relative URL in which case it applies to the correct base API URL * @return an observable with the content */ getJsonResource: (aUrl: string, aOptions?: HttpResourceOptions) => Observable; /** * Fetches a string resource and keeps this live based on the given or the default options * * @param aUrl the URL to fetch, this can be a relative URL in which case it applies to the correct base API URL * @return an observable with the content */ getTextResource: (aUrl: string, aOptions?: HttpResourceOptions) => Observable; constructor(aWchService: WchService); }