/** * @file Fetch a blob, either a layer or the config, by digest. `GET * /v2//blobs/` with a bearer token. `getBlob` returns the * raw bytes as a `Uint8Array` — the CALLER is responsible for verifying * `sha256(bytes) === digest`. `getBlobJson` is a convenience for the config * blob (and any JSON layer), reusing the injectable adapter's `json`. */ import type { OciHttpOptions } from './types.js'; /** * Build the blob URL for a repository digest. */ export declare function buildBlobUrl(registry: string, repository: string, digest: string): string; /** * Fetch a blob's raw bytes by digest. The caller verifies the content digest * against `digest`. Fails loud on a non-2xx response. */ export declare function getBlob(registry: string, repository: string, digest: string, token: string, options: OciHttpOptions): Promise; /** * Fetch and parse a JSON blob by digest, typically the image config. Uses the * adapter's `json` leg so a non-2xx surfaces through its error path. */ export declare function getBlobJson(registry: string, repository: string, digest: string, token: string, options: OciHttpOptions): Promise;