/** * Decorations: shapes the engine derives from a layer's objects and draws with it, in engine-owned layers next to * it (doc 28 G2, G9, G12): position error areas, unresolved alternatives, range rings, camera footprints. They are * plain polygons, lines and points, so every renderer draws them with what it already has. They follow their * objects (rebuilt with each change of the layer), and a click on one selects the object it belongs to. */ import type { FootprintConfig, Geometry, MapLayer, Position, SpatialObject } from '../core/types.js'; /** Engine layer ids are `__deco~~`; the part says what it draws. */ export declare const DECO_PREFIX = "__deco~"; declare const PARTS: readonly ["footprint", "uncertainty", "alt-lines", "alt-points", "rings"]; type Part = (typeof PARTS)[number]; export declare const decoLayerId: (layerId: string, part: Part) => string; /** The application layer and object a decoration belongs to (for picking), or null for any other layer. */ export declare function decorationOwner(layerId: string, objectId: string): { layerId: string; objectId: string; } | null; /** The engine layers a layer's decorations need (none when it has no decoration options). */ export declare function decorationLayers(layer: MapLayer): MapLayer[]; export declare const formatDistance: (m: number) => string; /** The ground area a camera sees (FootprintConfig); null without a heading. */ export declare function footprintOf(f: FootprintConfig, at: Position, props: Record | undefined): Geometry | null; /** Decoration objects per engine layer, for a layer's (presented) objects. */ export declare function decorationObjects(layer: MapLayer, objects: SpatialObject[]): Record; export {};