import type { CitySource } from '../source'; import { type ConformedTerrain } from '../terrain'; import { type RoadBuildReport, type RoadCell } from '../roads'; import type { FarLayerResult } from '../../cs2/restyle/far'; import type { RoadSurfaces } from '../../cs2/restyle/terrainCarve'; import type { RoadSurfaceSet } from '../roads'; export interface SceneRoads { cells: RoadCell[]; /** The ground with the roads cut and filled into it, and the per-sample road roles; null when the terrain is not a DEM. */ conformed: ConformedTerrain | null; report: RoadBuildReport; /** The far road layer (`src/city/roads/far.ts`): the driving surface of every cell, welded and simplified, in 2,048 m cells; null when `far` was off. */ far: FarLayerResult | null; /** The up-facing road surface (carriageway, sidewalk and median tops) of every cell in world metres, for the LOD terrain carve; null when the ground is not a DEM. */ carveSurfaces: RoadSurfaces | null; /** The up-facing road surface of every cell, for what must stay off the road (trees). */ surfaces: RoadSurfaceSet[]; } /** The up-facing triangles of every cell's carriageway and pavement primitives, merged into one world-space triangle set (unused vertices dropped). */ export declare function upFacingRoadSurfaces(sets: readonly RoadSurfaceSet[]): RoadSurfaces; export interface SceneRoadsOptions { /** The game's own roads (`src/city/roads/baked.ts`) instead of the generator's. */ baked?: string; log?: (line: string) => void; /** Build the far road layer (default true). */ far?: boolean; /** Far layer simplifier tolerance, metres (default 0.3). */ farErrorM?: number; } /** Null when the source has no road graph (a city without streets still assembles). */ export declare function buildSceneRoads(source: CitySource, metresPerSample: number, options?: SceneRoadsOptions): Promise;