export type MapillaryDetection = { id: string; /** Mapillary value, e.g. `construction--flat--bike-lane`, `regulatory--bicycles-only--g1`. */ value: string; imageId: string; /** Outline in image ("basic") coordinates, `[0, 0]` top left to `[1, 1]` bottom right. */ outline: [number, number][]; }; /** * Outline of a detection: the API's `geometry` is a base64 vector tile (layer `mpy-or`) in image * coordinates. Returns an empty outline for data that cannot be decoded. */ export declare const decodeDetectionOutline: (geometry: string) => [number, number][]; /** * Everything Mapillary detected in an image (often ~500 outlines: road, cars, trees …). * Pass `filter` to keep only the values you show, e.g. bike lanes and markings. */ export declare const fetchImageDetections: (imageId: string, { filter, signal }?: { filter?: (value: string) => boolean; signal?: AbortSignal; }) => Promise; /** The detections a map feature was derived from: one outline per image that has one. */ export declare const fetchMapFeatureDetections: (featureId: string, signal?: AbortSignal) => Promise;