/** * @file The tie-together layer for an anonymous OCI pull: token → manifest → * blob, in the order the distribution spec requires. `resolveImageManifest` * turns a tag or digest into a concrete single-image manifest, chasing a * multi-arch index down to one platform. `pullFirstLayer` runs the full * anon-pull flow for the common single-artifact, single-layer case and * returns the layer bytes plus its declared digest so the CALLER can verify * `sha256(bytes) === digest`. All network work goes through the same * injectable `{ http }` adapter the leaf modules take. */ import type { OciDescriptor, OciHttpOptions, OciManifestResult, OciPlatform } from './types.js'; export declare const GHCR_REGISTRY = "ghcr.io"; /** * Result of an end-to-end single-layer pull: the layer's declared descriptor * and its raw bytes for the caller to digest-verify. */ export interface OciLayerPull { bytes: Uint8Array; layer: OciDescriptor; } /** * Run the full anonymous pull flow for a single-artifact, single-layer image: * acquire a pull token, resolve the manifest by chasing an index down to a * platform, and fetch the sole layer's bytes. Throws when the resolved manifest * does not carry exactly one layer. The caller verifies `sha256(bytes)` against * `layer.digest`. */ export declare function pullFirstLayer(registry: string, repository: string, reference: string, options: OciHttpOptions, platform?: OciPlatform | undefined): Promise; /** * Resolve a `reference` tag or digest to a concrete single-image manifest. * When the reference points at a manifest index, the preferred platform * (default `linux/amd64`) is picked and re-fetched so the returned manifest * carries a `config` + `layers`. The `digest` is the platform-resolved * manifest's `Docker-Content-Digest`. */ export declare function resolveImageManifest(registry: string, repository: string, reference: string, token: string, options: OciHttpOptions, platform?: OciPlatform | undefined): Promise;