export declare enum ErrorKind { None = "none", ServiceTransient = "service_transient", ResourceRecoverable = "resource_recoverable", AuthTerminal = "auth_terminal", NotFoundTerminal = "not_found_terminal", PayloadTerminal = "payload_terminal", ValidationTerminal = "validation_terminal", ConflictTerminal = "conflict_terminal", Unknown = "unknown" } export declare const isClosedLaunchError: (error: unknown) => boolean; export declare const classifyError: (error: unknown) => ErrorKind; export declare const shouldRetryUpload: (error: unknown) => boolean; export declare const isPermanentUploadError: (error: unknown) => boolean; export declare const isTerminalUploadError: (error: unknown, retries: number, maxRetries: number) => boolean; export type RetryOptions = { maxRetries?: number; baseDelayMs?: number; maxDelayMs?: number; onRetry?: (error: unknown, attempt: number) => void | Promise; }; export declare const withUploadRetry: (operation: () => Promise, options?: RetryOptions) => Promise;