export type Json = Record; export declare const isRecord: (value: unknown) => value is Json; export interface Requester { request(method: string, path: string, body?: unknown): Promise; } export type BytesFetch = (url: string) => Promise<{ status: number; bytes: Uint8Array; }>; export declare const defaultBytesFetch: BytesFetch; export declare const sha256Hex: (bytes: Uint8Array | string) => string; export declare const cidOf: (sha: string) => string; export declare const sleep: (ms: number) => Promise; /** RFC 4122 v5 (SHA-1, name-based) UUID. Deterministic Package ids keep a re-run on the same Package. */ export declare function uuidV5(name: string, namespace: string): string; /** Namespace for every vehicle/add-on Package id this CLI derives (a fixed random v4). */ export declare const VEHICLE_PACKAGE_NAMESPACE = "5b8f2a43-7c1e-4d39-9a0e-2f6c1d4b8e71"; export interface ItemAsset { id: string; rendition: string; status: string; cdnUrl?: string; sizeBytes?: number; mimeType?: string; metadata?: Json | null; } export interface ItemRead { id: string; slug: string; title: string; kind: string; status: string; creatorId?: string; hostKind?: string | null; slotType?: string | null; fits?: Json | null; properties?: Json; assets?: ItemAsset[]; continuumPackagePin?: { packageId: string; version: string; manifestCid: string; } | null; } export declare function getItem(api: Requester, itemId: string): Promise; /** Wait until the item's `rendition` asset is `ready` (vehicles and add-ons are verified inline; the web rendition can lag). */ export declare function waitForAsset(api: Requester, itemId: string, rendition: string, opts?: { timeoutMs?: number; intervalMs?: number; onWait?: (msg: string) => void; }): Promise<{ item: ItemRead; asset: ItemAsset; }>; /** * The public, content-addressed URL of a public Continuum object. An object uploaded with audience `public` is served * at `/content/sha256//` immediately (verified live on helix3 2026-10-03 — before any seal), * so a package can cite it in the same pass that mints the item. The origin is discovered, never hardcoded: the * `HELIX_CONTENT_ORIGIN` override, then the CDN origins the backend's own item assets use; the backend's public object * route is the fallback. The URL is only returned once it has served the exact bytes. */ export declare function publicObjectUrl(apiUrl: string, sha: string, bytes: number, deps?: { fetchBytes?: BytesFetch; origins?: string[]; attempts?: number; delayMs?: number; }): Promise; /** Fetch a public Continuum object's exact bytes by sha256 (content URL first, then the API's public object route). */ export declare function fetchPublicObject(apiUrl: string, sha: string, fetchBytes?: BytesFetch): Promise; export declare function contentOrigins(apiUrl: string, fetchImpl?: typeof fetch): Promise; export { jwtSubject as tokenSubject } from '../config';