import * as i0 from '@angular/core'; import { InjectionToken, Provider } from '@angular/core'; import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http'; import { Observable } from 'rxjs'; type GetAuthorization = () => Promise | Observable; declare const AUTHORIZATION: InjectionToken; declare class AuthorizationInterceptor implements HttpInterceptor { private getAuth; intercept(req: HttpRequest, next: HttpHandler): Observable>; private getRequestWithToken; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare function authorizationInterceptor(isAuthorizedRequest?: (req: HttpRequest) => boolean): HttpInterceptorFn; declare function provideAuthorization(useFactory: () => GetAuthorization): Provider; export { AUTHORIZATION, AuthorizationInterceptor, authorizationInterceptor, provideAuthorization }; export type { GetAuthorization };