import type { Feature, FeatureCollection, Polygon } from 'geojson'; import type { Bbox, NormalizedPhoto } from '../providers/model'; /** Narrow heading wedge for flat (directional) photos — iD-style viewfield. */ export declare const FLAT_VIEWFIELD_FOV_DEG = 55; /** Full disk for 360° / equirectangular photos. */ export declare const PANO_VIEWFIELD_FOV_DEG = 360; /** Viewfields only make sense (and stay cheap) when zoomed in on a few streets. */ export declare const VIEWFIELD_MIN_ZOOM = 17; /** * View shapes are sized in half-zoom steps: sizes barely change in between, so the shapes of one * step can be kept while the map zooms within it. */ export declare const viewfieldZoomStep: (zoom: number) => number; /** Upper bound of viewfield polygons per provider; dense areas would otherwise freeze the map. */ export declare const VIEWFIELD_MAX_FEATURES = 1500; /** Lightweight triangle wedge (apex + left/right rays) for dense coverage layers. */ export declare const flatViewfieldTriangle: (lngLat: [number, number], bearingDeg: number, fovDeg: number, radiusMeters: number) => Feature; export type ViewfieldOptions = { /** Only photos inside this bbox (providers load whole tiles, far beyond the viewport). */ bbox?: Bbox | null; /** Newest photos win when there are more. Default `VIEWFIELD_MAX_FEATURES`. */ maxFeatures?: number; }; export type ViewfieldPhotoProps = { providerId: string; photoId: string; sequenceId: string | null; capturedAt: number | null; isPano: boolean | null; heading: number | null; }; /** * Build viewfield polygons for every photo that can show direction: * - panorama → full 360° disk * - flat with heading → narrow triangle wedge * Photos without heading that are not panos are skipped. */ export declare const photosToViewfieldsFeatureCollection: (photos: NormalizedPhoto[], zoom: number, { bbox, maxFeatures }?: ViewfieldOptions) => FeatureCollection; export declare const emptyPolygonCollection: () => FeatureCollection;