import type { Mappedin } from '../types'; type Add = Mappedin.MapView['Shapes']['add']; export interface ShapeProps { /** * GeoJSON FeatureCollection containing the geometry for the shape */ geometry: Parameters[0]; /** * Style configuration for the shape */ style: Parameters[1]; /** * Optional floor to add the shape to */ floor?: Parameters[2]; /** * Callback called when shape is successfully created * @param shape - The shape object */ onLoad?: (shape: Mappedin.Shape) => void; } /** * Shape component for React Native. * * Displays custom GeoJSON geometry on the map using the provided style. * The shape is managed through the WebView bridge and communicates with the core SDK. * * @example * ```tsx * const geometry = { * type: 'FeatureCollection', * features: [{ * type: 'Feature', * geometry: { * type: 'Polygon', * coordinates: [[[-80.521, 43.466], [-80.521, 43.465], [-80.520, 43.465], [-80.520, 43.466], [-80.521, 43.466]]] * }, * properties: { id: 'my-shape' } * }] * }; * * return ( * console.log('Shape loaded:', shape)} * /> * ); * ``` */ export declare function Shape(props: ShapeProps): null; export {}; //# sourceMappingURL=shape.d.ts.map