import type { SupabaseClient } from '@supabase/supabase-js'; import type { StorageConfig, UploadResult, UploadProgress, BatchUploadOptions } from '../types'; export interface BatchUploadOptionsExtended extends BatchUploadOptions { concurrency?: number; leadId?: string; productId?: string; category?: string; prefix?: string; includeIndex?: boolean; generateUnique?: boolean; pathGenerator?: (file: File, index: number) => string; onFileProgress?: (fileIndex: number, progress: UploadProgress) => void; onFileComplete?: (fileIndex: number, result: UploadResult) => void; } export interface BatchUploadState { isUploading: boolean; completed: number; total: number; failed: number; percentage: number; results: UploadResult[]; errors: string[]; } export interface UseBatchUploadReturn { isBatchUploading: boolean; batchProgress: { completed: number; total: number; percentage: number; } | null; batchResults: UploadResult[]; batchError: Error | null; uploadBatch: (files: File[] | FileList, options?: BatchUploadOptionsExtended) => Promise; cancelBatch: () => void; resetBatch: () => void; } /** * Enhanced batch upload hook with concurrency control */ export declare function useBatchUpload(client: SupabaseClient, config?: Partial): UseBatchUploadReturn; /** * Options for document path generation */ export interface DocumentPathOptions { leadId?: string; userId?: string; productId?: string; category?: string; prefix?: string; includeIndex?: boolean; generateUnique?: boolean; } /** * Helper function to generate standard document paths * Supports both legacy (leadId, productId) and modern (options object) signatures */ export declare function createDocumentPathGenerator(optionsOrLeadId: DocumentPathOptions | string, legacyProductId?: string): (file: File, index: number) => string; //# sourceMappingURL=useBatchUpload.d.ts.map