import { MetricsService } from "@terradharitri/sdk-nestjs-monitoring"; import { ApiSettings } from "./entities/api.settings"; import { ApiModuleOptions } from "./entities/api.module.options"; export declare class ApiService { private readonly options; private readonly metricsService; private readonly defaultTimeout; private keepaliveAgent; private readonly axiosInstance; private static concurrentRequests; constructor(options: ApiModuleOptions, metricsService: MetricsService); private getKeepAliveAgent; private getConfig; private requestsExecuter; private incrementConcurrentRequests; private decrementConcurrentRequests; get(url: string, settings?: ApiSettings, errorHandler?: (error: any) => Promise): Promise; put(url: string, data: any, settings?: ApiSettings, errorHandler?: (error: any) => Promise): Promise; patch(url: string, data: any, settings?: ApiSettings, errorHandler?: (error: any) => Promise): Promise; post(url: string, data: any, settings?: ApiSettings, errorHandler?: (error: any) => Promise): Promise; delete(url: string, data: any, settings?: ApiSettings, errorHandler?: (error: any) => Promise): Promise; head(url: string, settings?: ApiSettings, errorHandler?: (error: any) => Promise): Promise; private getHostname; private getCustomError; }