import { type RestyleReport } from '../restyle/restyle'; export interface BakeAndRestyleOptions { colliderMaxTriangles?: number; /** Triangles above which a render cell is split into quarters (`restyleCs2Roads` `cellMaxTriangles`). */ cellMaxTriangles?: number; /** Tolerance in metres for simplifying the concrete structure of each render cell (`restyleCs2Roads` `structureErrorM`). */ structureErrorM?: number; /** Tolerance in metres for simplifying the drivable and walkable surfaces of each render cell (`restyleCs2Roads` `surfaceErrorM`). */ surfaceErrorM?: number; keepBake?: boolean; /** The sea level the city source was cut with. Default: the same resolution the importer makes (`water.json`, or the surface the water field shows when that lies outside the terrain: Leonida declares 15 and is at 521.9). */ seaLevelMetres?: number; log?: (line: string) => void; } export interface BakeAndRestyleResult { bundle: string; /** Composition instances baked (edge, start-node and end-node parts of every drawn edge). */ instances: number; seaLevelMetres: number; restyle: Pick; } /** * Writes `/roads/` (the restyled render, paint and collider cells and their `mesh-cells.json`) and, with `keepBake`, `/bake/`. * The bake needs a terrain grid only for the datum rule; the decks keep CS2's own heights (`conformTerrain`), so the grid is a throwaway. */ export declare function bakeAndRestyleCs2Roads(bundleRoot: string, out: string, options?: BakeAndRestyleOptions): Promise;