/** * Calls given function and if error thrown, it recursively retries function up to maxTry times, then just rethrows the error * @param fn the function to call * @param args arguments to pass to the function when it is called * @param options.maxTry the maximum number of times to try again, defaults to 3 * @param options.retryCount the current retry count, defaults to 1 * @param options.logEachFailure whether to console.log each failure, defaults to true * @param options.ifErrorContains if provided, retries only if error message includes this string, otherwise rethrows immediatly. * @returns the result of calling the function */ export declare function callWithRetry any>(fn: T, args: Parameters, options?: { maxTry?: number; retryCount?: number; logEachFailure?: boolean; ifErrorMsgContains?: string; }): Promise>>;