import type { Bbox } from '../providers/model'; import type { LngLat } from '../viewpoints/geometry'; import { type TargetImage, type TargetImageDay, type TargetShape } from './targetView'; export type MapillaryMapFeature = { id: string; /** Mapillary value, e.g. `object--traffic-light--general-upright`. */ value: string; lngLat: LngLat; /** ms */ firstSeenAt: number | null; lastSeenAt: number | null; /** Where the object's face points (degrees); traffic it applies to travels the opposite way. */ facing: number | null; /** Ids of the images the feature was derived from (only with `images: true`). */ imageIds: string[]; }; /** One map feature with the ids of all images that show it. */ export declare const fetchMapillaryMapFeature: (featureId: string, signal?: AbortSignal) => Promise; /** Mapillary limit for `bbox` searches: smaller than 0.01° on each side; up to 2000 results. */ export declare const MAPILLARY_BBOX_MAX_DEGREES = 0.01; /** * Map features in a small bbox (Graph API). Unlike the vector tiles this gives `facing`, and * with `images: true` the image ids per feature. `objectValues` accepts wildcards * (`object--traffic-light--*`, `marking--discrete--*`). */ export declare const fetchMapillaryMapFeaturesInBbox: (bbox: Bbox, { objectValues, images, signal, }?: { objectValues?: string[]; images?: boolean; signal?: AbortSignal; }) => Promise; /** Small bbox around a point, e.g. a junction (`radiusMeters` up to ~500). */ export declare const bboxAround: ([lng, lat]: LngLat, radiusMeters: number) => Bbox; export type MapFeatureImages = { feature: MapillaryMapFeature; /** All images that show the feature, with the feature's outline where Mapillary has one. */ images: TargetImage[]; /** Grouped by capture day, newest first, best image first. */ days: TargetImageDay[]; /** Detection id per image id, to highlight that outline in the viewer. */ detectionIdByImageId: Map; }; /** * A map feature with everything needed to show it in photos: all its images with dates and the * outlines Mapillary linked to it (usually only for a few of the images). */ export declare const fetchMapFeatureImages: (featureId: string, { shape, signal }?: { shape?: TargetShape; signal?: AbortSignal; }) => Promise;