UNPKG

@0xtld/tair-node

Version:

A Node.js package for Tair functionality with configuration, core, and helper modules.

17 lines 640 B
import { AxiosInstance, AxiosRequestConfig, AxiosRequestHeaders } from 'axios'; interface RetryConfigs { maxAttempts: number; delay: number; } declare class AsyncHelper { static retryOperation<T>(operation: () => Promise<T>, configs?: RetryConfigs): Promise<T>; } declare class AxiosHelper { static headers(configs?: string | AxiosRequestHeaders): AxiosRequestHeaders; static createInstance(axiosConfigs: AxiosRequestConfig, configs?: { isCustomInterceptors?: boolean; origin?: string | null; }): AxiosInstance; } export { AsyncHelper, AxiosHelper, RetryConfigs }; //# sourceMappingURL=index.d.ts.map