import { type FarLayerResult, type FarSourceCell } from '../../cs2/restyle/far'; import type { RoadSurfaceSet } from './build'; /** The carriageway kinds the generator writes into its asphalt primitive. Kerbs, sidewalks and medians live in the other primitive. */ export declare const ROAD_FAR_SURFACES: readonly number[]; export interface RoadFarOptions { /** Simplifier tolerance, metres (default `FAR_ERROR_M`, 0.3). */ errorM?: number; } /** The road generator's per-cell driving surfaces as far-layer source cells: cell-local positions, the up-facing triangles of the carriageway. */ export declare function roadFarSourceCells(surfaces: readonly RoadSurfaceSet[]): FarSourceCell[]; /** Null when the roads hold no driving surface. Deterministic: the same surfaces give the same bytes. */ export declare function buildRoadFarLayer(surfaces: readonly RoadSurfaceSet[], options?: RoadFarOptions): Promise;