import { type CityPoi, type CitySource, type RoadEdge, type Vec2 } from '../source'; export interface StreetEdge { edge: RoadEdge; hw: number; length: number; cum: number[]; } /** Ground-level streets: the edges a tree or a lamp can stand beside (no bridge, tunnel, embankment, ramp or raised layer). */ export declare function groundStreets(source: CitySource, classes?: ReadonlySet): StreetEdge[]; /** The point at arclength `s` along an edge and its unit tangent. */ export declare function alongEdge(street: StreetEdge, s: number): { p: Vec2; t: Vec2; }; /** Buildings counted per 64 m bucket (by footprint centre): how built-up the neighbourhood of a point is. */ export declare class BuildingDensity { private readonly cell; private readonly counts; constructor(source: CitySource, cell?: number); /** Buildings in the 3 x 3 buckets around `p` (about 192 m square). */ at(p: Vec2): number; } /** Land use at a point: the first area that holds it, by bucket. */ export declare class LandUse { private readonly cell; private readonly buckets; constructor(source: CitySource, cell?: number); /** Kinds that hold `p`, smallest-first is not needed: a park inside a commercial block is reported before it. */ kindAt(p: Vec2): string | null; } export interface StreetTreeSpot { id: string; x: number; z: number; } export interface StreetTreeOptions { bounds: [Vec2, Vec2]; /** Points that keep a tree away (the source's own trees, street props): [x, z, radius]. */ avoid?: Array<[number, number, number]>; } /** Trees along the sidewalks of ground-level streets, clear of junctions, carriageways, decks, buildings and each other. */ export declare function planStreetTrees(source: CitySource, options: StreetTreeOptions): { spots: StreetTreeSpot[]; byClass: Record; rejected: Record; }; export interface StreetPropOptions { bounds: [Vec2, Vec2]; log?: (line: string) => void; } /** Buildings in the 192 m around a point above which a street counts as downtown. */ export declare const DOWNTOWN_BUILDINGS = 36; /** * Extra street furniture for the arterials, as POIs a mapped one would be: lamps everywhere on arterials, hydrants and bins along dense * streets, benches and signs where the buildings are dense, signals at the junctions of two arterials. A kind the source already maps * nearby is not doubled. */ export declare function generateStreetProps(source: CitySource, options: StreetPropOptions): CityPoi[];