/** * 高德地图离线地图原生模块 */ import { NativeModule } from 'expo'; import type { OfflineMapInfo, OfflineMapDownloadConfig, OfflineMapStorageInfo, OfflineMapEvents } from './types/offline.types'; /** * 离线地图原生模块接口 */ declare class NaviMapOfflineModule extends NativeModule { /** * 打开高德 3D 地图 SDK 官方离线地图 UI 组件(Android)。 * 官方组件内置城市下载、暂停、更新、删除和城市搜索。 */ openOfflineMapUI(): Promise; /** * 获取所有可下载的城市列表 * @returns Promise 城市列表 */ getAvailableCities(): Promise; /** * 获取所有省份列表 * @returns Promise 省份列表 */ getAvailableProvinces(): Promise; /** * 根据省份代码获取城市列表 * @param provinceCode 省份代码 * @returns Promise 该省份下的城市列表 */ getCitiesByProvince(provinceCode: string): Promise; /** * 获取已下载的地图列表 * @returns Promise 已下载的地图列表 */ getDownloadedMaps(): Promise; /** * 开始下载离线地图 * @param config 下载配置 */ startDownload(config: OfflineMapDownloadConfig): Promise; /** * 暂停下载 * @param cityCode 城市代码 */ pauseDownload(cityCode: string): Promise; /** * 恢复下载 * @param cityCode 城市代码 */ resumeDownload(cityCode: string): Promise; /** * 取消下载 * @param cityCode 城市代码 */ cancelDownload(cityCode: string): Promise; /** * 删除离线地图 * @param cityCode 城市代码 */ deleteMap(cityCode: string): Promise; /** * 更新离线地图 * @param cityCode 城市代码 */ updateMap(cityCode: string): Promise; /** * 检查是否有可用更新 * @param cityCode 城市代码 * @returns Promise 是否有更新 */ checkUpdate(cityCode: string): Promise; /** * 检查地图是否已下载 * @param cityCode 城市代码 * @returns Promise 是否已下载 */ isMapDownloaded(cityCode: string): Promise; /** * 获取地图下载状态 * @param cityCode 城市代码 * @returns Promise 地图信息 */ getMapStatus(cityCode: string): Promise; /** * 获取所有下载任务的总进度 * @returns Promise 总进度 (0-100) */ getTotalProgress(): Promise; /** * 获取当前正在下载的城市列表 * @returns Promise 城市代码列表 */ getDownloadingCities(): Promise; /** * 获取离线地图占用的存储空间(字节) * @returns Promise 存储空间大小 */ getStorageSize(): Promise; /** * 获取详细的存储信息 * @returns Promise 存储信息 */ getStorageInfo(): Promise; /** * 清理所有离线地图 */ clearAllMaps(): Promise; /** * 设置离线地图存储路径 * @param path 存储路径 */ setStoragePath(path: string): void; /** * 获取离线地图存储路径 * @returns Promise 存储路径 */ getStoragePath(): Promise; /** * 批量下载地图 * @param cityCodes 城市代码列表 * @param allowCellular 是否允许移动网络 */ batchDownload(cityCodes: string[], allowCellular?: boolean): Promise; /** * 批量删除地图 * @param cityCodes 城市代码列表 */ batchDelete(cityCodes: string[]): Promise; /** * 批量更新地图 * @param cityCodes 城市代码列表 */ batchUpdate(cityCodes: string[]): Promise; /** * 暂停所有下载任务 */ pauseAllDownloads(): Promise; /** * 恢复所有下载任务 */ resumeAllDownloads(): Promise; } declare const _default: NaviMapOfflineModule; export default _default; //# sourceMappingURL=ExpoGaodeMapOfflineModule.d.ts.map