import * as React from 'react'; import type { Coordinates, ExpoGaodeMapNaviViewProps } from './types'; /** * ExpoGaodeMapNaviView Ref 类型 */ export interface ExpoGaodeMapNaviViewRef { /** * 开始导航 */ startNavigation: (start: Coordinates | null, end: Coordinates, type: number) => Promise; /** * 在当前嵌入式导航视图中,使用独立路径组启动导航 * * - 依赖当前 ExpoGaodeMapNaviView 实例 * - 适合“路线选择页 -> 进入嵌入式导航页”这类页面内流程 * - 若不依赖嵌入式导航视图,可改用模块级 startNaviWithIndependentPath(...) */ startNavigationWithIndependentPath: (token: number, options?: { routeId?: number; routeIndex?: number; naviType?: number; }) => Promise; /** * 停止导航 */ stopNavigation: () => Promise; /** * 播放自定义 TTS */ playCustomTTS: (text: string, forcePlay?: boolean) => Promise; } /** * 高德导航视图组件 * * 使用高德官方的导航界面,提供完整的导航体验,包括: * - 路线规划和显示 * - 实时导航信息(距离、时间、道路名称) * - 转向箭头和提示 * - 路况信息 * - 摄像头提示 * - 语音播报 * * @example * ```tsx * import { ExpoGaodeMapNaviView } from 'expo-gaode-map-navigation'; * * function NavigationScreen() { * return ( * { * console.log('剩余距离:', e.nativeEvent.pathRetainDistance); * }} * onArrive={() => { * console.log('到达目的地!'); * }} * /> * ); * } * ``` */ export declare const ExpoGaodeMapNaviView: React.ForwardRefExoticComponent>; export default ExpoGaodeMapNaviView; //# sourceMappingURL=ExpoGaodeMapNaviView.d.ts.map