import { type SceneTerrainMaterial, type SceneTerrainMaterialRole } from '@hypersoniclabs/helix-manifest'; export declare const TERRAIN_PRESET_IDS: readonly ["meadow", "alpine", "desert", "coast", "forest", "volcanic"]; export type TerrainPresetId = (typeof TERRAIN_PRESET_IDS)[number]; /** * One role's distribution rule. `slope` and `height` are ramps, so a descending pair (`[0.1, 0]`) is how a role that * belongs at the BOTTOM of the terrain is authored; `curvature` is a band, soft at both ends. */ export interface TerrainPresetRule { /** Degrees. `smoothstep(lo, hi, slopeDeg)`, or its complement when `flat` is set. */ slope?: [number, number]; flat?: boolean; /** 0..1 over the whole terrain's height range, not the tile's. */ height?: [number, number]; noiseMetres?: number; noiseAmt?: number; /** Metres^-1, as `curvature()` reports it: negative is a cavity, positive a crest. */ curvature?: [number, number]; maxWeight?: number; } /** The document's material block plus the bake rules; only the block reaches the scene document. */ export type TerrainPreset = SceneTerrainMaterial & { rules: Partial>; }; export declare function isTerrainPresetId(value: string): value is TerrainPresetId; /** A built-in preset id, or a path to a creator's preset JSON file. */ export declare function loadPreset(idOrPath: string): TerrainPreset; export declare function validateTerrainPreset(value: unknown, label?: string): TerrainPreset; /** The block the scene document carries: the preset without its bake rules. */ export declare function terrainMaterialFromPreset(preset: TerrainPreset): SceneTerrainMaterial;