UNPKG

731 BTypeScriptView Raw
1import { RetryQuota } from "./types";
2export interface DefaultRetryQuotaOptions {
3 /**
4 * The total amount of retry token to be incremented from retry token balance
5 * if an SDK operation invocation succeeds without requiring a retry request.
6 */
7 noRetryIncrement?: number;
8 /**
9 * The total amount of retry tokens to be decremented from retry token balance.
10 */
11 retryCost?: number;
12 /**
13 * The total amount of retry tokens to be decremented from retry token balance
14 * when a throttling error is encountered.
15 */
16 timeoutRetryCost?: number;
17}
18export declare const getDefaultRetryQuota: (initialRetryTokens: number, options?: DefaultRetryQuotaOptions | undefined) => RetryQuota;