/** * R2-backed cache for generated media (TTS audio, OG images, charts). */ export interface R2CacheOptions { bucket: R2Bucket; publicHost: string; } export interface ProducerResult { body: ArrayBuffer | ReadableStream | Blob | string; contentType: string; } export declare class R2Cache { readonly bucket: R2Bucket; readonly publicHost: string; constructor({ bucket, publicHost }: R2CacheOptions); getOrCreate(key: string, producer: () => Promise): Promise<{ url: string; fromCache: boolean; }>; urlFor(key: string): string; } //# sourceMappingURL=r2_cache.d.ts.map