/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * @file Retry-with-backoff helper for the Who's On First data sources. * * This lives apart from `DataSourceCache` because both that module and `PlacetypeDataSource` need * it, and each already imports the other — putting it in either one closes an import cycle. */ /** * Given a callback, attempt to run it up to `attempts` times. * * @param attempts Maximum number of tries before the last error is rethrown. * @param callback The operation to attempt. * * @returns The callback's result from the first successful attempt. */ export declare function tryWithBackoff(attempts: number, callback: () => T): Promise; //# sourceMappingURL=backoff.d.ts.map