import { HttpClient } from '@angular/common/http'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import { Observable } from 'rxjs/Rx'; import { DnResultDataBase } from '../model/http-result-data-base'; import { IDnHttpExtraConfig } from './http-result-extra.config'; import { DnNotificationService } from './notification.service'; import { DnStorageService } from './storage.service'; import { DnTokenService } from './token.service'; export declare class DnHttpService { private http; private _tokenService; private _storage; private _nf; private token; private readonly cachableHttpUrlsKey; private defaultConfig; constructor(http: HttpClient, _tokenService: DnTokenService, _storage: DnStorageService, _nf: DnNotificationService); addCachableUrl(url: string): this; delete(url: string, id: any, extra?: IDnHttpExtraConfig): Observable | Response | {}>; get(url: string, extra?: IDnHttpExtraConfig): Observable>; getCachableArray(): string[]; post(body: object, url: string, extra?: IDnHttpExtraConfig): Observable>; put(body: object, url?: string, extra?: IDnHttpExtraConfig): Observable>; refreshCache(url?: string): this; reset(): void; private addCachableArray(value); private getConfig(extra?, id?); private getHeaderOptions(extra); private getToken(); private getUrl(url, extra?); private hideLoading(extra); private isCachable(url); private showErrorMessage(err); private showLoading(extra); }