import { HttpClient, HttpResponse } from '@angular/common/http'; import { ActivatedRoute, Router } from '@angular/router'; import { Body } from '@ha8rt/modal'; import { Observable } from 'rxjs'; import { ICallback, IObject, IObservable } from './observables'; import { IQuery } from './query'; export interface IApi { secure: boolean; route: string; } export declare class HttpService { private http; private router?; private route?; private api; constructor(http: HttpClient, api?: string, router?: Router | undefined, route?: ActivatedRoute | undefined); setApi(api: IApi): HttpService; getParams(): import("@angular/router").Params | undefined; setParams(params: IObject | undefined): void; get(params: IObject | IQuery, callback?: ICallback, options?: { setParams: boolean; }): IObservable; post(body: IObject | Body, callback?: ICallback): IObservable; patch(id: any, body: IObject | Body, callback?: ICallback): IObservable; put(body: IObject | Body, callback?: ICallback): IObservable; delete(id: any, callback?: ICallback): IObservable; download(params: IObject, callback: (progress: number) => void): Observable; upload(files: File[], callback: (listener: Observable>) => void): IObservable; forkJoin(sources: Observable[], callback: (results: HttpResponse[]) => void): void; private subscribe; }