import { type HelixSceneV2, type SceneHlodCluster, type SceneHlodLayer, type SceneHlodParticipation } from '@hypersoniclabs/helix-manifest'; import type { HlodBakeMetrics } from './types'; /** Bump whenever normalization, simplification, UV layout, sampling or output encoding changes. */ export declare const HLOD_BAKER_VERSION = 3; export declare const DEFAULT_HLOD_LAYER: SceneHlodLayer; export declare function withoutBake(original: HelixSceneV2): HelixSceneV2; export declare function readScene(file: string): Promise<{ bytes: Buffer; scene: HelixSceneV2; }>; export declare function replaceScene(file: string, before: Buffer, scene: HelixSceneV2): Promise; /** Explicit node selection. Changing a tag invalidates the prior bake while retaining its content-addressed files for reuse. */ export declare function tagSceneHlod(file: string, options: { nodes: string[]; mode: SceneHlodParticipation['mode']; layer?: string; layerSettings?: Partial>; }): Promise; export declare function planSceneHlod(scene: HelixSceneV2): { layer: string; cell: string; nodes: string[]; }[]; export declare function inspectSceneHlod(file: string): Promise<{ scene: string; layers: SceneHlodLayer[]; bake: import("@hypersoniclabs/helix-manifest").SceneHlodCompleteBakeSettings | undefined; refinement: import("@hypersoniclabs/helix-manifest").SceneHlodRefinementSettings | undefined; sharedMaterials: import("@hypersoniclabs/helix-manifest").SceneHlodSharedMaterial[] | undefined; clusters: SceneHlodCluster[]; } | { scene: string; layers: SceneHlodLayer[]; clusters: { sourceHash: string; bake: SceneHlodCluster | null; layer: string; cell: string; nodes: string[]; }[]; bake?: undefined; refinement?: undefined; sharedMaterials?: undefined; }>; export interface HlodBakeReceipt { bakerVersion: number; key: string; cluster: SceneHlodCluster; sha256: string; bytes: number; uri: string; sourceDrawCalls: number; sourceBytes: number; metrics: HlodBakeMetrics; } export interface SceneHlodBakeOptions { compression?: 'png' | 'ktx2'; signal?: AbortSignal; force?: boolean; onProgress?: (progress: { completed: number; total: number; cluster: string; cached: boolean; }) => void; } export declare function bundleDirectory(root: string, parts: string[]): Promise; /** Whole-scene bake is serial and bounded. Resources are durable before the scene is atomically resealed. */ export declare function bakeSceneHlod(file: string, options?: SceneHlodBakeOptions): Promise<{ scene: string; clusters: (HlodBakeReceipt & { cached: boolean; })[]; totalMs: number; sourceTriangles: number; outputTriangles: number; sourceDrawCalls: number; proxyDrawCalls: number; outputBytes: number; }>;