1 | import { DelayFunction } from '../types';
|
2 | export declare class NonRetryableError extends Error {
|
3 | readonly nonRetryable = true;
|
4 | constructor(message: string);
|
5 | }
|
6 | /**
|
7 | * @private
|
8 | * Internal use of Amplify only
|
9 | */
|
10 | export declare function retry(functionToRetry: Function, args: any[], delayFn: DelayFunction, attempt?: number): any;
|
11 | /**
|
12 | * @private
|
13 | * Internal use of Amplify only
|
14 | */
|
15 | export declare const jitteredExponentialRetry: (functionToRetry: Function, args: any[], maxDelayMs?: number) => any;
|