import { c as UploadOptions, U as UploadFile, b as UploadResponse } from '../index-BjQbXosE.cjs'; import { UploadProvider } from '../core/provider.cjs'; /** * Hook for managing file uploads with a specific provider */ declare function useUpload(provider: UploadProvider, options?: UploadOptions): { files: UploadFile[]; isUploading: boolean; error: string | null; uploadProgress: Record; pendingFiles: UploadFile[]; uploadingFiles: UploadFile[]; successFiles: UploadFile[]; errorFiles: UploadFile[]; cancelledFiles: UploadFile[]; totalSize: number; uploadedSize: number; addFiles: (newFiles: readonly File[]) => Promise<{ success: boolean; files: readonly UploadFile[]; errors?: undefined; } | { success: boolean; errors: readonly string[]; files?: undefined; } | undefined>; removeFile: (fileId: string) => void; clearAll: () => void; uploadFile: (fileId: string, uploadOptions?: UploadOptions) => Promise; uploadAll: (uploadOptions?: UploadOptions) => Promise; retryUpload: (fileId: string, uploadOptions?: UploadOptions) => Promise; cancelUpload: (fileId: string) => Promise; getStats: () => Promise<{ totalFiles: number; totalSize: number; provider: string; } | null>; testConnection: () => Promise; hasFiles: boolean; hasPendingFiles: boolean; hasErrors: boolean; isFullyUploaded: boolean; }; export { useUpload };