/// <reference types="types/api" />
import Taro from '@tarojs/api';
/**
 * 创建地图上下文 MapContext 对象
 *
 * @param mapId Map 组件的 id
 * @param _inst 自定义组件实例（暂未使用）
 * @param type Map 组件类型：'react' 新 Map (components-react，默认)，'legacy' 老 Map (components)
 * @returns MapContext 实例
 *
 * 新 Map (components-react)：通过 window.__TARO_MAP_CONTEXTS__ 获取 MapContextImpl 实例
 * 老 Map (components)：暂不支持，后续实现
 */
export declare function createMapContext(mapId: string, _inst?: any, type?: 'legacy' | 'react'): Taro.MapContext;
