import { type CandidateRequest } from './candidate'; import type { VisualQaCategory, VisualQaItemIdentity } from './types'; export interface ResolvedItem { identity: VisualQaItemIdentity; item: Record; /** Parsed package root document when it is JSON (vehicle package, add-on descriptor); null for a bare GLB root. */ root: Record | null; rootRole: string | null; /** Immutable root definition/model and Package type named by the resolved manifest. */ rootCid?: string | null; packageType?: string | null; /** CID (sha256:) of the model GLB the runtime draws for this version, when there is one. */ modelCid: string | null; /** Vehicles: every model rendition the version's manifest declares (`vehicle.model.web.*` variants), id/role/cid. */ modelVariants?: Array<{ id: string; role: string; cid: string; }>; /** Hosts (vehicle add-ons) or bases (character add-ons / wearables) declared by the item. */ hostIds: string[]; /** True for tune-only add-ons that carry no renderable model, and for any Version the backend reports `exempt: 'meshless'` * (an OG pending-rendition deed such as Parallel City Land). */ meshless: boolean; /** Why the backend exempts the item from visual QA, when it does (`meshless`, `non_visual_slot`, `look`); null otherwise. * A Look (an item pinned to a Build Package) is judged through its parts and Try Now does not serve it. */ exempt?: string | null; /** Set when a version the item is NOT pinned to was resolved (`--package-version`): what the item points at today, * and the vehicle package the version move carries. The identity above describes the candidate. */ candidate?: { currentVersion: string | null; currentManifestCid: string | null; vehiclePackage: Record | null; } | null; } export declare function categoryFor(item: { itemType?: unknown; hostKind?: unknown; slotType?: unknown; kind?: unknown; }): VisualQaCategory; export declare const hexOf: (cid: string | null | undefined) => string | null; export declare class HttpStatusError extends Error { readonly status: number; constructor(status: number, message: string); } /** A sealed Package Version. The public route serves only a PUBLIC Package (`assertCanResolvePackage` refuses even the * owner of a private one, 403), so on 403/404 with a login the owner/authenticated route is asked instead: a private * avatar held for visual QA must still be judgeable by its creator (and by an admin or the leased runner). */ export declare function getPackageVersion(api: string, packageId: string, version: string, token?: string | null, itemId?: string): Promise; /** A Package Version's object (a JSON root definition), public first, then the authenticated version-scoped route. */ export declare function getPackageObject(api: string, packageId: string, version: string, cid: string, token?: string | null): Promise; type Manifest = { package?: { id?: string; type?: string; }; version?: string; root?: { cid?: string; role?: string; mediaType?: string; }; variants?: Array<{ id?: string; object?: { cid?: string; role?: string; mediaType?: string; }; }>; }; /** A candidate must be a sealed revision of the item's own typed Package, with an exact manifest identity. */ export declare function validateCandidateVersion(itemType: unknown, packageId: string, version: string, body: { packageId?: string; version?: string; lifecycle?: string; manifestCid?: string; manifest?: Manifest; }): void; /** Pick the model GLB the runtime draws for this version, by root role. */ export declare function modelCidFor(rootRole: string | null, rootMedia: string | null, root: Record | null, manifest: Manifest): string | null; /** `token` lets the hosted runner (a bot account with read-only rights) resolve an item that is not public yet. * `candidate.packageVersion` resolves THAT version of the item's pinned package instead of the pin (a version move * being judged before the pointer moves); the identity then describes the candidate, and its vehicle checksum and * version row id stay null until Try Now names them (`trial.candidate`). */ export declare function resolveItem(apiBase: string, itemId: string, token?: string | null, candidateReq?: CandidateRequest): Promise; export {};