/** * @fractary/core - R2 Storage Implementation * * Cloudflare R2 storage backend for file operations. * R2 is S3-compatible, so this uses the AWS SDK with R2 endpoint. */ import { Storage, R2StorageConfig } from './types'; /** * Cloudflare R2 storage implementation * * Uses S3Storage internally with R2-specific endpoint configuration. */ export declare class R2Storage implements Storage { private s3Storage; private config; constructor(config: R2StorageConfig); /** * Write content to R2 */ write(id: string, content: string | Buffer): Promise; /** * Read content from R2 */ read(id: string): Promise; /** * Check if object exists in R2 */ exists(id: string): Promise; /** * List objects in R2 with optional prefix */ list(prefix?: string): Promise; /** * Delete object from R2 */ delete(id: string): Promise; /** * Get a URL for the object * * R2 supports presigned URLs, and can also use public bucket URLs. */ getUrl(id: string, expiresIn?: number): Promise; /** * Get the bucket name */ getBucket(): string; /** * Get the account ID */ getAccountId(): string; /** * Get the configured prefix */ getPrefix(): string | undefined; } //# sourceMappingURL=r2.d.ts.map