import type { IAnchorable, TAddMarkerOptions } from '@mappedin/mappedin-js'; import type { Mappedin } from '../types'; /** * A lightweight marker object for React Native that can be used with mapView.updateState() to update marker properties like rank, anchor, etc. * Note: This is a shell object and does not contain the full marker functionality available in the web SDK. */ type ReactNativeMarker = Omit & { /** * @deprecated updateTarget is not supported in React Native */ updateTarget: Mappedin.Marker['updateTarget']; /** * @deprecated contentEl is not supported in React Native */ contentEl: Mappedin.Marker['contentEl']; }; export interface MarkerProps { /** * The target object (Space, Coordinate, Door, etc.) to anchor the marker to */ target: IAnchorable; /** * HTML content for the marker */ html: string; /** * Optional marker options */ options?: TAddMarkerOptions; /** * Callback called when marker is successfully created * @param marker - The marker shell object. Contains only the id and __type properties which can passed into mapView.updateState(). Note: udpateTarget and target is not supported * @returns void */ onLoad?: (marker: ReactNativeMarker) => void; } /** * Marker component for React Native. * * Displays a marker on the map at the specified target location with HTML content. * The marker is managed through the WebView bridge and communicates with the core SDK. * * @example * ```tsx * * ``` */ export declare function Marker(props: MarkerProps): null; export {}; //# sourceMappingURL=marker.d.ts.map