import type { PlaceOverride } from './districts'; export declare const CONVERT_CONFIG_SCHEMA: "helix.city-convert/1"; export type ConvertTier = 'desktop' | 'mobile'; export interface ConvertSpawn { x: number; z: number; /** Rotation about Y in degrees (0 faces -z). Omitted: along the street. */ yawDeg?: number; /** Metres around the spawn kept free of trees. */ clearM?: number; } export type ContentRating = 'everyone' | 'teen' | 'mature' | 'adult'; export interface ConvertConfig { schema: typeof CONVERT_CONFIG_SCHEMA; /** Scene root name and World slug base (`leonida` gives `leonida-c1` and `leonida-mobile-c1`). */ name: string; title: string; description?: string; /** City id written into the city source (default `city.cs2-`). */ cityId?: string; /** Import only this window of the CS2 world, in scene metres. */ bounds?: [number, number, number, number]; /** Omitted: the stage `spawn` picks a clear street-level point near the densest downtown. */ spawn?: ConvertSpawn; /** Names for the derived places (`districts.ts`: downtown, port, airport, beach, islands) or places only a person knows: `{ id, label?, x?, z? }`. */ places?: PlaceOverride[]; tiers: ConvertTier[]; /** Desktop stream radius of the landscape (m). 1024 keeps the road network and terrain loaded to the far road layer, as Granit does; the phone root overrides it (384). */ streamRadiusM: number; /** * The phone root's stream radius (m), when the profile's 384 m draws too much. P06 counts every road cell and paint layer a camera cell keeps resident, * and a dense downtown over a long road network (Pacifica: 155 draws at 384 m, 143 at 300 m) crosses the 150-call phone limit. Absent: the profile's * radius; the runner lowers it by itself and reruns from the phone compose when the perf gate refuses on P06 (`PHONE_RADIUS_FALLBACK_M`). */ phoneStreamRadiusM?: number; /** * The phone root's skyline atlas edges (px: base colour, normal, ORM), when the bake's atlas is bigger than a phone should download before its first * frame. The compose cuts mip levels off the KTX2 atlas (no re-encode), so the edges must be powers of two at or under the baked ones. Absent: the * profile's guard (SKYLINE_ATLAS_CAP, 2048 / 1024 / 1024), which leaves a normal bake exactly as baked. Granit's phone numbers are `[1024, 512, 512]`. */ phoneSkylineAtlas?: [number, number, number]; /** * City-material library slots whose top mip levels the phone root's copy of the library drops (`{ "wallsNrm": 1, "asphaltNrm": 1, "sidewalkNrm": 1 }`: * the three normal maps one level down, 1.4 MB less before the first frame; src/cs2/convert/phoneLibrary.ts). Absent: the library as built. */ phoneLibraryCuts?: Record; /** * The placement objects' textures (trees, palms, props under `placements/objects/`) whose top mip levels the phone root's copy drops * (`{ "models": 1 }`: the colour-only model textures one level down, ~1.4 MB less before the first frame on Pacifica; `atlases` does the same to the * distant-tree impostor atlases; `minEdge` is the smallest short side, px, a cut may leave, default 256). Textures a material samples as data are never * cut. src/cs2/convert/phoneObjectTextures.ts. Absent: the textures as built. */ phoneObjectTextureCuts?: { models?: 1 | 2; atlases?: 1 | 2; minEdge?: number; }; /** * Halvings of the phone root's coarse terrain normal map (`terrain/coarse.normal.png`; 1 = a 2048 px map becomes 1024, 2.2 -> ~0.6 MB before the first * frame on Pacifica). The tiles' own normal maps and the splat are untouched; the engine samples the map by the tile UV and takes its size from the * image. src/cs2/convert/phoneTerrainNormal.ts. Absent: the map as built. */ phoneTerrainNormalCut?: 1 | 2; /** * Halvings of the phone root's coarse terrain splat map (`terrain/coarse.splat.png`, the four layer weights per pixel; 1 = 2048 px becomes 1024). Each * 2 x 2 block's weights are averaged and stay summing to 255. Far-terrain blends soften from ~7 m to ~14 m per texel; the tiles' own splats are untouched. * src/cs2/convert/phoneTerrainSplat.ts. Absent: the map as built. */ phoneTerrainSplatCut?: 1 | 2; terrain: { /** 4 m is what the engine's stride ladder (4/8/16/32 m) is cut from. */ metresPerSample: 1 | 2 | 4; /** Copernicus margin ring: real-world terrain, wrong for a fictional CS2 map, so off. */ marginM: number; /** * Metres of ground beyond the border that slope under the sea (`terrain.seaEdgeM`): without it the square map ends in a hard-edged slab * above the water. 0 turns it off. Costs one eager 64 m-lattice mesh (about 65,000 triangles at 2,048 m). */ seaEdgeM: number; /** `natural`: a CS2 map only maps its lots, so unmapped land is grass and shore sand, not pavement. */ ground: 'natural' | 'urban'; /** CS2 height maps carry bogus land along the border that the coarse layer extrudes as a hard rectangle. */ demEdgeRepair: number; }; /** * `auto`: the game's own road geometry (`city roads bake-cs2`: junctions, ramps and decks as CS2 solved them) when the bundle carries `road-pieces/`, * else the generator. `generated` forces the generator (a centre-line graph, junctions guessed); `baked` refuses a bundle without road pieces. */ roads: 'auto' | 'baked' | 'generated'; vegetation: { /** `source`: every tree the map has (the default 16,000 cap read as bare on a 292,028-tree map). */ maxTrees: 'source' | number; }; buildings: { /** `auto`: real prefab meshes when the bundle has them, else procedural masses. */ meshes: 'auto' | 'real' | 'masses'; /** Prototype builds run as this many parallel processes per tier. */ shards: number; }; colliders: { /** Building boxes inline in the root document (a document near its memory cap cannot afford the mount). */ inline: boolean; }; /** `upload` is present only for a run asked to publish (`--publish`): see publish.ts. */ publish: { visibility: 'private' | 'unlisted' | 'public'; world: string | null; upload?: { remote?: string; cdnBase?: string; tag?: string | null; engine?: string | null; thumbnail?: string | null; contentRating?: ContentRating | null; }; }; } export declare function defaultConvertConfig(name: string): ConvertConfig; /** The radii the runner tries, in order, when the phone perf gate refuses on P06 (draw calls). */ export declare const PHONE_RADIUS_FALLBACK_M: readonly number[]; export declare function validateConvertConfig(config: ConvertConfig, where?: string): ConvertConfig; /** Defaults, then the file on top (one level of merge per group), then validation. */ export declare function resolveConvertConfig(name: string, file?: string, overrides?: Partial>): ConvertConfig;