import type { GeoJSONSourceSpecification, LayerSpecification } from 'maplibre-gl'; import MapPreviewer from './map'; import type { PreviewStyleLayer } from '../layers'; import LocationResource from '../resources/location'; import type OgmRecord from '../record'; type AddGeoJsonSourceObject = GeoJSONSourceSpecification & { id: string; }; export declare const FILL_OPACITY = 0.2; /** * A record's extent, drawn as a frame rather than as data. What goes on the map when the data itself * can't: see LocationResource. * * Deliberately the plainest previewer here. It has one shape, no features worth naming, and no * server behind it, so there is nothing to inspect, nothing to fail, and no reason to hold the map * flat - a location reads on a globe as well as anywhere. */ export default class LocationPreviewer extends MapPreviewer { protected resource: LocationResource; readonly inspectable = false; protected getSourceId(): string; protected createSources(): Promise; protected createLayers(): Promise; protected applyOpacity(styleLayer: PreviewStyleLayer, opacity: number): void; private createFillLayer; private createOutlineLayer; } export declare const locationFor: (record: OgmRecord) => LocationPreviewer | undefined; export declare const locationsFor: (records: OgmRecord[]) => (LocationPreviewer | undefined)[]; export {};