import { type DemWindow } from './window'; /** The `terrain/dem.json` sidecar of `helix.city-source/1` (lane city-source's `CityDemMeta`). */ export interface DemLayerMeta { schema: 'helix.city-source-dem/1'; file: string; format: 'r16'; /** [columns, rows] */ samples: [number, number]; metresPerSample: number; originXZ: [number, number]; /** Scene Y metres that raw 0 and raw 65535 stand for (already minus the manifest's originAltitudeM). */ heightRangeM: [number, number]; /** Over the raster bytes. */ sha256: string; note?: string; } export interface DemLayer { meta: DemLayerMeta; r16: Buffer; originAltitudeM: number; } export interface DemLayerFiles { r16Path: string; jsonPath: string; sha256: { r16: string; json: string; }; originAltitudeM: number; heightRange: [number, number]; } export declare const DEM_LAYER_SCHEMA: "helix.city-source-dem/1"; export declare const DEM_RASTER_FILE = "dem.r16"; /** * The window as a city-source terrain layer: little-endian uint16 R16, row 0 north, encoding altitude relative to the window's * floor over `[0, span]` in whole metres (as the terrain-world engine script does), so * `helix terrain import dem.r16 --metres-per-sample N --samples --height-range 0,` reads it back. * Pure and deterministic: the same window gives the same bytes, and dem.json carries no timestamps. */ export declare function encodeDemLayer(window: DemWindow, opts?: { originAltitudeM?: number; }): DemLayer; /** Writes `dir/dem.r16` and `dir/dem.json` for a standalone consumer (the city-source writer writes its own copy). */ export declare function writeDemLayer(window: DemWindow, dir: string, opts?: { originAltitudeM?: number; }): Promise;