import type { Feature, FeatureCollection, Geometry, Point, Polygon } from 'geojson'; import MapBox from 'mapbox-gl'; /** Provides GeoJSON geometry and MapBox source generation from a quadkey. */ declare class GeoJson { private _lngLat?; private _point?; private _polygon?; private _zoom?; private quadkey; constructor(quadkey: string); /** * Creates a GeoJSON FeatureCollection from an array of features. * @param features - The features to include * @returns A GeoJSON FeatureCollection */ static featureCollection(features: Feature[]): FeatureCollection; /** * Creates a MapBox GeoJSON source specification from a FeatureCollection. * @param data - The FeatureCollection to use as the source data * @returns A MapBox GeoJSON source specification */ static featuresSource(data: FeatureCollection): MapBox.GeoJSONSourceSpecification; /** * Wraps a geometry object in a GeoJSON Feature. * @param geometry - The geometry to wrap * @returns A GeoJSON Feature containing the geometry */ static geometryFeature(geometry: Geometry): Feature; /** Computes and caches the center point of the quadkey's bounding box as a MapBox LngLat. */ center(): MapBox.LngLat; /** Returns a GeoJSON Point geometry at the center of the quadkey's bounding box. */ point(): Point; /** Returns a GeoJSON Feature containing the center point geometry. */ pointFeature(): Feature; /** Returns a GeoJSON FeatureCollection containing the center point feature. */ pointFeatureCollection(): FeatureCollection; /** Returns a MapBox GeoJSON source specification for the center point. */ pointSource(): MapBox.GeoJSONSourceSpecification; /** Returns a GeoJSON Polygon geometry representing the quadkey's bounding box. */ polygon(): Polygon; /** Returns a GeoJSON Feature containing the polygon geometry. */ polygonFeature(): Feature; /** Returns a GeoJSON FeatureCollection containing the polygon feature. */ polygonFeatureCollection(): FeatureCollection; /** Returns a MapBox GeoJSON source specification for the polygon. */ polygonSource(): MapBox.GeoJSONSourceSpecification; /** Returns the zoom level derived from the quadkey length. */ zoom(): number; } export { GeoJson }; //# sourceMappingURL=GeoJson.d.ts.map