import { IAuthenticationService } from "../../services/IAuthenticationService"; import { IHttpClient, IHttpClientResponse } from "./IHttpClient"; /** * Represents an HTTP client that handles authentication and delegates requests to a base HTTP client. */ export declare class AuthHttpClient implements IHttpClient { protected authService: IAuthenticationService; protected baseClient: IHttpClient; /** * The resource URI for the API endpoint. */ resourceUri: string; /** * Initializes a new instance of the AuthHttpClient class. * @param authService The authentication service used to obtain access tokens. * @param baseClient The base HTTP client used to send requests. */ constructor(authService: IAuthenticationService, baseClient: IHttpClient); /** * Sends an HTTP GET request. * @param url The URL to send the request to. * @param options The options for the request. * @returns A promise that resolves to the HTTP response. */ get(url: string, options?: RequestInit): Promise; /** * Sends an HTTP POST request. * @param url The URL to send the request to. * @param options The options for the request. * @returns A promise that resolves to the HTTP response. */ post(url: string, options?: RequestInit): Promise; /** * Sends an HTTP PATCH request. * @param url The URL to send the request to. * @param options The options for the request. * @returns A promise that resolves to the HTTP response. */ patch(url: string, options?: RequestInit): Promise; /** * Sends an HTTP PUT request. * @param url The URL to send the request to. * @param options The options for the request. * @returns A promise that resolves to the HTTP response. */ put(url: string, options?: RequestInit): Promise; /** * Sends an HTTP DELETE request. * @param url The URL to send the request to. * @param options The options for the request. * @returns A promise that resolves to the HTTP response. */ delete(url: string, options?: RequestInit): Promise; /** * Prepares the request by adding the authorization header. * @param options The options for the request. * @returns The modified options with the authorization header added. */ private prepareRequest; /** * Gets the authorization header with the access token. * @returns The authorization header value. */ protected getAuthHeader(): Promise; }