import type { CityAreas as AreasLayer, CityBuilding as Building, CityPoi as Poi, RoadGraph as RoadsLayer } from '../../source'; import type { P2 } from './geom'; export interface PreviewInput { boundsXZ: [P2, P2]; roads: RoadsLayer; buildings: Building[]; areas: AreasLayer; pois: Poi[]; /** Scene Y (metres above the origin altitude) at scene x, z; omitted, the ground is drawn flat. */ heightAt?: (x: number, z: number) => number; /** Longest edge in pixels; the design caps previews at 1000. */ size?: number; caption?: string; /** `terrain` draws the ground and water with thin roads only, so relief is legible under a dense city. */ mode?: 'plan' | 'terrain'; } export declare function renderPreview(input: PreviewInput): Promise;