import { type ContinuumSceneElement, type ContinuumSceneTerrainElement } from '@hypersoniclabs/helix-manifest'; import { type SourceSceneActor, type SourceSceneMap, type SourceSceneMaterial } from '../sceneImport/semantic'; import type { ContinuumObjectPublication } from './types'; export declare const RESIDENCE_SCENE_ELEMENT_TYPES: readonly ["item", "owned-item", "surface-override", "node-override"]; type ResidenceElementType = (typeof RESIDENCE_SCENE_ELEMENT_TYPES)[number]; type NativeType = Exclude; type NativeCandidate = Extract; type ScratchNativeCandidate = T extends NativeCandidate ? { id: string; parentId?: string; materialId?: string; } & Omit : never; /** A terrain authored as the FOLDER `helix terrain generate|import` wrote — absolute, or relative to the process directory. */ export type ScratchTerrainElement = { id: string; type: 'terrain'; source: string; colliderRadiusM?: number; lod?: { strideDistancesM?: [number, number, number]; }; }; export type ScratchSceneElement = { id: string; parentId?: string; type: 'building' | 'group' | 'level' | 'space'; role?: SourceSceneActor['role']; collision?: boolean; residency?: SourceSceneActor['residency']; transform?: SourceSceneActor['transform']; } | ScratchTerrainElement | { id: string; type: 'placements'; source: string; } | ScratchNativeCandidate; export type ScratchSceneDescription = { id: string; title: string; materials?: SourceSceneMaterial[]; canonicalMaterialPackages?: SourceSceneMap['canonicalMaterialPackages']; elements: ScratchSceneElement[]; }; /** Reads a terrain source folder into the document's leaf element: every tile and the coarse layer, by CID. */ export declare function scratchTerrainElement(element: ScratchTerrainElement): ContinuumSceneTerrainElement; /** The terrain bytes a scratch description publishes, in the order the folder records them. */ export declare function scratchTerrainObjects(input: ScratchSceneDescription, audience?: 'private' | 'public'): ContinuumObjectPublication[]; /** Scratch authoring intentionally enters through the same semantic importer as source maps. */ export declare function createScratchSourceSceneMap(input: ScratchSceneDescription): SourceSceneMap; export declare function importScratchScene(input: ScratchSceneDescription): import("../sceneImport/semantic").SourceSceneImportResult; export {};