import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { HttpSpinnerService } from './http-spinner.service'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class InterceptorService implements HttpInterceptor { private httpStateService; private exceptions; constructor(httpStateService: HttpSpinnerService); /** * Intercepts all requests * - in case of an error (network errors included) it repeats a request 3 times * - all other error can be handled an error specific case * and redirects into specific error pages if necessary * * There is an exception list for specific URL patterns that we don't want the application to act * automatically * * The interceptor also reports back to the httpStateService when a certain requests started and ended */ intercept(request: HttpRequest, next: HttpHandler): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }