import { HTTPError, TimeoutError } from './error'; export declare type TimeoutErrorType = typeof TimeoutError; export declare type HTTPErrorType = typeof HTTPError; export declare type Condition = (error: HTTPErrorType | TimeoutErrorType | Error) => boolean; export declare type Retry = (fn: Function, count: number, condition: Condition) => Promise; export declare type RetryFn = ((...args: any[]) => Promise) | Function; export declare const retry: Retry;