export type GetRetryBackoffFunction = (route: string, statusCode: number | null, retryCount: number, requestBody: unknown) => number | null;
A function that determines the backoff for a retry for a given request.
Returns: The delay for the current request or null
to throw an error instead of retrying