import type { BuildingUse, CityAreas, CityBuilding, CitySourceDefaults, Vec2 } from '../source'; import type { GroundModel } from './ground'; import type { BuildingPlan, BuildingsStats } from './model'; /** A near level draws the box unless it explains less of the footprint than this (Parallel City `NEAR_IOU_MIN`). */ export declare const NEAR_IOU_MIN = 0.96; export declare const MAX_SKELETON_VERTICES = 16; /** Walls start this far below the seat so terrain seams never show daylight. */ export declare const SKIRT_M = 0.4; type Region = Record; /** Levels drawn per use: [min, max]. The draw is deterministic in (id, use, area, land use). */ export declare const REGION_PRESETS: Record; export declare class LandUseIndex { private readonly buckets; private static readonly SIZE; constructor(areas: CityAreas | undefined); kindAt(p: Vec2): 'residential' | 'commercial' | 'industrial' | null; } export interface PlanContext { ground: GroundModel; defaults: CitySourceDefaults; landUse: LandUseIndex; cellM: number; stats: BuildingsStats; } /** Levels for a building with no height information: a deterministic draw in the region table, nudged by footprint area. */ export declare function drawLevels(id: string, use: BuildingUse, areaM2: number, region: string): number; export declare function heightFromLevels(levels: number, use: BuildingUse): number; export declare function planBuilding(b: CityBuilding, ctx: PlanContext): BuildingPlan | null; export declare const CELL_M = 256; export {};