import { type JunctionPlan, type PathPoint } from './junctions'; import type { REdge, RoadNetwork } from './network'; import type { CellSink } from './mesh'; export interface RoundaboutIsland { /** Island boundary, counter-clockwise from above, with ring-road heights. */ ring: PathPoint[]; nodes: string[]; seed: number; } /** Closed cycles of one-way edges whose both ends are roundabout nodes. */ export declare function findRingCycles(net: RoadNetwork): REdge[][]; export declare function buildIslands(net: RoadNetwork, planByNode: Map, driveSide: 'right' | 'left'): { islands: RoundaboutIsland[]; skipped: number; }; export declare function emitIsland(island: RoundaboutIsland, sink: CellSink): void;