/** * Upload Retry Helpers */ import type { RetryConfig, UploadWithProgressResult, MergedUploadConfig, RetryContext, RetryErrorParams } from '@plyaz/types/api'; /** * Check if an error is retryable based on error type or HTTP status * Uses patterns consistent with BaseError.isRetryable() and notifications retry logic */ export declare function isRetryableError(error: Error, status?: number): boolean; /** * Calculate delay for retry attempt with exponential backoff */ export declare function calculateRetryDelay(attempt: number, config: RetryConfig): number; /** * Handle retry error notification */ export declare function notifyRetryError(params: RetryErrorParams): void; /** * Handle final error notification */ export declare function notifyFinalError(ctx: RetryContext, error: Error): void; /** * Check if we should retry a failed result */ export declare function shouldRetryResult(result: UploadWithProgressResult, config: MergedUploadConfig, attempt: number, maxAttempts: number): boolean; /** * Check if we should retry an error */ export declare function shouldRetryError(error: Error, config: MergedUploadConfig, attempt: number, maxAttempts: number): boolean; /** * Handle retry delay */ export declare function handleRetryDelay(attempt: number, config: RetryConfig): Promise; //# sourceMappingURL=retry.d.ts.map