/** * Performs the given action again and again until it does not throw an error. * * @param {Function} action The action to perform. * @param {Object} options * @param {number} options.times How many times to try before giving up. * @param {number} [options.delay=5000] How long, in milliseconds, to wait between each try. */ export default function retry(action: Function, { times, delay }: { times: number; delay?: number | undefined; }): Promise;