import { type HelixSceneV2, type ScenePerfFacts, type ScenePerfRuleResult, type ScenePerfTier } from '@hypersoniclabs/helix-manifest'; import type { ScenePerfSource } from './source'; /** Byte-rule limits. The thresholds the document rules share live in helix-manifest `SCENE_PERF_LIMITS`. */ export declare const SCENE_PERF_BYTE_LIMITS: { /** P03: longest texture edge. */ readonly maxTextureEdge: 2048; /** P03: longest edge for HLOD atlases and layered (array) library textures. */ readonly maxLargeTextureEdge: 4096; /** P04: a GLB larger than this must use meshopt or quantisation. */ readonly compressionRequiredBytes: number; }; export type ScenePerfByteInspection = { facts: ScenePerfFacts; /** P03, P04 and P12 for every requested tier. */ results: ScenePerfRuleResult[]; /** Bundle paths a declared resource points at that the source does not hold. */ missing: string[]; inspected: { glb: number; textures: number; }; }; /** * Declares, on every placements region resource, the resources its records draw with: the models, textures and GI proxy of each * prototype a record uses. The engine acquires a prototype's model when a resident cell first draws one of its instances, so P11 * (helix-manifest 0.3.47) counts a prototype only through the regions near the spawn once every region declares them. A region * that cannot be read declares nothing, and P11 keeps the every-prototype bound. */ export declare function declareRegionModels(scene: HelixSceneV2, source: ScenePerfSource, facts: ScenePerfFacts, missing: string[]): Promise; /** * Read the package bytes and decide the byte rules: P03 textures, P04 geometry, P12 duplicates. Also returns the * measurements the shared document rules sharpen themselves with (triangles, draw calls, external image dependencies). * Sequential on purpose: one GLB in memory at a time. */ export declare function inspectScenePackageBytes(scene: HelixSceneV2, source: ScenePerfSource, tiers: readonly ScenePerfTier[]): Promise;