UNPKG

@smoothsend/sdk

Version:

Multi-chain gasless transaction SDK for seamless dApp integration

13 lines 737 B
import { AxiosRequestConfig } from 'axios'; import { ApiResponse } from '../types'; export declare class HttpClient { private client; constructor(baseURL: string, timeout?: number); get<T = any>(url: string, config?: AxiosRequestConfig): Promise<ApiResponse<T>>; post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<ApiResponse<T>>; put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<ApiResponse<T>>; delete<T = any>(url: string, config?: AxiosRequestConfig): Promise<ApiResponse<T>>; private handleError; retry<T>(operation: () => Promise<ApiResponse<T>>, maxRetries?: number, delay?: number): Promise<ApiResponse<T>>; } //# sourceMappingURL=http.d.ts.map