import { InjectionToken, Type } from '@angular/core'; import { HttpInterceptor } from '@angular/common/http'; import { ForkableHttpClient } from './forkable-http-client'; /** Token that can be used for injecting values that conform to the `HttpInterceptor` interface. */ export declare type HttpInterceptorInjectionToken = Type | InjectionToken; /** Factory function that creates a new `ForkableHttpClient` instance. */ export declare type ForkableHttpClientFactory = (() => ForkableHttpClient) & { /** * Adds extra interceptors to the HTTP client that will be created when the factory function is called. * * @param interceptors HTTP interceptors that should be added. * @returns Factory function itself. */ with(...interceptors: HttpInterceptorInjectionToken[]): ForkableHttpClientFactory; }; /** * Creates a factory function that can be used for the factory of a self-providing `InjectionToken` for `ForkableHttpClient`. * * @param parent Optional parent `ForkableHttpClient` which should be forked to create the new `ForkableHttpClient` instance. If no * argument is provided for this parameter, then the default 'root' ForkableHttpClient will be used. * @returns A factory function that creates and returns a new `ForkableHttpClient` instance. The factory function also has a `with` * function that can be called to add extra interceptors to the new HTTP client. */ export declare function httpClient(parent?: InjectionToken): ForkableHttpClientFactory; //# sourceMappingURL=forkable-http-client-factory-builder.d.ts.map