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