import { DynamicModule } from '@nestjs/common'; import type { HttpModuleConfigOptions } from './domain/interfaces'; /** * Axios-based HTTP configuration module. * * Registers an Axios client and exposes a high-level HTTP service via the `CLIENT_HTTP` token. * This allows performing requests using a unified interface (`HttpServicePort`). * * Usage: * ```ts * @Injectable() * export class ExampleService { * constructor( * @Inject(CLIENT_HTTP) private readonly httpService: HttpServicePort * ) {} * } * ``` * * @param options.timeout Optional. Request timeout in milliseconds. Defaults to 30_000. * @param options.baseURL Optional. Base URL for all HTTP requests. * @param options.headers Optional. Default headers to include in every request. * @param options.maxRedirects Optional. Defaults to 5. * @param options.isGlobal Optional. Whether to register the module globally. Defaults to false. * @returns A dynamic module that provides `CLIENT_HTTP` (as `HttpServicePort`). */ export declare class HttpConfigModule { static config(options: HttpModuleConfigOptions): DynamicModule; } //# sourceMappingURL=http.module.d.ts.map