import { join } from 'node:path'; import { type HelixSceneV2, type SceneNode, type SceneResource } from '@hypersoniclabs/helix-manifest'; import { IDENTITY, type Mat4 } from './math'; import type { SplitItem, SplitModel } from './types'; export declare function sha256Hex(bytes: Uint8Array): string; /** Reads one GLB and refuses anything that is not a static environment. */ export declare function readModel(path: string, key: string): Promise; /** * Every mesh-bearing node of the model's default scene, depth first in source * order, with its transform resolved through the whole parent chain and the * model's own placement. The order is the deterministic order every later * stage sorts by, so identical input can only produce identical output. */ export declare function collectItems(model: SplitModel, placement: Mat4, keyPrefix: string, warnings: string[]): SplitItem[]; export type SceneInput = { scene: HelixSceneV2; path: string; dir: string; sha256: string; bytes: number; profileId: string; }; /** Reads and validates a Scene v2 document; an invalid input is refused rather than repaired. */ export declare function readSceneInput(path: string, profile?: string): Promise; /** Resolves a bundle-relative resource URI against the document directory, refusing escape. */ export declare function bundlePath(dir: string, resource: SceneResource): string | null; export declare function fileExists(path: string): Promise; /** A node's world matrix through its `parent` chain, in Scene space. */ export declare function sceneNodeWorld(node: SceneNode, byId: Map): Mat4; export { IDENTITY, join };