export declare function retryOnReject(f: () => T | Promise, maxRetries: number): Promise;