import type { SafeAny } from '@ngify/core'; import type { Observable } from 'rxjs'; import type { HttpBackend, HttpHandler } from './backend'; import type { HttpRequest } from './request'; import type { HttpEvent } from './response'; export interface HttpInterceptor { intercept(request: HttpRequest, next: HttpHandler): Observable>; } export declare class HttpInterceptorHandler implements HttpHandler { private backend; private interceptorFns; private chain; constructor(backend: HttpBackend, interceptorFns?: HttpInterceptorFn[]); handle(request: HttpRequest): Observable>; } export type HttpInterceptorFn = (req: HttpRequest, next: HttpHandlerFn) => Observable>; export type HttpHandlerFn = (req: HttpRequest) => Observable>; /** * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy * class-based interceptors and runs the request through it. */ export declare function legacyInterceptorFnFactory(interceptors: HttpInterceptor[]): HttpInterceptorFn;