/** * HTTP client for making authenticated requests to the Renegade relayer API. * This client handles request signing and authentication using HMAC-SHA256. */ export declare const RENEGADE_HEADER_PREFIX = "x-renegade"; export declare const RENEGADE_AUTH_HEADER = "x-renegade-auth"; export declare const RENEGADE_AUTH_EXPIRATION_HEADER = "x-renegade-auth-expiration"; /** * Stringify object that may contain BigInt values */ export declare const stringifyBody: (data: any) => string; export interface HttpResponse { data: T; status: number; statusText: string; headers: Record; } /** * HTTP client for making authenticated requests to the Renegade relayer API. */ export declare class RelayerHttpClient { private baseUrl; private authKey?; private defaultHeaders; /** * Initialize a new RelayerHttpClient. * * @param baseUrl The base URL of the relayer API * @param authKey The base64-encoded authentication key for request signing */ constructor(baseUrl: string, authKey?: string); /** * Make a GET request with custom headers. * * @param path The API endpoint path * @param headers Additional headers to include * @returns The API response */ get(path: string, headers?: Record): Promise>; /** * Make a POST request with custom headers. * * @param path The API endpoint path * @param data The request body to send * @param headers Additional headers to include * @returns The API response */ post(path: string, data: D, headers?: Record): Promise>; /** * Make an HTTP request with authentication. * * @param method The HTTP method * @param path The API endpoint path * @param data The request body data * @param customHeaders Additional headers to include * @returns The API response */ private request; /** * Add authentication headers to a request. */ private addAuthHeaders; /** * Compute the HMAC-SHA256 MAC for a request. * * @param path The API endpoint path with query parameters * @param headers The request headers * @param data The request body data * @returns The computed MAC digest */ private computeRequestMac; /** * Decode a base64 string to a Uint8Array. */ private decodeBase64; /** * Encode a Uint8Array or Buffer to a base64 string. */ private encodeBase64; } //# sourceMappingURL=http.d.ts.map