import type { ModuleMetadata, Provider, Type } from '@nestjs/common'; import type { AxiosRequestConfig } from 'axios'; import type IAxiosRetry from 'axios-retry'; export type HttpModuleOptions = AxiosRequestConfig & IAxiosRetry.IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean }; export interface HttpModuleOptionsFactory { createHttpOptions(): Promise | HttpModuleOptions; } export interface HttpModuleAsyncOptions extends Pick { useExisting?: Type; useClass?: Type; // eslint-disable-next-line @typescript-eslint/no-explicit-any useFactory?: (...args: any[]) => Promise | HttpModuleOptions; // eslint-disable-next-line @typescript-eslint/no-explicit-any inject?: any[]; extraProviders?: Provider[]; }