/** Water deeper than this is open water; shallower cells follow the shore slope and say little about the surface. */ export declare const SEA_LEVEL_MIN_DEPTH_M = 3; /** The surface height is read from the mode of ground + depth in bins this tall. */ export declare const SEA_LEVEL_BIN_M = 0.1; /** Fewest open-water samples that count as evidence for a surface. */ export declare const SEA_LEVEL_MIN_SAMPLES = 500; export interface SeaLevelResolution { declared: number; used: number; source: 'declared' | 'derived-from-water-field'; /** The surface the field shows (mode of ground + depth), when it could be measured. */ derived: number | null; samples: number; } /** The pure decision: the declared level, unless it lies outside the terrain and the field shows a surface. */ export declare function chooseSeaLevel(input: { declared: number; terrainMin: number; terrainMax: number; surfaceSamples: Iterable; }): SeaLevelResolution; /** Reads the bundle's water field and terrain and resolves the level. A bundle with no water field keeps its declared level. */ export declare function resolveSeaLevel(bundle: string, declared: number): Promise;