import type { ScenePerfReport } from '@hypersoniclabs/helix-manifest'; import { type BuildingsManifest } from '../buildings'; import { type CitySource } from '../source'; import { type ComposeStats } from './compose'; import { type PackagedCityLibrary } from './materials'; import { type ScenePlan } from './plan'; import { type CityTerrainResult } from './terrain'; import { type VegetationResult } from '../vegetation'; import { type PropsResult } from '../props'; /** The activation radius at which a dense city cell stays within the mobile draw-call limit (P06, 150). */ export declare const MOBILE_STREAM_RADIUS_M = 300; export declare const SCENE_REPORT_SCHEMA: "helix.scene-create-report/1"; export interface CreateCityOptions { /** The `helix.city-source/1` folder. */ source: string; /** The Scene package folder this writes (`scene.helix-scene.json`, `pin.json`, the bundle files). */ out: string; /** Work folder for the intermediate terrain, placements and buildings (default `.work`). */ work?: string; plan?: ScenePlan; log?: (line: string) => void; /** Do not reach the network (the Vault is not searched). */ offline?: boolean; /** Skip the perf gate (the document is still validated). Never used by publish. */ skipPerf?: boolean; /** Where the terrain margin DEM is kept and read (default `/terrain/margin`). */ marginCache?: string; } export interface CreateCityResult { out: string; work: string; sceneId: string; revision: string; integrity: string; plan: ScenePlan; compose: ComposeStats; terrain: Omit & { margin?: { triangles: number; bytes: number; cellM: number; marginM: number; demSha256?: string; note?: string; }; }; vegetation: VegetationResult['report']; props: PropsResult['report']; materials: { asphalt: 'cs2' | 'engine'; overridden: string[]; }; roads: { enabled: boolean; source?: 'generated' | 'cs2-baked'; degenerateJunctions?: number; cells: number; renderTriangles: number; colliderTriangles: number; junctions: number; edges: number; bridgePiers?: number; bytes: number; far: { cells: number; triangles: number; trianglesBefore: number; bytes: number; maxErrorM: number; } | null; }; buildings: BuildingsManifest['totals'] & { cells: number; }; packageBytes: number; files: number; perf: ScenePerfReport | null; timingsMs: Record; } /** * The city material library the package carries. A CS2 source is lit by the Granit shell, a much hotter sun and sky than the engine's own city goldens, and the * engine's asphalt read twice as bright there (sunlit mean sRGB 171 against the golden's 85 to 94); `assets/city-materials/cs2-asphalt` is the calibrated * albedo (docs/city-roads-restyle-cs2.md). Plan `materials.asphalt` overrides the source's choice. */ export declare function libraryFor(plan: ScenePlan, projectionKind: string): { library: PackagedCityLibrary; asphalt: 'cs2' | 'engine'; overridden: string[]; }; /** The document material layer (index into the terrain preset's layers) the outer land draws for each of its splat roles. */ export declare function outerLandSplatLayers(): [number, number, number, number]; export declare function createCityScene(options: CreateCityOptions): Promise; export type { CitySource };