export declare const CITY_MATERIALS_GLTF_EXTENSION = "HELIX_materials_city"; export declare const ROAD_ATTRIBUTE = "_ROAD"; export declare const LATTICE_PER_M = 60; export declare const SURFACE_FALLBACK_LINEAR: Readonly>; export interface CellMeshInput { /** Cell-local metres (0 to 1,024 on x and z): the node translation is added back by the reader. */ positions: Float32Array; normals: Float32Array; indices: Uint32Array; /** `_ROAD` bytes, four per vertex. */ road: Uint8Array; /** `COLOR_0` bytes, four per vertex. */ colour: Uint8Array; /** Atlas UVs in 0..1, two per vertex (markings only). */ uvs?: Float32Array; } export interface CellGlbResult { bytes: Uint8Array; triangles: number; vertices: number; /** World bounds of the lattice-snapped geometry, which is what the file really holds. */ bounds: { min: [number, number, number]; max: [number, number, number]; }; } /** Marks the material with the extension. gltf-transform has no model of `HELIX_materials_city`, so the JSON chunk is patched. */ export declare function patchCityMaterialExtension(glb: Uint8Array, kinds: readonly string[]): Uint8Array; /** * One mesh with one primitive (`asphalt` or `markings`). `origin` is the cell's world corner on x and z; `name` names the * node. Every vertex snaps to the 1/60 m lattice, so a border vertex that sits on a cell plane (a multiple of 1,024 m, * hence of the lattice step) lands on the same point in both neighbours. */ export declare function writeCityCellGlb(name: string, kind: 'asphalt' | 'markings', origin: readonly [number, number], mesh: CellMeshInput, latticePerM?: number): Promise;