import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; export declare class LoadingService { status: BehaviorSubject; private loadingIds; constructor(); begin(id: string): void; finish(id?: string): void; isLoading(id: string): Observable; } export declare class LoadingInterceptor implements HttpInterceptor { protected loading: LoadingService; constructor(loading: LoadingService); intercept(req: HttpRequest, next: HttpHandler): Observable>; }