import { type HeightGrid } from './grid'; import type { TerrainPreset } from './presets'; export interface IslandOptions { seed?: number; level?: number; shelfDepth?: number; } /** Derive a closed coast inside the source footprint; the source and the interior samples remain untouched. */ export declare function deriveIsland(source: HeightGrid, options?: IslandOptions): HeightGrid; /** Preserve the original absolute snow/altitude rules after adding a submerged shelf; sand occupies the shore. */ export declare function islandPreset(preset: TerrainPreset, original: HeightGrid, island: HeightGrid, level?: number): TerrainPreset; export interface OceanBathymetry { version: 1; width: number; height: number; origin: [number, number]; span: [number, number]; heightRange: [number, number]; level: number; sha256: string; } export interface OceanBathymetryOptions { /** Names the wet ground itself, in world metres; the boundary-connected flood fill is skipped when it is given. */ wet?: (x: number, z: number) => boolean; /** * Height resolution in metres. The 16-bit height is 2 mm over the 128 m range, and a DEM resampled to 2 sample metres is noise in its low * byte: that byte is 2.7 of the file's 6.6 MB gzipped (Pacifica, 2026-10-25) and the file is fetched before the reveal on every tier * (about 6 s of a phone's load at 9 Mbps). Heights are rounded to a multiple of this around the surface level, so the surface itself * stays exactly representable. Omitted, every sample keeps the full 2 mm. */ heightStepM?: number; } /** R/G = high/low height bytes, B = boundary-connected ocean, A = distance to dry ground (0..32 m). * A <= 2 m grid stays resident, so a streaming terrain LOD does not change the shoreline. Maximum 16.1 MiB. */ export declare function bakeOceanBathymetry(grid: HeightGrid, level?: number, spacing?: number, options?: OceanBathymetryOptions): { info: OceanBathymetry; bytes: Uint8Array; };