import { type AxiosResponse } from 'axios'; import { ApiResponse } from './ApiResponse.js'; /** * @class ApiResponseFactory - Factory class for creating ApiResponse objects */ export declare class ApiResponseFactory { /** * @method getApiResponse - Creates an ApiResponse object from an AxiosResponse object * @param {AxiosResponse} response - The AxiosResponse object that will be used to create the ApiResponse object * @returns {Promise>} - A promise that resolves to an ApiResponse object */ static getApiResponse(response: AxiosResponse): Promise>; /** * @method TryToGetMessage - Attempts to get the message from the response data * @param {AxiosResponse} response - The AxiosResponse object that will be used to get the message * @returns {Promise} - A promise that resolves to the message */ private static TryToGetMessage; /** * @method getStreamDataAsString - Gets the data from a stream as a string * @param {Readable} stream - The stream that will be used to get the data * @returns {Promise} - A promise that resolves to the data from the stream as a string */ private static getStreamDataAsString; /** * @method isSuccessStatusCode - Determines if the specified status code is a success status code * @param {number} statusCode - The status code that will be used to determine if it is a success status code * @returns {boolean} - A boolean indicating if the specified status code is a success status code */ private static isSuccessStatusCode; }