import type { CustomResponse, HttpClientConfig, HttpResponse } from "./Types"; /** * Custom HTTP GET function using Node.js https module * @private * @async * @function HttpGet * @param {string} endpoint - API endpoint to call * @param {string} url - URL to process * @param {string} version - Client version for headers * @param {number} timeout - Timeout in milliseconds * @param {string} baseUrl - Base URL for the API * @returns {Promise} URL response data * @throws {Error} When request fails * @example * const data = await HttpGet('instagram', 'https://instagram.com/p/123', '1.0.0', 60000, baseUrl); */ declare function HttpGet(endpoint: string, url: string, version: string, timeout: number, baseUrl: string): Promise; declare class HttpError extends Error { status: number; response?: HttpResponse | undefined; constructor(status: number, message: string, response?: HttpResponse | undefined); } /** * Professional HTTP Client class with GET and POST methods */ declare class HttpClient { private config; constructor(config: HttpClientConfig); /** * Performs an HTTP GET request * @async * @param endpoint - API endpoint to call * @param queryParams - Optional query parameters * @param customHeaders - Optional custom headers * @returns Promise containing the response data * @throws HttpError when request fails */ get(endpoint: string, queryParams?: Record, customHeaders?: Record): Promise>; /** * Performs an HTTP POST request * @async * @param endpoint - API endpoint to call * @param data - Data to send in the request body * @param customHeaders - Optional custom headers * @returns Promise containing the response data * @throws HttpError when request fails */ post(endpoint: string, data: D, customHeaders?: Record): Promise>; /** * Handles errors and creates proper HttpError instances * @private */ private handleError; } export { HttpGet }; export type { CustomResponse, HttpClientConfig, HttpResponse, HttpError }; export { HttpClient }; //# sourceMappingURL=HttpClient.d.ts.map