import { type ContinuumObjectReference, type ContinuumPackageVersionReference, type ContinuumSceneBounds, type ContinuumSceneDocument, type ContinuumSceneResidency, type ContinuumSceneRole, type ContinuumSceneTransform } from '@hypersoniclabs/helix-manifest'; import { type MaterialMatch, type SharedMaterialBindingInput, type SourceMaterialDescription } from './materials'; export declare const NATIVE_SCENE_CONVERSION_CONFIDENCE = 0.95; export declare const SOURCE_SCENE_IMPORT_BUDGETS: { readonly actors: 20000; readonly materials: 4096; readonly materialSlotsPerActor: 64; readonly totalMaterialSlots: 100000; readonly hierarchyDepth: 32; readonly stringCharacters: 5000000; readonly stringLength: 512; readonly totalInputUnits: 1000000; }; export type SourceSceneMaterial = { id: string; description: SourceMaterialDescription; sourcePackage: ContinuumPackageVersionReference; binding?: Omit; }; export type SourceNativeCandidate = Record & { type: 'wall' | 'floor' | 'ceiling' | 'opening' | 'door' | 'window' | 'stairs' | 'primitive' | 'foliage' | 'light' | 'portal' | 'gameplay-anchor' | 'child-scene' | 'terrain' | 'placements'; }; export type SourceSceneActor = { id: string; parentId?: string; kind: 'building' | 'group' | 'level' | 'space' | SourceNativeCandidate['type'] | 'unknown'; confidence: number; candidate?: SourceNativeCandidate; transform?: ContinuumSceneTransform; bounds?: ContinuumSceneBounds; mesh?: ContinuumObjectReference; proxy?: ContinuumObjectReference; collider?: ContinuumObjectReference; materialSlots?: Record; role?: ContinuumSceneRole; collision?: boolean; residency?: ContinuumSceneResidency; sourceId?: string; }; export type SourceSceneMap = { id: string; title: string; materials: SourceSceneMaterial[]; canonicalMaterialPackages: Readonly>; actors: SourceSceneActor[]; }; export type SourceSceneImportReceipt = { schema: 'helix.creator.scene-import-receipt/1'; conversions: Array<{ actorId: string; action: 'native' | 'mesh-backed' | 'container'; confidence: number; reason: string; sourceMeshCid?: string; }>; materials: Array<{ sourceMaterialId: string; action: MaterialMatch['action']; confidence: number; selectedPackageId: string; preserveSourceRendition: boolean; reason: string; }>; }; export type SourceSceneImportResult = { document: ContinuumSceneDocument; receipt: SourceSceneImportReceipt; }; /** * Convert an already-inventoried source map into the canonical semantic tree. * Classification is deliberately caller-visible: only candidates at or above * the proof threshold become native elements, and even those retain the exact * source mesh as a fallback object when one exists. */ export declare function importSourceSceneMap(input: SourceSceneMap): SourceSceneImportResult;