import { type CellSink } from './mesh'; import type { EdgeEnd, RNode } from './network'; type LegSlot = 0 | 1 | 2; /** A point of the gore: its plan position and where its height comes from (leg slot, distance from the node along that leg). */ interface Item { p: [number, number]; leg: LegSlot; d: number; } export interface GorePlan { node: RNode; ramp: EdgeEnd; /** The freeway leg on the ramp's side of the node, and the other one. */ lr: EdgeEnd; lo: EdgeEnd; /** Ramp flows away from the node (a diverge) or toward it (a merge). */ diverge: boolean; /** Where the ramp's ribbon starts, in metres from the node. */ uS: number; /** Asphalt polygon of the wedge (and the aux lane's end), in any winding. */ poly: Item[]; /** Outer path of the polygon (barrier on a deck): runs along the side that is not adjacent to the freeway. */ outer: Item[]; eLine: Item[]; fLine: Item[]; chevrons: Array<{ a: Item; b: Item; apex: Item; }>; strip: Array<{ inner: Item; outer: Item; w: number; }>; deck: boolean; surfaceKind: number; seed: number; } /** Looks for the diverge or merge at `node`; null when the node is anything else (the ordinary junction code then handles it). */ export declare function detectGore(node: RNode, why?: Record): GorePlan | null; /** Plan bounds of everything the gore draws, for cell assignment. */ export declare function goreBounds(g: GorePlan): { minX: number; maxX: number; minY: number; maxY: number; }; export declare function emitGore(g: GorePlan, sink: CellSink, noMarkings: boolean): void; export {};