type LatestLogParams = { devId: string; }; type UnionUnlockInfo = { userName?: string; opMode?: string; unlockName?: string; currentUser?: boolean; sn?: number; }; type LatestLogResponse = { exist: boolean; logId: number; logCategory: string; logType: string; recordType?: number; unlockNameRosettaKey?: string; currentUser?: boolean; userId?: string; userName?: string; unlockName?: string; time: number; relateDevName?: string; relateOpMode?: string; unionUnlockInfo?: UnionUnlockInfo; data?: string; unReadCount?: number; }; /** * 查询最近一条日志记录 * @param {LatestLogParams} params - 包含设备Id的参数 * @returns {Promise} - 包含请求结果和状态的响应 */ declare const getLatestLog: (params: LatestLogParams) => Promise; type UserAction = { userType: number; userId: number; operClassify: number; operType: number; operDetail: string; toUserType: number; toUserId: number; }; type MediaInfo = { fileUrl: string; fileKey: string; mediaPath: string; mediaBucket: string; mediaKey: string; }; type LogRecord = { logId: number; logCategory: number; logType: string; recordType?: number; unlockNameRosettaKey?: string; currentUser?: boolean; userId?: string; userName?: string; memberBindableFlag: boolean; unlockName?: string; time: number; relateDevName?: string; relateOpMode?: string; unionUnlockInfo?: string; mediaInfoList?: MediaInfo[]; localOperateRecordInfo?: UserAction; }; type QueryLogRecordParams = { devId: string; logCategories?: string[]; userIds?: string[]; onlyShowMediaRecord: boolean; startTime?: number; endTime?: number; lastRowKey?: string; limit: number; }; type QueryLogRecordResponse = LogRecord[]; /** * 查询日志记录 * @param {QueryLogRecordParams} params * @returns {Promise} - 包含请求结果和状态的响应 */ declare const queryLogRecord: (params: QueryLogRecordParams) => Promise; type UploadLogRecordResult = boolean; type UploadLogRecordParams = { devId: string; logType: string; data: string[]; }; /** * 上报操作日志记录 * @param {UploadLogRecordParams} params * @returns {Promise} */ declare const uploadLogRecord: (params: UploadLogRecordParams) => Promise; type QueryAlbumRecordParams = { devId: string; offset: number; limit: number; }; type QueryAlbumRecordResponse = { eventTypes: string; albumList: any[]; }; /** * 分页获取获取可以查看的相册列表 * @param {QueryAlbumRecordParams} params * @returns {Promise} */ declare const queryAlbumRecord: (params: QueryAlbumRecordParams) => Promise; /** * GetPictureUrlParams - 获取实时图片路径地址 */ type GetPictureUrlParams = { devId: string; mediaBucket: string; mediaPath: string; }; /** * GetPictureUrlResponse - 获取实时图片路径地址 */ type GetPictureUrlResponse = { mediaUrl: string; }; /** * 获取实时图片路径地址 * @param {GetPictureUrlParams} params - 获取实时图片路径地址参数 * @returns {Promise} - 查询结果的 Promise */ declare const getPictureUrl: (params: GetPictureUrlParams) => Promise; /** * GetAlarmHistoryParams - 告警记录 */ type GetAlarmHistoryParams = { devId: string; dpIds: string[]; offset?: number; limit?: number; }; /** * MediaInfo - 本次记录对应的图片和视频信息 */ type MediaInfoItem = { fileUrl?: string; fileKey?: string; filePath?: string; mediaUrl?: string; mediaKey?: string; }; /** * Dp - 数据点 */ type Dp = Record; /** * DataItem - 数据项 */ type DataItem = { devId: string; dps: Dp[]; avatar: string; userName: string; gmtCreate: number; uuid: string; userId?: string; tags?: number; status?: number; mediaInfoList?: MediaInfoItem[]; }; /** * GetAlarmHistoryResponse - 告警记录 */ type GetAlarmHistoryResponse = { datas: DataItem[]; hasNext: boolean; totalCount: number; }; /** * 告警记录 * @param {GetAlarmHistoryParams} params - 告警记录参数 * @returns {Promise} - 查询结果的 Promise */ declare const getAlarmHistory: (params: GetAlarmHistoryParams) => Promise; /** * getTwoLatestLogParams - 获取最近两条记录的信息 */ type getTwoLatestLogParams = { devId: string; }; /** * OperateRecord - 操作记录 */ type OperateRecord = { currentUser?: boolean; logCategory: string; logId: string; recordType?: string; unlockNameRosettaKey?: string; unlockName?: string; logType: string; memberBindableFlag: boolean; time: number; userId?: string; userName?: string; relateDevName?: string; relateOpMode?: string; unionUnlockInfo?: UnionUnlockInfo; data?: string; mediaInfoList?: MediaInfo[]; }; /** * getTwoLatestLogResponse - 获取最近两条记录的信息 */ type getTwoLatestLogResponse = { operateRecordVOList: OperateRecord[]; unReadCount: number; }; /** * 获取最近两条记录的信息 * @param {getTwoLatestLogParams} params - 获取最近两条记录的信息参数 * @returns {Promise} - 查询结果的 Promise */ declare const getTwoLatestLog: (params: getTwoLatestLogParams) => Promise; export { getLatestLog, queryLogRecord, uploadLogRecord, queryAlbumRecord, getPictureUrl, getAlarmHistory, getTwoLatestLog, };