import type { Coordinate, TAddPathOptions } from '@mappedin/mappedin-js'; import type { Mappedin } from '../types'; export interface PathProps { /** * Array of coordinates to form the path */ coordinate: Coordinate[]; /** * Optional path options */ options?: TAddPathOptions; /** * Callback called when path is successfully created * @param path - The path object */ onLoad?: (path: Mappedin.Path) => void; /** * Callback called when path animation completes */ onDrawComplete?: () => void; } /** * Path component for React Native. * * Displays a path on the map using the provided coordinates. * The path is managed through the WebView bridge and communicates with the core SDK. * * @example * ```tsx * const directions = await mapView.getDirections(startSpace, endSpace); * return directions ? ( * console.log('Path loaded:', path)} * onDrawComplete={() => console.log('Path drawing complete')} * /> * ) : null; * ``` */ export declare function Path(props: PathProps): null; //# sourceMappingURL=path.d.ts.map