import { type RoadGraph } from '../../source'; import { type Frame } from './frame'; import type { RefusalLog } from './refusals'; export interface RoadStats { csEdges: number; csNodes: number; edges: number; nodes: number; lanesTotal: number; lanesUsed: number; classes: Record; structures: Record; oneway: number; flipped: number; controls: Record; lengthKm: number; /** Nodes placed from the tangent intersection, from the mean of the edge ends, or from a single end. */ nodePlacement: { intersection: number; mean: number; single: number; }; /** Largest distance (m) from an edge end to its node, p99 and max. */ stub: { p50: number; p99: number; max: number; }; connectivity: { components: number; largestComponentNodes: number; /** Components of the output graph that CS2 joins to another output component, only through edges this import refused. */ joinedOnlyByRefusedEdges: number; }; driveSide: { rightHand: number; leftHand: number; inferred: 'right' | 'left' | null; }; roadsDir: string; } /** The roads folder to read: `roads-v3` (edge surfaces) when the bundle has it, else `roads`. */ export declare function chooseRoadsDir(bundle: string): string; export declare function importRoads(bundle: string, frame: Frame, /** Scene-Y ground height at (x, z), for the bridge and tunnel heuristic (src/cs2/convert/roadBake.ts uses the same 6 m rule). */ groundY: ((x: number, z: number) => number) | null, refusals: RefusalLog): Promise<{ graph: RoadGraph; stats: RoadStats; }>;