export declare const DEFAULT_RETRY_DELAY_MS = 120000;
export declare function isTimeoutError(err: unknown): boolean;
export interface TimeoutRetryOutcome<T> {
    result: T;
    retried?: {
        timeoutMs: number;
        delayMs: number;
    };
}
export interface WithTimeoutRetryOptions {
    retryDelayMs?: number;
    onRetry?: (timeoutMs: number, delayMs: number) => void;
    sleep?: (ms: number) => Promise<void>;
}
export declare function withTimeoutRetry<T>(resolvedTimeout: number | undefined, run: (timeoutMs: number | undefined) => Promise<T>, opts?: WithTimeoutRetryOptions): Promise<TimeoutRetryOutcome<T>>;
//# sourceMappingURL=with-timeout-retry.d.ts.map