/** * Retry Logic Utilities * * Provides exponential backoff retry functionality for storage operations */ import { RETRY_STRATEGY } from '@plyaz/types/storage'; import type { StorageRetryOptions } from '@plyaz/types/storage'; /** * Retry an async operation with exponential backoff * * @param operation - The async operation to retry * @param options - Retry configuration * @returns Promise resolving to operation result * @throws StoragePackageError if all retry attempts fail */ export declare function retry(operation: () => Promise, options: StorageRetryOptions): Promise; /** * Options for calculating retry delay */ interface RetryDelayOptions { strategy: RETRY_STRATEGY; attempt: number; initialDelay: number; maxDelay?: number; backoffMultiplier?: number; } /** * Calculate delay for retry attempt based on strategy * * @param options - Retry delay calculation options * @returns Delay in milliseconds */ export declare function calculateRetryDelay(options: RetryDelayOptions): number; export {};