UNPKG

730 BTypeScriptView Raw
1import { Injector } from '@angular/core';
2import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
3import { Observable } from 'rxjs';
4import { NbAuthService } from '../auth.service';
5import * as i0 from "@angular/core";
6export declare class NbAuthSimpleInterceptor implements HttpInterceptor {
7 private injector;
8 protected headerName: string;
9 constructor(injector: Injector, headerName?: string);
10 intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
11 protected get authService(): NbAuthService;
12 static ɵfac: i0.ɵɵFactoryDeclaration<NbAuthSimpleInterceptor, never>;
13 static ɵprov: i0.ɵɵInjectableDeclaration<NbAuthSimpleInterceptor>;
14}