/**
* Vendored, dependency-free copy of the app's blob helpers. Standard Reader
* images are AT-Proto blobs referenced by CID; the Bluesky CDN serves any PDS
* blob by `(did, cid)`, so these two helpers are all the renderer needs to turn
* a blob ref into an `
`.
*/
/** A blob ref as it appears in a decoded record. */
export interface BlobRef {
ref?: string | {
$link?: string;
["/"]?: string;
toString?: () => string;
} | null;
mimeType?: string;
size?: number;
}
/**
* Pull the CID string out of a blob ref. Handles the shapes a `ref` can take
* depending on how the record was decoded: a bare CID string, a `{$link: cid}`
* object (plain dag-json), a `{"/": cid}` object (dag-json link form), or a
* multiformats `CID` instance (stringified).
*/
export declare function blobCid(blob: BlobRef | undefined | null): string | null;
/**
* Build a Bluesky CDN image URL for a PDS blob. The CDN transcodes to the
* requested format (`@jpeg` for photos, `@png` when alpha must be preserved)
* and serves it with long cache headers + inline disposition — suitable for a
* browser `
`.
*/
export declare function cdnImageUrl(did: string, cid: string, format?: "jpeg" | "png"): string;
//# sourceMappingURL=blob.d.ts.map