import type { RoadSurfaceSet } from '../roads/build'; import type { CitySource } from '../source'; export interface RoadMask { /** True when a tree rooted at `(x, z)` on ground `y` would stand on (or within the clearance of) the road. */ covers(x: number, z: number, y?: number): boolean; /** Texels set, for the report. */ readonly texels: number; } /** Which surfaces a mask draws: the carriageway tops alone, or everything a person or a car stands on. */ export type RoadMaskKind = 'drive' | 'all'; /** * A 1 m raster of the up-facing road surface: the lowest surface height in each texel (decimetres), in 64 m blocks made on demand. * A texel is covered when it, or one of its neighbours within `reachTexels` (the clearance: 1 texel = 1 to 1.5 m; 0 asks only whether the root stands ON the road), holds a surface at the tree's ground level. */ export declare function surfaceRoadMask(surfaces: readonly RoadSurfaceSet[], kind?: RoadMaskKind, reachTexels?: number): RoadMask; /** * The graph's own corridors, for a road no geometry covers: a ground-level edge's carriageway (and, for `all`, its sidewalks) plus `clearanceM`. * A node is a disc as wide as its widest leg, so a junction's middle is covered whatever the solver drew there. */ export declare function corridorRoadMask(source: CitySource, kind?: RoadMaskKind, clearanceM?: number): RoadMask;