import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { HttpSpinnerService } from './http-spinner.service';
import { Observable } from 'rxjs';
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<any>, next: HttpHandler): Observable<HttpEvent<any>>;
}
