import { type Cs2Areas } from '../areas'; import { type Cs2CellOptions } from './roadBake'; /** The same tiling the road layer paves with, so an area and the pavement beside it read as one surface. */ export declare const CS2_AREA_TILE_METRES = 5; /** Ownership polygons covering whole regions of the map: not visual pavement, and the reference drops them too. */ export declare const CS2_AREA_EXCLUDED_PREFABS: RegExp; /** sRGB hex; this step paints areas flat, and a later one may bind textures. */ export declare const CS2_AREA_COLOUR: Readonly>; export declare const CS2_AREA_ROUGHNESS: Readonly>; export interface Cs2AreaMesh { materialName: string; positions: Float32Array; normals: Float32Array; uvs: Float32Array; indices: Uint32Array; } export interface Cs2AreaCell { cx: number; cz: number; meshes: Cs2AreaMesh[]; } export interface Cs2AreaBakeOptions extends Cs2CellOptions { seaLevelMetres: number; } export interface Cs2AreaBake { cells: Map; /** Records that reached a cell: the excluded ownership polygons are not among them. */ baked: number; triangles: number; } /** Buckets every area record by the centroid of its own vertices, then compacts one buffer per material per cell. */ export declare function bakeCs2AreaCells(areas: Cs2Areas, options: Cs2AreaBakeOptions): Cs2AreaBake;