import React from 'react'; import { LayerSourceProps } from './LayerManager'; import { MapFeature } from '../../../shared/models/models.mapFeature'; /** What our API returns when we call the route. */ export interface GeojsonFeatureCollection { type: 'FeatureCollection'; features: MapFeature[]; } /** * A React component that creates and manages a GeoJSON layer. * This component uses the `GeoJsonLayer` from `@deck.gl/layers` to render GeoJSON data. * It also integrates tooltip functionality for hover, click, and selection-based tooltips. * * @param {LayerSourceProps} props - The props for the GeojsonLayerSource component. * @param {RenderingLayer} props.layer - The layer configuration object. * @param {(id: string, instance: GeoJsonLayer | null) => void} props.onLayerUpdate - Callback to handle updates to the layer instance. * @returns {null} This component does not render any DOM elements. */ export declare const GeojsonLayerSource: React.MemoExoticComponent<({ layer, onLayerUpdate, viewport, CustomTooltip }: LayerSourceProps) => React.ReactNode>;