UNPKG

lending-apy-fetcher-ts

Version:

TypeScript library for fetching APYs from DeFi lending protocols

17 lines 587 B
import { ApiConfig } from '../config'; export declare class HttpClient { private config; constructor(config: ApiConfig); get<T>(url: string, headers?: Record<string, string>): Promise<T>; post<T>(url: string, data?: any, headers?: Record<string, string>): Promise<T>; private executeWithRetry; private delay; } export declare class TheGraphClient { private endpoint; private config; private httpClient; constructor(endpoint: string, config: ApiConfig); query<T>(query: string, variables?: any): Promise<T>; } //# sourceMappingURL=http.d.ts.map