import type { CitySource } from '../source'; export type PlaceId = 'downtown' | 'port' | 'airport' | 'beach' | 'islands'; export interface DerivedPlace { id: string; label: string; x: number; z: number; /** Metres above the ground the view stands at. */ agl: number; yawDeg: number; pitchDeg: number; /** Why this point: the data it came from. */ why: string; } /** A convert.json place: a name for a derived place (`id`), or a new place at `x`, `z`. */ export interface PlaceOverride { id: string; label?: string; x?: number; z?: number; agl?: number; yawDeg?: number; pitchDeg?: number; } export interface CityView { label: string; title: string; x: number; z: number; agl: number; yaw: number; pitch: number; } /** * Land masses of the DEM: 4-connected components of the cells above `dryM`, sampled every `stepM`. Returns every component with its area (cells x step^2) * and the centre of its cells; the biggest is the mainland. */ export declare function landMasses(height: (x: number, z: number) => number, bounds: [[number, number], [number, number]], stepM?: number, dryM?: number): { areaM2: number; x: number; z: number; }[]; /** A landmass is an island of a chain when it is this small (m2) and this big at least (a rock is not a key). */ export declare const ISLAND_MAX_M2 = 4000000; export declare const ISLAND_MIN_M2 = 3000; /** The group of islands is read in squares of this side. */ export declare const ISLAND_CELL_M = 1500; /** Fewer islands than this in the best group is not an archipelago, so there is no `islands` place. */ export declare const MIN_ISLANDS_FOR_PLACE = 5; export declare function derivePlaces(source: CitySource, overrides?: readonly PlaceOverride[]): DerivedPlace[]; /** The shell's `city-views.json`: `{ views }`, each a camera at `agl` metres over the place (worldData.ts `parseCityViews`). */ export declare function cityViewsFile(places: readonly DerivedPlace[]): { views: CityView[]; };