/** * Taro 类型定义文件 * * 目录结构 * ├── api 小程序端能力 API * │   ├── ad * │ │ └── index.d.ts 广告 API * │   ├── ai * │   │   ├── face.d.ts 人脸检测 API * │   │   ├── inference.d.ts AI 推理 API * │   │   └── visionkit.d.ts 视觉算法 API * │   ├── alipay * │ │ └── index.d.ts 支付宝小程序 API * │   ├── base * │ │ ├── index.d.ts 基础 API * │   │   ├── crypto.d.ts 基础 -> 加密 API * │ │ ├── debug.d.ts 基础 -> 调试 API * │   │   ├── env.d.ts 基础 -> ENV * │   │   ├── performance.d.ts * │ │ ├── system.d.ts 基础 -> 系统 API * │   │   ├── update.d.ts 基础 -> 更新 API * │   │   └── weapp 基础 -> 小程序 API * │   │   ├── app-event.d.ts 基础 -> 小程序 API -> 应用级事件 * │   │   └── life-cycle.d.ts 基础 -> 小程序 API -> 生命周期 * │   ├── canvas * │ │ └── index.d.ts 画布 API * │   ├── cloud * │ │ └── index.d.ts 微信小程序云开发 API * │   ├── data-analysis * │ │ └── index.d.ts 数据分析 API * │   ├── device * │ │ ├── accelerometer.d.ts 设备 -> 加速计 API * │   │   ├── accessibility.d.ts 设备 -> 无障碍 API * │ │ ├── battery.d.ts 设备 -> 电量 API * │   │   ├── bluetooth-ble.d.ts 设备 -> 蓝牙-低功耗中心设备 API * │   │   ├── bluetooth-peripheral.d.ts 设备 -> 蓝牙-低功耗外围设备 API * │   │   ├── bluetooth.d.ts 设备 -> 蓝牙-通用 API * │   │   ├── calendar.d.ts 设备 -> 日历 API * │ │ ├── clipboard.d.ts 设备 -> 剪贴板 API * │ │ ├── compass.d.ts 设备 -> 罗盘 API * │ │ ├── contact.d.ts 设备 -> 联系人 API * │ │ ├── gyroscope.d.ts 设备 -> 陀螺仪 API * │ │ ├── iBeacon.d.ts 设备 -> iBeacon API * │   │   ├── keyboard.d.ts 设备 -> 键盘 API * │   │   ├── memory.d.ts 设备 -> 内存 API * │ │ ├── motion.d.ts 设备 -> 设备方向 API * │   │   ├── network.d.ts 设备 -> 网络 API * │   │   ├── nfc.d.ts 设备 -> NFC 读写 API * │ │ ├── phone.d.ts 设备 -> 电话 API * │ │ ├── scan.d.ts 设备 -> 扫码 API * │ │ ├── screen.d.ts 设备 -> 屏幕 API * │   │   ├── sms.d.ts 设备 -> 短信 API * │ │ ├── vibrate.d.ts 设备 -> 振动 API * │ │ └── wifi.d.ts 设备 -> Wi-Fi API * │   ├── ext * │ │ └── index.d.ts 第三方平台 API * │   ├── files * │ │ └── index.d.ts 文件 API * │   ├── framework * │ │ └── index.d.ts 小程序框架 API * │   ├── location * │ │ └── index.d.ts 位置 API * │   ├── media * │ │ ├── audio.d.ts 媒体 -> 音频 API * │ │ ├── background-audio.d.ts 媒体 -> 背景音频 API * │ │ ├── camera.d.ts 媒体 -> 相机 API * │ │ ├── editor.d.ts 媒体 -> 富文本 API * │ │ ├── image.d.ts 媒体 -> 图片 API * │ │ ├── live.d.ts 媒体 -> 实时音视频 API * │ │ ├── map.d.ts 媒体 -> 地图 API * │   │   ├── media-recorder.d.ts 媒体 -> 画面录制器 API * │ │ ├── recorder.d.ts 媒体 -> 录音 API * │   │   ├── video-decoder.d.ts 媒体 -> 视频解码器 API * │ │ └── video-processing.d.ts 媒体 -> 音视频合成 API * │ │ ├── video.d.ts 媒体 -> 视频 API * │   │   └── voip.d.ts 媒体 -> 实时语音 API * │   ├── navigate * │   │   └── index.d.ts 跳转 API * │   ├── network * │ │ ├── download.d.ts 网络 -> 下载 API * │ │ ├── mdns.d.ts 网络 -> mDNS API * │ │ ├── request.d.ts 网络 -> 发起请求 API * │   │   ├── tcp.d.ts 网络 -> TCP 通信 API * │ │ ├── udp.d.ts 网络 -> UDP 通信 API * │ │ ├── upload.d.ts 网络 -> 上传 API * │ │ └── websocket.d.ts 网络 -> WebSocket API * │   ├── open-api * │ │ ├── account.d.ts 开放接口 -> 账号信息 API * │ │ ├── address.d.ts 开放接口 -> 收货地址 API * │ │ ├── authorize.d.ts 开放接口 -> 授权 API * │ │ ├── card.d.ts 开放接口 -> 卡券 API * | | ├── channels.d.ts 开放接口 -> 视频号 API * | | ├── customer-service.d.ts 开放接口 -> 微信客服 API * | | ├── device-voip.d.ts 开放接口 -> 音视频通话 API * │ │ ├── facial.d.ts 开放接口 -> 人脸识别 API // 在微信小程序文档已找不到 * │ │ ├── favorites.d.ts 开放接口 -> 收藏 API * │ │ ├── group.d.ts 开放接口 -> 微信群 API * │ │ ├── invoice.d.ts 开放接口 -> 发票 API * │   │   ├── license-plate.d.ts 开放接口 -> 车牌 API * │ │ ├── login.d.ts 开放接口 -> 登录 API * │ │ ├── my-miniprogram.d.ts 开放接口 -> 我的小程序 API * │ │ ├── privacy.d.ts 开放接口 -> 隐私信息授权 API * │ │ ├── redpackage.d.ts 开放接口 -> 微信红包 API * │ │ ├── settings.d.ts 开放接口 -> 设置 API * │ │ ├── soter.d.ts 开放接口 -> 生物认证 API * │ │ ├── sticker.d.ts 开放接口 -> 微信表情 API * | | ├── subscribe-message.d.ts 开放接口 -> 订阅消息 API * │ │ ├── user-info.d.ts 开放接口 -> 用户信息 API * │ │ └── werun.d.ts 开放接口 -> 微信运动 API * │   ├── payment * │   │   └── index.d.ts 支付 API * │   ├── qq * │   │   └── index.d.ts QQ 小程序 API * │   ├── route * │ │ └── index.d.ts 路由 API * │   ├── share * │ │ └── index.d.ts 转发 API * │   ├── skyline * │ │ └── index.d.ts 微信 Skyline API * │   ├── storage * │ │ ├── background-fetch.d.ts 数据缓存 -> 后台获取 API * │   │   ├── cache-manager.d.ts 数据缓存 -> 缓存管理 API * │   │   └── index.d.ts 数据缓存 API * │   ├── swan * │   │   ├── bookshelf.d.ts 百度小程序 -> 书架 API * │   │   ├── download-package.d.ts 百度小程序 -> 下载包 API * │ │ └── index.d.ts 百度小程序 API * │   │   └── pay.d.ts 百度小程序 -> 支付 API * │   ├── taro.extend.d.ts Taro 扩展 API 类型定义 * │   ├── taro.hooks.d.ts Taro Hooks 类型定义 * │   ├── ui * │ │ ├── animation.d.ts 界面 -> 动画 API * │ │ ├── background.d.ts 界面 -> 背景 API * │ │ ├── custom-component.d.ts 界面 -> 自定义组件 API * │ │ ├── fonts.d.ts 界面 -> 字体 API * │   │   ├── interaction.d.ts 界面 -> 交互 API * │ │ ├── menu.d.ts 界面 -> 菜单 API * │ │ ├── navigation-bar.d.ts 界面 -> 导航栏 API * │ │ ├── pull-down-refresh.d.ts 界面 -> 下拉刷新 API * │ │ ├── scroll.d.ts 界面 -> 滚动 API * │ │ ├── sticky.d.ts 界面 -> 置顶 API * │ │ ├── tab-bar.d.ts 界面 -> TabBar API * │ │ ├── window.d.ts 界面 -> 窗口 API * │   ├── worker * │ │ └── index.d.ts Worker API * │   └── wxml * │ │ └── index.d.ts WXML API * ├── compile * │   ├── compiler.d.ts * │   ├── config * │   │   ├── h5.d.ts * │   │   ├── index.d.ts * │   │   ├── manifest.d.ts * │   │   ├── mini.d.ts * │   │   ├── project.d.ts * │   │   ├── rn.d.ts * │   │   └── util.d.ts * │   ├── hooks.d.ts Taro Hooks 类型定义 * │   └── index.d.ts * ├── global.d.ts * ├── index.d.ts 此文件 * ├── taro.api.d.ts * ├── taro.component.d.ts Taro Component 类型定义 * ├── taro.config.d.ts Taro 小程序 App 与 Window 设置类型定义 * └── taro.lifecycle.d.ts Taro 生命周期类型定义 */ /// /// /// /// /// /// /// /// /// /// /// /// /// export = Taro export as namespace Taro declare const Taro: Taro.TaroStatic declare namespace Taro { interface TaroStatic {} } declare global { const defineAppConfig: (config: Taro.AppConfig) => Taro.AppConfig const definePageConfig: (config: Taro.PageConfig) => Taro.Config const importNativeComponent: (path: string, name = '', exportName = 'default') => Awaited }