declare const H5PanelSdk_base: typeof import("qcloud-iotexplorer-appdev-sdk/node_modules/event-emitter-for-miniprogram").default; /** * 1. 暴露应用开发 sdk * 2. 暴露 wx jssdk * 3. 拉取设备历史数据 * 4. 控制设备 * 5. 暴露websocket事件 * 6. 设置分享内容 * 7. 设置标题 * 8. 返回上一级小程序 * 9. 拉取产品信息 * 10. 拉取设备信息 * 11. 拉取设备当前数据 * 12. 拉取设备当前状态 * 13. 离线提示 */ export class H5PanelSdk extends H5PanelSdk_base { previewController: PreviewController; _sdkReadyPromise: any; wx: any; dingDangManager: any; TRTCManager: TRTCManager; wxapi: H5WxApi; _bleDeviceId: any; dataTemplate: {}; _TMESdk: any; _h5DeviceDetailShow: boolean; _h5DeviceDetailOption: any; /** @type {import('./libs/h5-websocket').H5Websocket} */ h5WebSocket: import('./libs/h5-websocket').H5Websocket; /** @type {boolean} */ isShareDevice: boolean; /** @type {boolean} */ isFamilyOwner: boolean; /** @type {boolean} */ isShareGroup: boolean; /** @type {string} */ deviceId: string; /** @type {string} */ productId: string; /** @type {any} */ productConfig: any; /** @type {string} */ deviceName: string; /** @type {boolean} */ debug: boolean; /** @type {import('./bluetooth/blePlugin').GetBleDeviceAdapter} */ getBleDeviceAdapter: import('./bluetooth/blePlugin').GetBleDeviceAdapter; /** @type {string} */ deviceDisplayName: string; /** @type {string} */ groupId: string; lid: any; born: any; /** @type {any[] | undefined} */ belongGroups: any[] | undefined; groupInfo: any; deviceInfo: any; deviceData: any; groupName: any; roomList: any; roomId: any; thirdPlatformId: any; thirdAccessToken: any; /** @type {string} */ familyId: string; /** @type {boolean} */ isStandardBleDevice: boolean; _shouldTriggerVibrateShort(deviceData?: {}): any; _initSdkData(data: any): void; uin: any; roomName: any; _initLogger(): void; insightReportor: import("qcloud-iotexplorer-logger/lib/InsightLogger").InsightLogger; _initAppDevSdk(): void; appDevSdk: AppDevSdk; _isAppDevSdkLogin: boolean; _initH5Websocket(): void; h5Websocket: any; _sdkReadyTimeoutTimer: NodeJS.Timeout; _initBleAdapter(): void; blueToothAdapter: { addAdapter: () => any; }; _initComponents(): void; tips: Tips; iotexplorerH5PanelDeviceDetail: DeviceDetail; themeColorMap: { primary: string; success: string; grey: string; danger: string; weak: string; muted: string; }; offlineTip: OfflineTip; firmwareUpgrade: FirmwareUpgrade; _initAppBridge(): void; _appBridge: import("./appBridge/NativeAppBridge").NativeAppBridge | import("./appBridge/WeappBridge").WeappBridge; _triggerVibrateShortFilter: any; _triggerVibrateShortType: any; /** * @param {Function} filter; * @param {{vibrateShortType?: string}} param */ setTriggerVibrateShortFilter(filter: Function, { vibrateShortType }?: { vibrateShortType?: string; }): void; /** * @param {string} apiName */ checkIsMock(apiName: string): void; set bleDeviceId(arg: any); get bleDeviceId(): any; get isGroup(): boolean; callMpApi(api: any, params?: {}): Promise; showOfflineTip(): void; hideOfflineTip(): void; injectEventsHandler(): void; deviceStatus: any; set productInfo(arg: any); get productInfo(): any; _productInfo: any; ready(): Promise; sdkReady(): any; wxSdkReady(): any; requestTokenApi(action: any, data: any, opts?: {}): Promise; getDeviceDataHistory({ FieldName, MaxTime, MinTime, Context, Limit }: { FieldName: any; MaxTime: any; MinTime: any; Context: any; Limit: any; }): Promise; getInitData(): Promise<{ userInfo: any; productInfo: any; productConfig: any; deviceInfo: any; deviceData: any; deviceStatus: any; familyInfo: any; roomList: any; } | { userInfo?: undefined; productInfo?: undefined; productConfig?: undefined; deviceInfo?: undefined; deviceData?: undefined; deviceStatus?: undefined; familyInfo?: undefined; roomList?: undefined; }>; createWifiBindToken(familyId: any, roomId: any): Promise; getDevicesByBindToken(token: any): Promise; /** * @param {{deviceId?: string }} param0 * @returns {Promise} */ getShareParams({ deviceId }?: { deviceId?: string; }): Promise; setShareConfig({ title, imgUrl }: { title: any; imgUrl: any; }): Promise; /** * 发起一个action * @see https://cloud.tencent.com/document/product/1081/61347 * @param {any} data * @param {string} actionId * @param {string} [deviceId] * @returns {Promise<{Status: string, OutputParams: any}>} */ callDeviceAction(data: any, actionId: string, deviceId?: string): Promise<{ Status: string; OutputParams: any; }>; /** * 下发物模型属性 * @param {string | Record} data * @param {string} [deviceId] 设备deviceId * @returns {Promise} */ controlDeviceData(data: string | Record, deviceId?: string): Promise; controlGroupData(data: any, groupId: any): Promise; /** * 跳转到小程序的设备详情页 * @param {{ * reload?: boolean, * deviceId?: string, * isShareDevice?: boolean, * shareParams?: string | Record * }} params * @returns {Promise} */ goDeviceDetailPage({ reload, deviceId, isShareDevice, shareParams }?: { reload?: boolean; deviceId?: string; isShareDevice?: boolean; shareParams?: string | Record; }): Promise; /** * @param {{ * reload?: boolean, * groupId?: string, * shareParams?: string | Record * }} params * @returns {Promise} */ goGroupDetailPage({ reload, groupId, shareParams }?: { reload?: boolean; groupId?: string; shareParams?: string | Record; }): Promise; navBack(): Promise; goFeedBackPage(): Promise; getUserInfo(): Promise; userInfo: any; /** * @param {{productId?: string}} param * @returns {Promise} */ getProductInfo({ productId }?: { productId?: string; }): Promise; /** * @param {import('./types').Params} param */ getDeviceInfo({ deviceId }?: import('./types').Params): Promise; /** * @param {import('./types').Params} param */ getDeviceData({ deviceId }?: import('./types').Params): Promise; /** * @param {import('./types').Params} param */ getDeviceStatus({ deviceId }?: import('./types').Params): Promise; reloadAfterUnmount(): Promise; /** * @param {import('./types').Params} param */ goDeviceInfoPage({ deviceId }?: import('./types').Params): Promise; /** * @param {{deviceId?: string, name?: string}} param * @returns {Promise} */ goEditDeviceNamePage({ deviceId, name }?: { deviceId?: string; name?: string; }): Promise; /** * @param {import('./types').Params} param0 */ goRoomSettingPage({ deviceId }?: import('./types').Params): Promise; /** * @param {{deviceId?: string, shareParams?: string}} param * @returns {Promise} */ goShareDevicePage({ deviceId, shareParams }?: { deviceId?: string; shareParams?: string; }): Promise; goScenePage({ type }?: { type?: string; }): Promise; /** * @param {{ deviceId?: string; reserveData?: 0 | 1 | boolean }} config * @returns {Promise} */ deleteDevice({ deviceId, reserveData }?: { deviceId?: string; reserveData?: 0 | 1 | boolean; }): Promise; /** * @param {{groupId?: string}} param */ deleteGroup({ groupId }?: { groupId?: string; }): Promise; showDeviceDetail(options?: {}): Promise; /** * @param {{ * groupId?: string; * labelWidth?: number; * marginTop?: number; * shareParams?: string; * containerClassName?: string; * extendItems?: any[]; * extendButtons?: any[]; * }} params */ showGroupDetail({ groupId, labelWidth, marginTop, extendItems, extendButtons, containerClassName, shareParams, }?: { groupId?: string; labelWidth?: number; marginTop?: number; shareParams?: string; containerClassName?: string; extendItems?: any[]; extendButtons?: any[]; }): Promise; hideDeviceDetail(): void; /** * @param {{ deviceId?: string, silent?: boolean }} param */ checkFirmwareUpgrade({ deviceId, silent }?: { deviceId?: string; silent?: boolean; }): Promise<{ CurrentVersion: any; DstVersion: any; }>; /** * @param {{ deviceId?: string }} param */ goFirmwareUpgradePage({ deviceId }?: { deviceId?: string; }): Promise; /** * @param {{ deviceId?: string, isShareDevice?: boolean, featureId?: string }} param */ goTimingProjectPage({ deviceId, isShareDevice, featureId }?: { deviceId?: string; isShareDevice?: boolean; featureId?: string; }): any; navigateToMiniprogram({ appid, extraData, envVersion, path, shortLink }: { appid: any; extraData: any; envVersion: any; path: any; shortLink?: string; }): Promise; getHealthBaikeUrl(): string; /** * 通知小程序触发震动 * @doc https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateShort.html#%E5%8F%82%E6%95%B0 * @param type * @return {Promise<*|undefined>} */ triggerVibrateShort(type: any): Promise; /** * @see https://cloud.tencent.com/document/product/1081/67450#.E8.B7.B3.E8.BD.AC.E5.85.B6.E4.BB.96.E8.AE.BE.E5.A4.87.E7.9A.84.E9.9D.A2.E6.9D.BF.E9.A1.B5.E9.9D.A2 * @param {string} deviceId * @param {{passThroughParams?: Record, redirect?: boolean}} params * @returns {Promise} */ goDevicePanelPage(deviceId: string, { passThroughParams, redirect }?: { passThroughParams?: Record; redirect?: boolean; }): Promise; goVideoPanelPage(params?: {}): Promise; /** * 1. 拉网关下绑定的设备列表 * 2. 拉网关下、且已绑定到家庭的子设备列表 * 3. diff * 4. 多的绑到家庭,少的从家庭解绑(无权限是否要隐藏?) */ getSubDeviceList(): Promise<{ subDeviceList: any[]; syncFailList: any[]; }>; getFamilyInfo(): Promise; getAllFamilyList(): Promise; getRoomList({ Offset, Limit, }?: { Offset?: number; Limit?: number; }): Promise; getTMESdk(): Promise; goGatewayAddSubDevicePage(gatewayDeviceId: any): Promise; /** * 获取设备最新固件信息 * @param {import('./types').Params} param */ getDeviceLatestOTAInfo({ deviceId }?: import('./types').Params): Promise; /** * 下载固件返回ArrayBuffer * @param {import('./types').Params} param0 * @returns {Promise<{ otaData: any, deviceId: string }>} */ downLoadDeviceOTA({ deviceId }?: import('./types').Params): Promise<{ otaData: any; deviceId: string; }>; reportOTAStatus({ deviceId, state, persent, version, resultCode, resultMsg }: { deviceId: any; state: any; persent: any; version: any; resultCode: any; resultMsg: any; }): Promise; checkFirmwareUpdate({ ProductId, DeviceName }: { ProductId: any; DeviceName: any; }): Promise; reportFirmwareVersion({ deviceId, version }: { deviceId: any; version: any; }): Promise; getGroupInfo(params: any): Promise; getGroupDeviceList({ groupId, familyId }: { groupId: any; familyId: any; }): Promise; getFirstOnlineDevice(): Promise; use(plugin: any): void; } declare var _default: H5PanelSdk; export default _default; import { PreviewController } from "./components/PreviewController/PreviewController"; import { TRTCManager } from "./libs/TRTCManager"; import { H5WxApi } from "@tencent/iotexplorer-h5-call-wx-api/lib/h5/H5WxApi"; import { AppDevSdk } from "qcloud-iotexplorer-appdev-sdk/lib/AppDevSdk"; import { Tips } from "./components/Tips/Tips"; import { DeviceDetail } from "./components/DeviceDetail/DeviceDetail"; import { OfflineTip } from "./components/OfflineTip/OfflineTip"; import { FirmwareUpgrade } from "./components/FirmwareUpgrade/FirmwareUpgrade";