import { BackoffController } from "../repeater/repeater"; import { AsyncProducer, Fn } from "../type"; import { Platform } from '../../platform_support'; export type RunResult = { result: Promise; cancelRetry: Fn; }; export declare const runWithRetry: (task: AsyncProducer, backoff?: BackoffController, maxRetries?: number) => RunResult; export declare const __platforms: Platform[];