import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AuthService } from '../services/auth.service'; import { StorageService } from '../services/storage.service'; import * as i0 from "@angular/core"; export declare class TokenInterceptor implements HttpInterceptor { private authService; private storageService; cookieName: string; constructor(authService: AuthService, storageService: StorageService); /** *It intercepts every http request and injects authorization token as bearer token of Http request header. * @param {HttpRequest} request * @param {HttpHandler} next * @return {Observable>} * @memberof TokenInterceptor */ intercept(request: HttpRequest, next: HttpHandler): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }