import { type P2, type Station } from './geom'; import { type GroundHeight } from './elevation'; import type { REdge } from './network'; import { type CellSink, type Vtx } from './mesh'; export declare const wn: (v: P2) => [number, number, number]; export declare const UP: [number, number, number]; export interface CrossSection { s: number; h: number; st: Station; /** Left / right kerb lines (carriageway edge), and the outer edge of the left / right sidewalk. All in the map frame. */ Lk: [number, number]; Rk: [number, number]; Lo: [number, number]; Ro: [number, number]; } /** * The width of the sidewalk or median strip on one side at arclength s. A median follows the gap measured along the edge, so * two carriageways that converge or part never overlap their half-medians; anything else is the edge's constant width. */ export declare function sideWidthAt(e: REdge, s: number, side: 'left' | 'right'): number; export declare function crossSection(e: REdge, s: number): CrossSection; /** Station arclengths along [s0, s1]: every real bend, tight spacing on curves, loose on straights, plus vertical-curve samples. */ export declare function stationList(e: REdge, s0: number, s1: number): number[]; export declare function road(kind: number, lateral: number, lanes: number, wear: number): [number, number, number, number]; export declare function v3(p: P2, h: number, n: readonly [number, number, number], r: readonly [number, number, number, number]): Vtx; /** A point `u` metres to the left (negative: right) of the centreline at a cross-section, in the map frame. */ export declare function offsetPoint(c: CrossSection, u: number): [number, number]; /** The barrier along a deck edge: its profile and foot width for an edge's family. */ export declare function barrierFor(e: REdge): { profile: ReadonlyArray; width: number; }; /** * Sweeps a barrier profile along one span of a deck edge. `outerA`/`outerB` are the deck-edge points (where the barrier foot * starts) at the two stations, `outA`/`outB` the unit plan directions pointing away from the road there. Faces carry the * profile's own normals (inner face toward the road, top up, outer face away). */ export declare function sweepBarrier(sink: CellSink, profile: ReadonlyArray, outerA: P2, outerB: P2, outA: P2, outB: P2, hA: number, hB: number, wear: number): void; export interface RibbonResult { /** Stations used, so markings and colliders can follow the same samples. */ stations: number[]; } /** Emits one edge's ribbon between its setbacks. */ export declare function emitEdgeRibbon(e: REdge, sink: CellSink): RibbonResult; /** * Piers under a deck every 30 m where the deck is high enough above the ground to need one: one column (two under a deck wider * than 14 m) carrying a bent cap, a crossbeam as wide as the deck, between the columns and the girders. */ export declare function emitBridgePiers(e: REdge, sink: CellSink, ground: GroundHeight): number;