import type { CityWater } from '../source'; /** The CS2 importer's own bar for `sea`; a smaller `sea` body (an OSM harbour or bay) is a lake-sized feature, not the open sea. */ export declare const OPEN_SEA_MIN_AREA_M2 = 20000000; /** How far the sea box reaches past the terrain's XZ footprint. */ export declare const SEA_APRON_M = 4000; /** How far below the surface the sea box reaches. */ export declare const SEA_DEPTH_M = 80; export interface CitySea { /** Scene Y of the water surface: the largest sea body's own `levelM` (the frame is sea level, so 0 unless the source says otherwise). */ surfaceHeightM: number; } /** The open sea a source declares, or null when its water layer holds none (then the scene carries no sea node). */ export declare function citySeaFromWater(water: readonly CityWater[] | undefined): CitySea | null; /** A pond or lake smaller than this is a puddle the splat's sand already reads as; it gets no water volume. */ export declare const INLAND_WATER_MIN_AREA_M2 = 300; /** How far below its surface an inland body's box reaches; the terrain above the bed hides the rest. */ export declare const INLAND_WATER_DEPTH_M = 12; /** The box reaches this far past the body's ring so the water meets the bank. */ export declare const INLAND_WATER_PAD_M = 4; /** A body whose bounding box is more than this many times its own area is a winding river: one flat box at its level would flood the banks around its bends, so it gets none. */ export declare const INLAND_WATER_MAX_BBOX_RATIO = 8; /** At most this many inland volumes, largest first (every one is resident from the start). */ export declare const INLAND_WATER_MAX = 1200; /** * A converted Cities: Skylines II map's inland water: its lakes, ponds, canal and the river and marsh reaches above the sea, all drawn by the * scene's water boxes. With no appearance of their own every box took the manifest's portable default, a pool cyan (#2f9fbd) at 0.55 opacity * over a bed the splat paints as sand: Pacifica's downtown lake read saturated cyan (pose 23 median sRGB 65 / 147 / 156) where the game shows * a dark green body (24 / 59 / 40), and the lake below pose 15 the same. The game draws all its water with one material (a water colour and a * short absorption distance; the capture carries depth only, no pollution), so every inland box gets one dark green-teal, nearly opaque. * Picked by an in-page A/B on the live World at the reference poses (pacifica-water, 2026-10-25): #142b23 at 0.92 lands pose 23 on 25 / 60 / 40. */ export declare const CS2_INLAND_WATER: { readonly color: "#142b23"; readonly opacity: 0.92; }; export interface CityInlandWater { id: string; /** Scene Y of the water surface: the body's own `levelM`. */ surfaceHeightM: number; /** Plan box, scene metres: [minX, minZ, maxX, maxZ]. */ box: [number, number, number, number]; /** Scene Y the volume reaches down to; absent: `INLAND_WATER_DEPTH_M` below the surface. */ floorM?: number; } /** A water box no thicker than this across the map edge it sits on is the game's edge cell, not a body (see `isMapEdgeSliver`). */ export declare const MAP_EDGE_SLIVER_M = 16; /** * A surface box that hugs the map's edge and is no thicker than `MAP_EDGE_SLIVER_M` across it. CS2 cuts its water per cell, and * the outermost cells of the sea and of rivers leaving the map are 8 m strips on the border line itself, at the level the game's * water piles to at the edge (1.4 m to 11.6 m above the sea on Pacifica: 83 of them). Drawn, they were flat cyan bands floating * on the sea along the border, a ruled line from any height (Jack, 2026-10-22). The sea or the river inside reaches the edge * without them. */ export declare function isMapEdgeSliver(box: readonly [number, number, number, number], bounds?: readonly [readonly [number, number], readonly [number, number]]): boolean; /** * The open sea's own water is cut per cell like every body's, and where the sea is deep the cell levels are noise: Granit's sea body carries 8,359 * surfaces at +1 m to +15 m (CS2 stores a depth raster, and over a steep sea floor ground + depth wanders by metres around the datum). Drawn as boxes * they float on the sea as cyan slabs (build 25's coast, rolled back). A surface of the open sea is not drawn when * - nothing holds it: no ground at its own level within `SEA_SURFACE_BANK_M` of its box (a real reach lies in a channel whose banks stand at its level, * Granit's southern river at +6 m between 13 m banks), or * - it stands no more than `SEA_NOISE_MAX_M` above the datum over ground more than `SEA_NOISE_GROUND_M` under it: that is the sea at its own level, already * drawn by the sea volume. */ export declare const SEA_SURFACE_BANK_M = 200; export declare const SEA_NOISE_MAX_M = 1.5; export declare const SEA_NOISE_GROUND_M = 2; export declare function isOpenSeaNoise(box: readonly [number, number, number, number], levelM: number, datumM: number, groundAt: (x: number, z: number) => number): boolean; /** * The ponds, lakes and compact river reaches of a source's water layer. The splat paints every water body's bed as sand, so a body with no * water volume of its own reads as a bare sand patch inland (Pacifica's downtown pond, 18.8 m above the sea). Each qualifying body becomes one * `water.volume` box over its ring's bounding box at its own level: the terrain around it is above the surface, so the box shows water only * where the ground is below the level, which is the body. */ export declare function cityInlandWater(water: readonly CityWater[] | undefined, bounds?: readonly [readonly [number, number], readonly [number, number]], groundAt?: (x: number, z: number) => number): CityInlandWater[]; /** A piece of the open sea's own surfaces smaller than this, standing above the datum over sea floor, is a fragment (see `openSeaFragments`). */ export declare const SEA_FRAGMENT_MAX_M2 = 2000; /** * The open sea's per-cell surfaces that are left over as small isolated pieces above the datum over sea floor: Granit's harbour basins kept * 1 to 2 cell pieces at +4.5 m over ground 25 to 50 m under the sea (each held by a quay within 200 m, so `isOpenSeaNoise` kept them), drawn * as small cyan squares floating on the harbour (owner acceptance 2026-10-23). A real reach is a connected run of cells (Granit's rivers: * 200 to 255 cells, 0.3 km2 each); a piece of under `SEA_FRAGMENT_MAX_M2` whose ground lies under the datum is the sea itself, already drawn * by the sea volume at its own level. Returns the ids to drop. Inland bodies (lakes, Pacifica's canal, Leonida's 246) are never touched. */ export declare function openSeaFragments(entries: ReadonlyArray<{ id: string; surfaceHeightM: number; box: readonly [number, number, number, number]; openSea?: boolean; }>, datumM: number, groundAt: (x: number, z: number) => number): Set;