/** * SetDevicePropertiesParams - 设置设备属性参数 */ type SetDevicePropertiesParams = { devId: string; propKvs: string; }; /** * SetDevicePropertiesResponse - 设置设备属性响应 */ type SetDevicePropertiesResponse = boolean; /** * 设置设备属性 * @param {SetDevicePropertiesParams} params - 设置设备属性参数 * @returns {Promise} - 设置结果的 Promise */ declare const setDeviceProperties: (params: SetDevicePropertiesParams) => Promise; /** * GetDevicePropertiesParams - 查看设置的设备属性参数 */ type GetDevicePropertiesParams = { devId: string; props: string; }; /** * GetDevicePropertiesResponse - 查看设置的设备属性响应 */ type GetDevicePropertiesResponse = Record; /** * 查看设置的设备属性 * @param {GetDevicePropertiesParams} params - 查看设备属性参数 * @returns {Promise} - 查看结果的 Promise */ declare const getDeviceProperties: (params: GetDevicePropertiesParams) => Promise; /** * UnlockSyncParams - 解锁方式同步参数 */ type UnlockSyncParams = { devId: string; dpIds: Array; }; /** * UnlockSyncResponse - 解锁方式同步响应 */ type UnlockSyncResponse = { ins: string; distributed: number; dpId: number; }; /** * 解锁方式同步 * @param {UnlockSyncParams} params - 解锁方式同步参数 * @returns {Promise} - 同步结果的 Promise */ declare const syncUnlockMode: (params: UnlockSyncParams) => Promise; /** * QueryDateFormatParams - 查询时间对应的格式参数 */ type QueryDateFormatParams = { devId: string; uiId: string; }; /** * QueryDateFormatResponse - 查询时间对应的格式响应 */ type QueryDateFormatResponse = string; /** * 查询时间对应的格式 * @param {QueryDateFormatParams} params - 查询时间对应的格式参数 * @returns {Promise} - 查询结果的 Promise */ declare const queryDateFormat: (params: QueryDateFormatParams) => Promise; /** * QueryActiveDateParams - 用户获取设备自身的激活时间参数 */ type QueryActiveDateParams = { devId: string; }; /** * QueryActiveDateResponse - 用户获取设备自身的激活时间响应 */ type QueryActiveDateResponse = string; /** * 用户获取设备自身的激活时间(配网时间) * @param {QueryActiveDateParams} params - 查询激活时间参数 * @returns {Promise} - 查询结果的 Promise */ declare const queryDeviceActiveDate: (params: QueryActiveDateParams) => Promise; /** * GetUiConfigParams - app面板拉取JSON配置信息 */ type GetUiConfigParams = { productId: string; }; type CloudDP = { subUiId: string; cloud: { jump_url: { code: string; name: string; selected: boolean; description: string; }; timer: { code: string; name: string; selected: boolean; description: string; }; }; }; type PowerCode = { themeImage: { type: string; rangeType: string; value: { initialize: string; }; }; cloud: Record; timestamp: string; dps: Record; themeColor: { type: string; rangeType: string; value: { initialize: { [key: string]: string; }; }; }; theme: string; }; /** * GetUiConfigResponse - app面板拉取JSON配置信息 */ type GetUiConfigResponse = { cloudDp: Partial; uiContent: Partial; powerCode: { [key: string]: string; }; }; /** * app面板拉取JSON配置信息 * @param {GetUiConfigParams} params - app面板拉取JSON配置信息参数 * @returns {Promise} - 查询结果的 Promise */ declare const getUiConfig: (params: GetUiConfigParams) => Promise; /** * GetHighPowerListParams - 获取蓝牙通信协议高级能力配置 */ type GetHighPowerListParams = { devId: string; }; type ServiceOrder = { categoryCode: string; categoryId: number; cid: string; commodityCode: string; customCommodityCode: string; duration: number; ext: string; groupId: number; ownerId: string; ownerType: number; serviceBeginTime: number; serviceEndTime: number; serviceOrderStatus: number; serviceOrderType: number; serviceTypeCode: string; }; /** * GetHighPowerListResponse - 获取蓝牙通信协议高级能力配置 */ type GetHighPowerListResponse = { code: string; extConfig: string; isBuy: boolean; isEnable: boolean; serviceOrder: ServiceOrder; status: number; tagValue: string; uuid: string; }; /** * 获取蓝牙通信协议高级能力配置 * @param {GetHighPowerListParams} params - 获取蓝牙通信协议高级能力配置参数 * @returns {Promise} - 查询结果的 Promise */ declare const getHighPowerList: (params: GetHighPowerListParams) => Promise; /** * GetLockActivePeriodParams - 获取门锁安全天数 */ type GetLockActivePeriodParams = { devId: string; }; /** * GetLockActivePeriodResponse - 获取门锁安全天数 */ type GetLockActivePeriodResponse = number; /** * 获取门锁安全天数 * @param {GetLockActivePeriodParams} params - 获取门锁安全天数参数 * @returns {Promise} - 查询结果的 Promise */ declare const getLockActivePeriod: (params: GetLockActivePeriodParams) => Promise; /** * GetDeviceRotateParams - 获取当前设备的封面图旋转角度 */ type GetDeviceRotateParams = { devId: string; }; /** * GetDeviceRotateResponse - 获取当前设备的封面图旋转角度 */ type GetDeviceRotateResponse = { angle: number; actualAngle: number; source: string; }; /** * 获取当前设备的封面图旋转角度 * @param {GetDeviceRotateParams} params - 获取当前设备的封面图旋转角度参数 * @returns {Promise} - 查询结果的 Promise */ declare const getDeviceRotate: (params: GetDeviceRotateParams) => Promise; /** * GetSpecificationListParams - 查看产品是否有安装视频、电子说明书参数 */ type GetSpecificationListParams = { productId: string; configItem: string; }; /** * GetSpecificationListResult - 查看产品是否有安装视频、电子说明书结果 */ type GetSpecificationListResult = { product_install_video?: boolean; product_manual?: boolean; }; /** * 查看产品是否有安装视频、电子说明书 * @param {GetSpecificationListParams} params - 查看产品是否有安装视频、电子说明书的参数 * @returns {Promise} - 带有查看产品是否有安装视频、电子说明书结果的 Promise。 */ declare const getSpecificationList: (params: GetSpecificationListParams) => Promise; /** * GetSpecificationParams - 查看产品附件信息详情参数 */ type GetSpecificationParams = { productId: string; fileType: string; }; /** * GetSpecificationResult - 查看产品附件信息详情结果 */ type GetSpecificationResult = { productId: string; fileType: string; urlType: string; url: string; supportLang: string; remark: string; status: string; id: string; gmtCreate: string; gmtModified: string; }; /** * 查看产品附件信息详情 * @param {GetSpecificationParams} params - 查看产品附件信息详情的参数 * @returns {Promise} - 查看产品附件信息详情的 Promise。 */ declare const getSpecification: (params: GetSpecificationParams) => Promise; /** * CheckHadVideoCloudParams - 查询设备是否有云能力(视频) */ type CheckHadVideoCloudParams = { devId: string; }; /** * GetHighPowerListResponse - 查询设备是否有云能力(视频) */ type CheckHadVideoCloudResponse = { capability: number[]; }; /** * 查询设备是否有云能力(视频) * @param {CheckHadVideoCloudParams} params - 查询设备是否有云能力(视频)参数 * @returns {Promise} - 查询结果的 Promise */ declare const checkHadVideoCloud: (params: CheckHadVideoCloudParams) => Promise; /** * GetDeviceAddValueTypeParams - 查询设备有的高级能力(关联AppMall白名单) */ type GetDeviceAddValueTypeParams = { devId: string; }; /** * GetDeviceAddValueTypeResponse - 查询设备有的高级能力(关联AppMall白名单) */ type GetDeviceAddValueTypeResponse = { id: string; name: string; types: number[]; }; /** * 查询设备有的高级能力(关联AppMall白名单) * @param {GetDeviceAddValueTypeParams} params - 查询设备有的高级能力(关联AppMall白名单)参数 * @returns {Promise} - 查询结果的 Promise */ declare const getDeviceAddValueType: (params: GetDeviceAddValueTypeParams) => Promise; export { setDeviceProperties, getDeviceProperties, syncUnlockMode, queryDateFormat, queryDeviceActiveDate, getUiConfig, getHighPowerList, getLockActivePeriod, getDeviceRotate, getSpecificationList, getSpecification, checkHadVideoCloud, getDeviceAddValueType, };