import { BlobStorageDownloadResult, BlobStorageProvider, BlobStorageUploadParams } from "./types.js";

//#region src/domains/run/services/blob-storage/index.d.ts

/**
 * Returns the configured blob storage provider with precedence:
 * 1) S3 when BLOB_STORAGE_S3_BUCKET is set
 * 2) Vercel when BLOB_READ_WRITE_TOKEN is set
 * 3) Local fallback otherwise
 *
 * Stored keys do not encode backend; changing provider strategy after uploads
 * can cause existing media URLs to 404.
 */
declare function getBlobStorageProvider(): BlobStorageProvider;
declare const BLOB_URI_PREFIX = "blob://";
declare function isBlobUri(uri: string): boolean;
declare function toBlobUri(key: string): string;
declare function fromBlobUri(uri: string): string;
//#endregion
export { BLOB_URI_PREFIX, type BlobStorageDownloadResult, type BlobStorageProvider, type BlobStorageUploadParams, fromBlobUri, getBlobStorageProvider, isBlobUri, toBlobUri };