import { type Json } from './platform'; export interface VehiclePullItem { id: string; slug?: string; title?: string; description?: string; tags?: string[]; contentRating?: string | null; status?: string; continuumPackagePin?: { packageId: string; version: string; manifestCid?: string; } | null; } /** What `pullVehicle` reads. Every call is injected so the decision is unit-testable without a network. */ export interface VehiclePullApi { readItem(itemId: string): Promise; /** The sealed Package Version's manifest (`GET …/packages/:id/versions/:version`). */ readVersion(packageId: string, version: string): Promise<{ manifestCid?: string; manifest: Json; }>; /** An object's exact bytes, by `cid:sha256:…` or bare sha256 hex; undefined when it is not publicly readable. */ readObject(cidOrSha: string): Promise; } export type PulledRendition = { id: string; sha: string; file: string; bytes: number; tiers: string[]; }; export type VehiclePullResult = { itemId: string; title: string; dir: string; packageId: string; version: string; manifestCid?: string; rootCid: string; rootSha: string; renditions: PulledRendition[]; audio: { files: number; bytes: number; }; rating: { from?: string | null; to?: string; }; files: string[]; notes: string[]; }; export type VehiclePullOptions = { itemId: string; dir: string; /** Pull this Version instead of the item's current pin (a car's history is copyable too). */ packageVersion?: string; /** The rating to write into publish.json for the COPY (default: the item's own, mapped to the new vocabulary). */ contentRating?: string; onProgress?: (message: string) => void; }; /** * The Item's rating in the vocabulary a NEW Item attests. `general` is `Everyone` under its old name * (`helix-backend-api` `ContentMaturity` -> `ContentRating`), so the mapping is exact — but an unrecognised value is * never guessed at, because a rating is a creator attestation rather than a formatting detail. */ export declare function mapItemRating(rating: string | null | undefined): { to?: string; note?: string; }; type Rendition = { id: string; kind?: string; sha?: string; bytes?: number; tiers: string[]; }; export declare function primaryRendition(renditions: ReadonlyArray): Rendition | undefined; /** The file a rendition's bytes are written to: `model.glb` for the primary, `model-.glb` for the rest. */ export declare const modelFileName: (renditionId: string, primary: boolean) => string; /** * Rebuild the published inputs of a live car into `opts.dir` (which must not exist yet). Nothing is uploaded, nothing * is deleted, and no ledger is written — the copy has no item, which is exactly what makes it mint a new one. */ export declare function pullVehicle(opts: VehiclePullOptions, api: VehiclePullApi): Promise; export declare function formatVehiclePull(r: VehiclePullResult): string; export {};