import { HttpService as AxiosHttpService } from '@nestjs/axios'; import { HttpServicePort } from '../../domain/ports'; /** * Generic HTTP service implementation that abstracts the underlying HTTP client. * Provides common HTTP methods (GET, POST) in an implementation-agnostic way. * * This service delegates all HTTP operations to an injected HttpClient implementation, * allowing easy swapping of HTTP libraries without affecting consumers. */ export declare class AxiosHttpAdapter implements HttpServicePort { private readonly axiosService; constructor(axiosService: AxiosHttpService); /** * Performs a GET request to retrieve data from the specified URL. * * @param url The URL to send the GET request to * @returns A promise resolving to the response data */ get(url: string, headers?: Record): Promise; /** * Performs a POST request to send data to the specified URL. * * @param url The URL to send the POST request to * @param data The data payload to include in the request body * @returns A promise resolving to the response data */ post(url: string, data: any, headers?: Record): Promise; /** * Performs a PATCH request to update data at the specified URL. * * @param url The URL to send the PATCH request to * @param data The partial data payload to include in the request body * @param headers Optional headers to include in the request * @returns A promise resolving to the response data */ patch(url: string, data: any, headers?: Record): Promise; /** * Performs a PUT request to update or replace data at the specified URL. * * @param url The URL to send the PUT request to * @param data The full data payload to include in the request body * @param headers Optional headers to include in the request * @returns A promise resolving to the response data */ put(url: string, data: any, headers?: Record): Promise; /** * Performs a DELETE request to remove data at the specified URL. * * @param url The URL to send the DELETE request to * @param headers Optional headers to include in the request * @returns A promise resolving to the response data */ delete(url: string, headers?: Record): Promise; } //# sourceMappingURL=axios.adapter.d.ts.map