/** * GetAudioSwitchParams - 查询音箱密码是否开启参数 */ type GetAudioSwitchParams = { devId: string; }; /** * GetAudioSwitchResult - 查询音箱密码是否开启结果 */ type GetAudioSwitchResult = boolean; /** * 查询音箱密码是否开启 * @param {GetAudioSwitchParams} params - 查询音箱密码是否开启参数 * @returns {Promise} - 查询音箱密码是否开启结果的 Promise */ declare const getAudioSwitch: (params: GetAudioSwitchParams) => Promise; /** * SetAudioSwitchParams - 设置或取消音箱密码 */ type SetAudioSwitchParams = { devId: string; open: boolean; pwd: string; }; /** * SetAudioSwitchResult - 设置或取消音箱密码 */ type SetAudioSwitchResult = boolean; /** * 设置或取消音箱密码 * @param {SetAudioSwitchParams} params - 设置或取消音箱密码参数 * @returns {Promise} - 设置或取消音箱密码结果的 Promise */ declare const setAudioSwitch: (params: SetAudioSwitchParams) => Promise; /** * GetVoiceFileListParams - 获取语音文件列表 */ type GetVoiceFileListParams = { devId: string; }; /** * FileItem - 文件项类型 */ type FileItem = { fileType: number; describe: string; fileKey: string; version: string; fileStatus: number; }; /** * GetHighPowerListResponse - 获取语音文件列表 */ type GetVoiceFileListResponse = FileItem[]; /** * 获取语音文件列表 * @param {GetVoiceFileListParams} params - 获取语音文件列表参数 * @returns {Promise} - 查询结果的 Promise */ declare const getVoiceFileList: (params: GetVoiceFileListParams) => Promise; /** * GetDownloadUrlParams - 获取语音文件下载地址参数 */ type GetDownloadUrlParams = { devId: string; fileKey: string; }; /** * GetDownloadUrlResponse - 获取语音文件下载地址响应 */ type GetDownloadUrlResponse = string; /** * 获取语音文件下载地址 * @param {GetDownloadUrlParams} params - 获取语音文件下载地址参数 * @returns {Promise} - 设置结果的 Promise */ declare const getDownloadUrl: (params: GetDownloadUrlParams) => Promise; /** * GetBleGeofenceListParams - 获取当前用户在设备下的地理围栏场景信息参数 */ type GetBleGeofenceListParams = { devId: string; }; /** * RuleVO - 规则详细信息 */ type RuleVO = { id: number; name: string; devId: string; ownerId: number; uid: string; status: boolean; module: string; geoTitle: string; centerLng: string; centerLat: string; radius: string; activeTime: number; rssi?: string; displayColor?: string; icon?: string; background?: string; title?: string; }; /** * GetBleGeofenceListResponse - 获取当前用户在设备下的地理围栏场景信息响应 */ type GetBleGeofenceListResponse = { code: string; title: string; description: string; displayColor: string; icon: string; background: string; enable: boolean; ruleVO: RuleVO; }; /** * 获取当前用户在设备下的地理围栏场景信息 * @param {GetBleGeofenceListParams} params - 获取当前用户在设备下的地理围栏场景信息参数 * @returns {Promise} - 设置结果的 Promise */ declare const getBleGeofenceList: (params: GetBleGeofenceListParams) => Promise; /** * RegisterBleCloudGeofenceParams - 注册地理围栏 */ type RegisterBleCloudGeofenceParams = { devId: string; ownerId: number; geoFenceInfo: GeoFenceInfo; }; type GeoFenceInfo = { module: string; geoTitle?: string; centerLng: string; centerLat: string; radius: string; activeTime: number; rssi?: string; displayColor?: string; icon?: string; background?: string; title?: string; }; /** * RegisterBleCloudGeofenceResponse - 注册地理围栏 */ type RegisterBleCloudGeofenceResponse = { id: number; devId: string; ownerId: number; uid: string; status: boolean; module: string; geoTitle?: string; centerLng: string; centerLat: string; radius: string; activeTime: number; rssi?: string; displayColor?: string; icon?: string; background?: string; title?: string; }; /** * 注册地理围栏 * @param {RegisterBleCloudGeofenceParams} params - 注册地理围栏参数 * @returns {Promise} - 查询结果的 Promise */ declare const registerBleCloudGeofence: (params: RegisterBleCloudGeofenceParams) => Promise; /** * EditBleCloudGeofenceParams - 修改地理围栏 */ type EditBleCloudGeofenceParams = { id: number; geoFenceInfo: GeoFenceInfo; }; /** * GetHighPowerListResponse - 修改地理围栏 */ type EditBleCloudGeofenceResponse = boolean; /** * 修改地理围栏 * @param {EditBleCloudGeofenceParams} params - 修改地理围栏参数 * @returns {Promise} - 查询结果的 Promise */ declare const editBleCloudGeofence: (params: EditBleCloudGeofenceParams) => Promise; /** * HandleBleCloudGeofenceParams - 开启/关闭 地理围栏 */ type HandleBleCloudGeofenceParams = { id: number; targetStatus: boolean; }; /** * HandleBleCloudGeofenceResponse - 开启/关闭 地理围栏 */ type HandleBleCloudGeofenceResponse = boolean; /** * 开启/关闭 地理围栏 * @param {HandleBleCloudGeofenceParams} params - 开启/关闭 地理围栏参数 * @returns {Promise} - 查询结果的 Promise */ declare const handleBleCloudGeofence: (params: HandleBleCloudGeofenceParams) => Promise; /** * GetRemoteOpenKeyParams - 获取蓝牙开门密钥 */ type GetRemoteOpenKeyParams = { devId: string; }; /** * GetHighPowerListResponse - 获取蓝牙开门密钥 */ type GetRemoteOpenKeyResponse = { devUnlockId: string; dpId: number; wakeUpIns: string; distributed: boolean; ins: string; }; /** * 获取蓝牙开门密钥 * @param {GetRemoteOpenKeyParams} params - 获取蓝牙开门密钥参数 * @returns {Promise} - 查询结果的 Promise */ declare const getRemoteOpenKey: (params: GetRemoteOpenKeyParams) => Promise; /** * GetCountryListParams - 获取国家名称 */ type GetCountryListParams = { lang: string; }; /** * GetCountryListResponse - 获取国家名称 */ type GetCountryListResponse = Record; /** * 获取国家名称 * @param {GetCountryListParams} params - 获取国家名称参数 * @returns {Promise} - 查询结果的 Promise */ declare const getCountryList: (params: GetCountryListParams) => Promise; /** * GetUserRegionResult - 获取当前帐号所属地区结果 */ type GetUserRegionResult = { region: string; }; /** * 获取当前帐号所属地区 * @param {GetUserRegionParams} params - 获取当前帐号所属地区的参数 * @returns {Promise} - 带有获取当前帐号所属地区结果的 Promise。 */ declare const getUserRegion: () => Promise; export { getAudioSwitch, setAudioSwitch, getVoiceFileList, getDownloadUrl, getBleGeofenceList, registerBleCloudGeofence, editBleCloudGeofence, handleBleCloudGeofence, getRemoteOpenKey, getCountryList, getUserRegion, };