/** * Supabase Storage Service * Complete storage management with bucket operations and file handling */ import type { SupabaseClient } from '@supabase/supabase-js'; import type { StorageConfig, StorageService as IStorageService, UploadResult, UploadOptions, UploadedDocument } from '../types'; export declare class SupabaseStorageService implements IStorageService { client: SupabaseClient; config: StorageConfig; private cache; constructor(client: SupabaseClient, config?: StorageConfig); /** * Upload a file to Supabase Storage */ uploadFile(file: File, customPath?: string, options?: UploadOptions): Promise; /** * Delete a file from Supabase Storage */ deleteFile(path: string): Promise; /** * Download a file from Supabase Storage */ downloadFile(path: string): Promise; /** * Get signed URL for a file with caching */ getSignedUrl(path: string, expiresIn?: number): Promise; /** * List files in a directory */ listFiles(prefix?: string): Promise; /** * Create a storage bucket */ createBucket(bucketName: string, isPublic?: boolean): Promise; /** * Get bucket information */ getBucketInfo(bucketName: string): Promise; /** * Generate storage path for file */ private generatePath; /** * Move file to different location */ moveFile(fromPath: string, toPath: string): Promise; /** * Copy file to different location */ copyFile(fromPath: string, toPath: string): Promise; /** * Get public URL for a file */ getPublicUrl(path: string): string; /** * Check if file exists */ fileExists(path: string): Promise; /** * Get file metadata */ getFileMetadata(path: string): Promise; /** * Update file metadata */ updateFileMetadata(path: string, metadata: Record): Promise; /** * Validate file signature (magic numbers) for security */ validateFileSignature(file: File): Promise; /** * Clear cache */ clearCache(): void; /** * Get cache statistics */ getCacheStats(): { size: number; entries: Array<{ path: string; expires: Date; }>; }; /** * Delete file with cache cleanup */ deleteFileWithCache(path: string): Promise; } /** * Create storage service instance */ export declare function createStorageService(client: SupabaseClient, config?: Partial): SupabaseStorageService; /** * Default export */ export default SupabaseStorageService; //# sourceMappingURL=index.d.ts.map