import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AuthTokenService } from '../../../auth-token/public-api'; export declare class ApiAuthorizationHeaderInterceptor implements HttpInterceptor { apiHttpAuthorizationHeaderName: string; apiHttpAuthorizationHeaderTokenTypePrefix: string; private authTokenService; constructor(apiHttpAuthorizationHeaderName: string, apiHttpAuthorizationHeaderTokenTypePrefix: string, authTokenService: AuthTokenService); intercept(req: HttpRequest, next: HttpHandler): Observable>; /** * @experimental the headersWithNoAuthorization support is experimental * it might be considered in future this capability to be extracted * in an abstract class `ApiNoAuthorizationHeaderInterceptor` * then we can have `ApiAuthorizationHeaderInterceptor` implement the interface * and provide it using forwardRef or similar. * Yet this seems too complex for this stage. */ headersWithNoAuthorization(headers?: HttpHeaders | string | { [name: string]: string | string[]; }): HttpHeaders; private reqWithAuthorizationHeader; }