/** Resolves a Package Version to the GLB item-lod/1 is compiled from, through the same Continuum routes the CLI already uses. */ export interface ItemLodApi { request(method: string, path: string, body?: unknown): Promise; requestBytes(path: string, headers?: Record): Promise<{ bytes: Uint8Array; mediaType: string; }>; } export interface PackageModelRef { packageId: string; version: string | null; } interface ManifestVariant { id: string; object: { cid: string; role: string; mediaType: string; bytes: number; }; runtimeProfileId?: string; } interface PackageInspection { packageId: string; version: string; manifestCid: string; manifest: { package: { id: string; type: string; }; root?: { cid: string; role: string; mediaType: string; bytes: number; }; variants?: ManifestVariant[]; }; } export interface ResolvedPackageModel { packageId: string; version: string; manifestCid: string; packageType: string; /** The variant the model came from. */ variantId: string; role: string; modelCid: string; glb: Uint8Array; /** Set when the manifest CID could not be recomputed from the manifest body. */ warnings: string[]; } /** `[@version]`. The version is optional only when the package is reachable through an Item (see resolveItemPackage). */ export declare function parsePackageRef(ref: string): PackageModelRef; /** The Item (id or slug) behind a published prop, Device or vehicle, resolved to its pinned Package Version. */ export declare function resolveItemPackage(api: ItemLodApi, itemRef: string): Promise<{ packageId: string; version: string; }>; /** Which model variant to use: an explicit one, else the balanced web profile, else the largest GLB. */ export declare function chooseModelVariant(manifest: PackageInspection['manifest'], explicit?: string): ManifestVariant; export declare function resolvePackageModel(api: ItemLodApi, ref: PackageModelRef, options?: { variant?: string; }): Promise; export {};