/** * Storage Provider Interface * Abstracts cloud storage operations for different providers (S3, R2, DO Spaces) */ export interface UploadOptions { file: Buffer; key: string; contentType: string; metadata?: Record; cacheControl?: string; } export interface UploadResult { url: string; key: string; bucket: string; size: number; etag?: string; } export interface DeleteOptions { key: string; } export interface GetSignedUrlOptions { key: string; expiresIn?: number; operation?: 'getObject' | 'putObject'; } export interface ListOptions { prefix?: string; maxKeys?: number; startAfter?: string; } export interface ListResult { keys: string[]; isTruncated: boolean; nextStartAfter?: string; } export interface StorageProvider { /** * Storage provider name */ readonly name: string; /** * Upload a file to storage */ upload(options: UploadOptions): Promise; /** * Delete a file from storage */ delete(options: DeleteOptions): Promise; /** * Get a signed URL for accessing a file */ getSignedUrl(options: GetSignedUrlOptions): Promise; /** * Check if a file exists */ exists(key: string): Promise; /** * List files with prefix */ list(options: ListOptions): Promise; /** * Get public URL for a file (if bucket is public) */ getPublicUrl(key: string): string; } //# sourceMappingURL=StorageProvider.d.ts.map