type Vec3 = [number, number, number]; /** The shell's first-playable radii (engine example granit-city, src/main.ts FIRST_PLAYABLE_CELLS_M / FIRST_PLAYABLE_HLOD_M). */ export declare const FIRST_PLAYABLE: { readonly cellsM: 300; readonly hlodM: 900; }; /** The city-material slots only the high tier loads (engine systems/scene/src/materials/city/params.ts CITY_LIBRARY_HIGH_ONLY). */ export declare const CITY_LIBRARY_HIGH_ONLY: ReadonlySet; /** * How far from the player the placements system keeps regions: `structuralDistanceM + 64` of the tier's quality (engine * systems/scene/src/placements/types.ts, `high` 576 on a desktop, `low` 320 on a phone). Measured on Granit: desktop regions are in the * startup packs out to 627 m of the spawn and absent from 644 m. */ export declare const PLACEMENT_REACH_M: { readonly desktop: 640; readonly mobile: 384; }; export declare const SCENE_DOCUMENT = "scene.helix-scene.json"; /** * The runtime admits stream groups around the CAMERA (engine systems/scene runtime/streamer.ts `reconcile(view)`), and the camera sits * on the third-person boom behind the player (humanoid-character: 4 m, zoomable to 8 m, plus the 0.45 m shoulder), so the first * frames can admit a group a few metres past the stream radius of the spawn. Pacifica's phone spawn is 305 m from tile 1_2 on a * 300 m radius: the tile and its road cell (~1.2 MB) were left out of the packs and fetched one by one after the engine was ready, * holding the reveal 2-5 s. A ROOT-document group within this margin of the radius is resident at the spawn. The margin is the full * zoomed boom and no more: at 16 m Pacifica also packed tile 0_2 and road 0_2 (315 m), which no first frame admits, and the phone's * critical packs grew 4.7 MB for nothing. Mounted parts (buildings, 48 m on a phone) take none: with it the phone packed 1.7 MB of * building prototypes 48-56 m out that a measured session never fetched (pacifica-lt1, three phone reps). */ export declare const STREAM_VIEW_MARGIN_M = 8; /** Where the predictor reads the published tree from: paths are relative to the data prefix's `scene/` folder. */ export interface PackSource { read(path: string): Promise; size(path: string): Promise; } /** A publish tree on disk (`/publish/scene`); symlinked part folders resolve like any other path. */ export declare function directoryPackSource(sceneDir: string): PackSource; export type PredictedPhase = 'critical' | 'deferred'; export interface PredictedFile { /** Relative to `scene/` (the pack index key). */ path: string; /** Decoded bytes, from the document (the sealed `bytes` of the resource), else the file. */ bytes: number; /** Content digest from the document; absent for files that are not Scene resources (mounted child documents). */ sha256?: string; /** The class that put it in the set (kept in the receipt, so a wrong class is visible). */ why: string; } export interface StartupPrediction { /** The root folder name, e.g. `granit-c1`. */ root: string; tier: 'desktop' | 'mobile'; spawn: Vec3; streamRadiusM: number; /** Files the first frame waits for on a path of its own (the ocean), fetched ahead of the packs. */ early: PredictedFile[]; /** The root document and its pin: fetched by the shell before the packs and never inside one, but part of the first-play transfer. */ documents: PredictedFile[]; critical: PredictedFile[]; deferred: PredictedFile[]; warnings: string[]; } export interface PredictOptions { tier?: 'desktop' | 'mobile'; /** Override the first-playable HLOD radius (default 900 m, the shell's). */ hlodRadiusM?: number; } export declare function predictStartup(source: PackSource, root: string, options?: PredictOptions): Promise; export {};