import type { FileValidationOptions } from '../../server/utils/storage'; export interface UseFileUploadOptions { bucket: string; folder: string; userId?: string; validation?: FileValidationOptions; generateUniquePath?: boolean; } export interface FileUploadState { isUploading: boolean; progress: number; error: string | null; uploadedUrl: string | null; uploadedPath: string | null; } export interface UseFileUploadReturn { uploadFile: (file: File) => Promise<{ url: string | null; path: string | null; error: string | null; }>; uploadFiles: (files: File[]) => Promise>; state: FileUploadState; reset: () => void; } /** * Simplified hook for file uploads with common patterns */ export declare function useFileUpload(options: UseFileUploadOptions): UseFileUploadReturn; export declare const COMMON_VALIDATION: { readonly images: { readonly allowedTypes: readonly ["image/jpeg", "image/png", "image/webp", "image/gif"]; readonly maxSizeBytes: number; }; readonly documents: { readonly allowedTypes: readonly ["application/pdf", "text/plain", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"]; readonly maxSizeBytes: number; }; readonly videos: { readonly allowedTypes: readonly ["video/mp4", "video/webm", "video/ogg"]; readonly maxSizeBytes: number; }; readonly audio: { readonly allowedTypes: readonly ["audio/mpeg", "audio/wav", "audio/ogg"]; readonly maxSizeBytes: number; }; }; export declare function useImageUpload(options: Omit): UseFileUploadReturn; export declare function useDocumentUpload(options: Omit): UseFileUploadReturn; export declare function useVideoUpload(options: Omit): UseFileUploadReturn; export declare function useAudioUpload(options: Omit): UseFileUploadReturn; //# sourceMappingURL=useFileUpload.d.ts.map