UNPKG

@bronlabs/intents-sdk

Version:
6 lines (5 loc) 369 B
import * as winston from 'winston'; export declare const log: winston.Logger; export declare const sleep: (ms: number) => Promise<void>; export declare function expRetry<T>(fn: () => Promise<T>, maxRetries?: number, retryIf?: (e: Error) => boolean): Promise<T>; export declare function memoize<T>(key: string, durationMs: number, cb: () => Promise<T> | T): Promise<T>;