import React from 'react'; import { type SourceSpecification, type GeoJSONSourceSpecification } from 'maplibre-gl'; type ModifiedSourceSpecification = Exclude | Omit; type Props = { children?: React.ReactNode | null; sourceKey: string; createMarkerElement?: (properties: Record) => HTMLElement; } & ({ managed: false; sourceOptions?: undefined; geoJson?: undefined; } | { managed?: true; sourceOptions: ModifiedSourceSpecification; geoJson?: GeoJSON.Feature | GeoJSON.FeatureCollection | string; }); declare function MapSource(props: Props): React.JSX.Element | null; export default MapSource;