import { ClassProvider, Injector } from '@angular/core'; import { HttpInterceptor, HttpEvent, HttpHandler, HttpRequest, HttpHandlerFn } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * Auth interceptor used for intercepting http responses and handling 401, 403 statuses * @param req - Request to be intercepted * @param next - Next function for passing request to next interceptor */ export declare function authInterceptor(req: HttpRequest, next: HttpHandlerFn): Observable>; /** * AuthInterceptor used for intercepting http responses and handling 401, 403 statuses * @deprecated - Use new `authInterceptor` function instead */ export declare class AuthInterceptor implements HttpInterceptor { private _injector; constructor(_injector: Injector); /** * Intercepts http request * @param req - Request to be intercepted * @param next - Next middleware that can be called for next processing */ intercept(req: HttpRequest, next: HttpHandler): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Provider for proper use of AuthInterceptor, use this provider to inject this interceptor * @deprecated - Use new `authInterceptor` function instead */ export declare const AUTH_INTERCEPTOR_PROVIDER: ClassProvider; //# sourceMappingURL=authInterceptor.d.ts.map