import type { ContinuumObjectReference, ContinuumPackageVersionReference } from '@hypersoniclabs/helix-manifest'; export type NativeAvatarUse = 'body' | 'wardrobe' | 'fallback' | 'locomotion' | 'emote'; export interface NativeAvatarImageDeclaration { imageIndex: number; bufferView: number; byteLength: number; sha256: string; width: number; height: number; levelCount: number; mediaType: 'image/ktx2' | 'image/png' | 'image/webp' | 'image/jpeg'; } export interface NativeAvatarDocumentDeclaration { encodedByteLength: number; sha256: string; decoderScratchBytes: null; sceneCount: number; bufferByteLength: number; images: readonly NativeAvatarImageDeclaration[]; kinds: readonly NativeAvatarUse[]; residentBytes: Readonly>; } export interface NativeAvatarMetadataDeclaration { encodedByteLength: number; sha256: string; parseScratchBytes: number; } export interface NativeAvatarSealedResource { packagePin: ContinuumPackageVersionReference; object: ContinuumObjectReference; /** Real, authorized transport selected by the caller; never emitted as immutable authority. */ selectedUrl: string; encoded: Uint8Array; } export interface NativeAvatarSealedModel extends NativeAvatarSealedResource { kinds: readonly NativeAvatarUse[]; } export interface NativeAvatarAuthoringResult { producer: { engineCommit: string; bundleSha256: string; }; maxTextureSizes: readonly number[]; models: Array<{ packagePin: ContinuumPackageVersionReference; object: ContinuumObjectReference; descriptor: NativeAvatarDocumentDeclaration; }>; metadata: Array<{ packagePin: ContinuumPackageVersionReference; object: ContinuumObjectReference; descriptor: NativeAvatarMetadataDeclaration; }>; scratchContract: 'finite-admission-required'; } /** Authoring only: enumerate every embedded image from the final encoded GLB, including all LOD scenes. */ export declare function censusNativeAvatarImages(encoded: Uint8Array): Promise; /** Produces managed declarations, not an authorization receipt. Backend must verify closure/access before calling. */ export declare function produceNativeAvatarCidDescriptors(input: { models: readonly NativeAvatarSealedModel[]; metadata: readonly NativeAvatarSealedResource[]; maxTextureSizes: readonly number[]; }): Promise;