@dima_aryze/reforge
Version:
TypeScript/JavaScript SDK for Reforge - Cross-chain token operations
46 lines • 1.38 kB
TypeScript
/**
* Main Reforge HTTP client implementation
*/
import type { ApiResponse, ReforgeClientOptions, RequestOptions } from '../types';
import { BaseHttpClient } from './base';
/**
* Reforge-specific HTTP client with convenient HTTP method wrappers
*/
export declare class ReforgeClient extends BaseHttpClient {
constructor(options: ReforgeClientOptions);
/**
* Make GET request
*/
get<T = any>(path: string, params?: any, options?: RequestOptions): Promise<ApiResponse<T>>;
/**
* Make POST request
*/
post<T = any>(path: string, data?: any, options?: RequestOptions): Promise<ApiResponse<T>>;
/**
* Make PUT request
*/
put<T = any>(path: string, data?: any, options?: RequestOptions): Promise<ApiResponse<T>>;
/**
* Make PATCH request
*/
patch<T = any>(path: string, data?: any, options?: RequestOptions): Promise<ApiResponse<T>>;
/**
* Make DELETE request
*/
delete<T = any>(path: string, options?: RequestOptions): Promise<ApiResponse<T>>;
/**
* Get health status of the API
*/
health(): Promise<ApiResponse<{
status: string;
timestamp: string;
}>>;
/**
* Get API version information
*/
version(): Promise<ApiResponse<{
version: string;
build?: string;
}>>;
}
//# sourceMappingURL=reforge-client.d.ts.map