import type { SupabaseClient } from '@supabase/supabase-js'; import type { StorageConfig, UploadResult, UploadOptions } from '../types'; export interface UploadState { isUploading: boolean; progress: number; uploadSpeed: number; timeRemaining: number; error: string | null; result: UploadResult | null; } export interface UseUploadReturn extends UploadState { upload: (file: File, path: string, options?: UploadOptions) => Promise; cancel: () => void; reset: () => void; } /** * Enhanced upload hook with progress tracking and performance monitoring */ export declare function useUpload(client: SupabaseClient, config?: Partial): UseUploadReturn; /** * Format bytes to human readable format */ export declare function formatBytes(bytes: number): string; /** * Format upload speed */ export declare function formatSpeed(bytesPerSecond: number): string; /** * Format time remaining */ export declare function formatTimeRemaining(seconds: number): string; //# sourceMappingURL=useUpload.d.ts.map