import type { ReactNode } from 'react'; import React from 'react'; import type { TStateChangedInternalPayload, TShow3DMapOptions, TGetMapDataOptions } from '@mappedin/mappedin-js'; import type { Mappedin } from './types'; export interface MapViewProps { /** * Optional style overrides */ style?: any; /** * Options for the 3D map from mappedin-js */ options?: TShow3DMapOptions; /** * Options for getting map data from mappedin-js, or a pre-loaded MapData instance */ mapData: TGetMapDataOptions | Mappedin.MapData; /** * Child components that will have access to mapData and mapView through useMap hook */ children?: ReactNode; /** * Fallback component to show while map is loading or on error */ fallback?: React.ReactNode; /** * Called when the map is ready */ onMapReady?: () => void; /** * Called when there is an error loading the map */ onError?: (error: Error) => void; /** * initial state to sync on start * @remarks * This is useful for testing. * * @internal */ __startInitialState?: TStateChangedInternalPayload; } /** * MapView - A React Native component for displaying Mappedin maps * * This component wraps a WebView and provides MappedinContext to child components. * Children are only rendered when both mapData and mapView are ready. */ export declare const MapView: React.FC; export default MapView; //# sourceMappingURL=map-view.d.ts.map