/** * Welds the seams between the node pieces of one node before the bake. * * Two node pieces that meet at a node share the t = 1 line from their common inner corner (the end of curve 1/2) out to * the kerb corner. The game's sync targets put both pieces' kerb columns on the same point of that line — exactly, for * full-span meshes (Granit's ramp-vs-Large Road: 0.644413 against 1 − 0.355587). A PARTIAL strip (a one-way piece whose * mesh stops at its last knot) can miss by 0.1–0.2 m and start its deck outside the neighbour's outer corner, which * reads as a sidewalk tab poking into the ground and a notch at the kerb. Where a partial strip meets a full-span * neighbour along one line, the partial piece's deck-edge knot is moved onto the neighbour's outer corner (inward only) * and its kerb knot onto the neighbour's kerb. Only the partial piece's sync targets change; the deform is untouched. */ import { type Cs2RoadPieces } from '../roadPieces'; import { type Cs2RoadInstance } from './roadBake'; export interface Cs2NodeSeamStats { /** Node pieces whose sync targets were rewritten. */ welded: number; /** Partial-strip sides that found a full-span neighbour along their line. */ pairs: number; } export declare function weldCs2NodeSeams(instances: readonly Cs2RoadInstance[], pieces: Cs2RoadPieces): Cs2NodeSeamStats;