import { ItineraryParams } from '../../types/MapViewProps'; /** * Itinerary Component * ------------------- * Renders a route on a map, either: * - using a precomputed GeoJSON route (initialRoute), or * - by fetching a route from a routing engine (OSRM or Mapbox). * * Responsibilities: * 1. Load the itinerary from props if precomputed (`initialRoute`). * 2. Otherwise fetch the route dynamically based on `from` + `to`. * 3. Optionally notify parent when a route is computed (`onRouteComputed`). * 4. Delegate visual rendering to for consistency across map features. */ declare const Itinerary: ({ from, to, profile, engine, itineraryLineStyle, initialRoute, onRouteComputed, itineraryLabel }: ItineraryParams) => import("react/jsx-runtime").JSX.Element | null; export default Itinerary;