public interface IDocumentStorageService { Task<(string objectKey, string sha256, long fileSize)> UploadAsync(Stream fileStream, string contentType, Guid batchId); Task GetPresignedUrlAsync(string objectKey); Task DownloadAsync(string objectKey); /// Returns false when the object is missing from the bucket. Task ObjectExistsAsync(string objectKey); /// Uploads bytes only when the object key is not already present. Task EnsureObjectAsync(string objectKey, byte[] content, string contentType); }