UNPKG

@openim/client-sdk

Version:

JavaScript/TypeScript Client SDK for OpenIM

17 lines (16 loc) 435 B
import { AppPlatform } from '../types/enum'; type AdaptMethod = 'POST' | 'GET'; interface AdaptReq { url: string; data: unknown; platform: AppPlatform; headers: Record<string, string>; method?: AdaptMethod; } type RetryOptions = { retries?: number; baseDelayMs?: number; maxDelayMs?: number; }; export declare const adaptRequest: (req: AdaptReq, retryOptions?: RetryOptions) => Promise<any>; export {};