/** * Represents the parameters for making an HTTP request. * * This interface specifies options for configuring an HTTP request, * including query parameters, request body, custom headers, * and a function to validate response headers. */ export interface HttpParams { /** * The request body, which can be of any type. */ body?: unknown; /** * Raw request body to be sent as-is without JSON.stringify. * If provided, this takes precedence over `body`. */ rawBody?: string | Uint8Array; /** * Custom headers to be included in the request. */ headers?: Record; /** * Query parameters to include in the request. */ query?: Record; /** * A callback function to validate response headers. * @param headers - The response headers to validate. */ validateResponseHeader?: (headers: Record) => void; }