import { type Cs2WaterField } from '../../../cs2/water'; import { type CityWater, type WaterKind } from '../../source'; import type { Frame } from './frame'; import type { RefusalLog } from './refusals'; export interface WaterStats { wetCells: number; bodies: number; rows: number; kinds: Record; totalKm2: number; /** Surface area (km2) per kind. */ areaKm2: Record; /** Dry channels given water (dryChannels.ts): count, cells, and candidates turned down by rule. */ channels?: { count: number; cells: number; refused: Record; }; } export interface WaterOptions { /** Test and tuning hook for `buildWaterSurfaces`. */ waterTuning?: Partial; /** A cell counts as wet from this depth (metres). */ minDepthM?: number; /** Bodies under this area are ponds too small to model. */ minAreaM2?: number; simplifyM?: number; /** The imported road graph (scene frame): at-grade carriageways mark trenches that are roads, not dry channels. */ roads?: ReadonlyArray<{ pts: ReadonlyArray; widthM?: number; structure?: string; }>; /** Off: draw only CS2's simulated water (no dry-channel fill). */ dryChannels?: boolean; } /** Classify a body by its shape. `meanWidthM` is twice the area over the perimeter (the half-width of a band). */ export declare function waterKind(input: { areaM2: number; perimeterM: number; touchesEdge: boolean; }): WaterKind; export declare function importWater(bundle: string, frame: Frame, /** Ground height (CS2 absolute metres) under a point, for each body's surface level. */ groundAbsolute: ((x: number, z: number) => number) | null, refusals: RefusalLog, options?: WaterOptions): Promise<{ water: CityWater[]; stats: WaterStats; }>; export declare function buildWater(field: Cs2WaterField, frame: Frame, groundAbsolute: ((x: number, z: number) => number) | null, refusals: RefusalLog, options?: WaterOptions): { water: CityWater[]; stats: WaterStats; };