import React from "react"; import { type LatLng, type LineCapType, type LineJoinType } from "react-native-maps"; import type { TravelMode } from "src/types/TravelMode"; import type { ComputeRoutesRequestBody, GoogleRouteLeg, LegField, LegStepField, RouteModifiers } from "../types/GoogleApi"; type Props = { origin: LatLng; destination: LatLng; waypoints?: LatLng[]; apiKey: string; strokeColor?: string; strokeWidth?: number; onReady?: (coordinates: LatLng[]) => void; onError?: (error: Error) => void; onEstimatedTime?: (time: number) => void; enableEstimatedTime?: boolean; onDistance?: (distance: number) => void; enableDistance?: boolean; onLegs?: (legs: GoogleRouteLeg[]) => void; legFields?: LegField[]; legStepFields?: LegStepField[]; mode?: TravelMode; lineJoin?: LineJoinType; lineCap?: LineCapType; /** * Route modifiers (e.g. avoidTolls, avoidHighways). Typed for discoverability. * @see https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers */ routeModifiers?: RouteModifiers; /** * Override or add any field to the request body sent to Google Routes API. * Applied after built-in fields (origin, destination, travelMode, routeModifiers). * @see https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes */ requestBodyOverrides?: Partial & Record; }; export declare const MapViewRoute: React.FC; export {};