/** * Modern Supabase Storage Core * Enhanced storage service with security, performance, and RLS integration */ import type { SupabaseClient } from '@supabase/supabase-js'; import type { StorageConfig, UploadResult, UploadOptions, UploadedDocument } from '../types'; export declare class SupabaseStorageCore { private client; private config; private cache; constructor(client: SupabaseClient, config?: StorageConfig); /** * Enhanced upload with progress tracking and security validation */ uploadWithProgress(file: File, path: string, options?: UploadOptions): Promise; /** * Handle large file uploads with chunking simulation */ private uploadLargeFile; /** * Perform the actual upload to Supabase */ private performUpload; /** * Validate RLS permissions for the current user */ private validateRLSPermissions; /** * Validate file signature (magic numbers) for security */ private validateFileSignature; /** * Get signed URL with caching */ getSignedUrl(path: string, expiresIn?: number): Promise; /** * Delete a file */ deleteFile(path: string): Promise; /** * List files with RLS filtering */ listFiles(prefix?: string): Promise; /** * Download a file */ downloadFile(path: string): Promise; /** * Check if file exists */ fileExists(path: string): Promise; /** * Clear cache */ clearCache(): void; /** * Get cache stats */ getCacheStats(): { size: number; entries: Array<{ path: string; expires: Date; }>; }; /** * Determine document type from file */ private getDocumentType; } /** * Create storage core instance */ export declare function createStorageCore(client: SupabaseClient, config?: Partial): SupabaseStorageCore; //# sourceMappingURL=SupabaseStorageCore.d.ts.map