import type { NormalizedPhoto, ProviderId } from '../providers/model'; /** * The view inside a photo, in the terms of the provider's own site. `photoId` says which photo it * belongs to, so that a view reported for one photo never ends up on the link of the next. */ export type PhotoView = { providerId: 'mapillary'; photoId: string; /** Center of the view in image coordinates, `0` left to `1` right. */ x: number; /** Center of the view in image coordinates, `0` top to `1` bottom. */ y: number; /** Zoom of mapillary-js and of mapillary.com: `0` to `3`, each step doubles the size. */ zoom: number; } | { providerId: 'panoramax'; photoId: string; /** Compass direction of the view center in degrees, also in flat pictures. */ heading: number; /** Degrees above the horizon. */ pitch: number; /** Zoom level of the Panoramax viewer: `0` to `100`. */ zoom: number; }; /** * Link to the photo on the provider's site. With a `view` (Mapillary, Panoramax) the site opens at * that zoom and pan; a view of another photo is ignored. How much shows around the center still * depends on the size of the window the link opens in. */ export declare const providerExternalLink: (photo: NormalizedPhoto, view?: PhotoView | null) => string; export type ProviderLocationLinkOptions = { /** * Show only photos from this day on (`YYYY-MM-DD`). Mapillary only: the other services have no * such link param and ignore it. Throws when it is not a real day. */ dateFrom?: string; }; /** Deep link to a provider's viewer at a map location (no specific photo selected). */ export declare const providerLocationLink: (providerId: ProviderId, lat: number, lng: number, zoom?: number, { dateFrom }?: ProviderLocationLinkOptions) => string;