import { HttpResponseBase, HttpResponseBaseInit } from './http-response-base'; /** * A type that represents the possible results of an HTTP response, which can be an instance of HttpResponse, a raw data * object, or a Blob. */ export type HttpResponseResult = HttpResponse | T | Blob; /** * A type that represents the possible data returned by an HTTP response, which can be a string, an object of type T, * or null. */ export type HttpResponseData = string | T | null; /** * Initialization parameters for HttpResponse. */ export interface HttpResponseInit extends HttpResponseBaseInit { /** The response body/data returned by the server. */ data: string | T | null; } /** * Represents a successful HTTP response. * * This model is inspired by Axios and AngularJS $http response structure. * * @template T The type of the response data. */ export declare class HttpResponse extends HttpResponseBase { /** * The response body/data returned by the server. */ data: string | T | null; constructor(init: HttpResponseInit); }