import * as Models from './models'; import * as Ro from './ro-interfaces'; import { Observable } from 'rxjs'; import { ConfigService } from './config.service'; import { Dictionary } from 'lodash'; import { HttpClient } from '@angular/common/http'; export declare class RepLoaderService { private readonly http; private readonly configService; constructor(http: HttpClient, configService: ConfigService); private loadingCount; private loadingCountSource; loadingCount$: Observable; private cache; private handleInvalidResponse(rc); private isObjectUrl(url); private handleError(response, originalUrl); private httpValidate(options); private handleRedirectedObject(response, data); private isValidResponse(data); private httpPopulate(options, ignoreCache, response); populate: (model: Models.IHateoasModel, ignoreCache?: boolean) => Promise; retrieve: (map: Models.IHateoasModel, rc: new () => Models.IHateoasModel, digest?: string) => Promise; validate: (map: Models.IHateoasModel, digest?: string) => Promise; retrieveFromLink: (link: Models.Link, parms?: Dictionary) => Promise; invoke: (action: Models.ActionRepresentation | Models.InvokableActionMember, parms: Dictionary, urlParms: Dictionary) => Promise; clearCache: (url: string) => void; addToCache: (url: string, m: Ro.IResourceRepresentation) => void; getFile: (url: string, mt: string, ignoreCache: boolean) => Promise; uploadFile: (url: string, mt: string, file: Blob) => Promise; private logoff(); }