type RemoteOpenParams = { devId: string; open: boolean; }; type RemoteOpenResponse = boolean; /** * 远程免密开门 * @param {RemoteOpenParams} params - 包含设备Id和开门状态的参数 * @returns {Promise} - 包含执行结果和状态的响应 */ declare const remoteOpenDoor: (params: RemoteOpenParams) => Promise; type CanUnlockRemoteParams = { devId: string; }; type CanUnlockRemoteResponse = boolean; /** * 获取分享用户在时间段内是否可以开门 * @param {CanUnlockRemoteResponse} params - 包含设备Id的参数 * @returns {Promise} - 包含请求结果和状态的响应 */ declare const checkCanRemoteUnlock: (params: CanUnlockRemoteParams) => Promise; type QueryUnlockRecord = { userName: string; opMode: string; unlockName: string; }; type QueryRecordInfoParams = { devId: string; dpIds: string[]; offset?: number; limit?: number; startTime?: number; endTime?: number; nameless?: boolean; }; type QueryRecordInfoResponse = { id: number; dpId: number; userId: string; unlockName: string; userName: string; avatarUrl: string; time: number; relateDevName: string; relateOpMode?: number; unionUnlockInfo: QueryUnlockRecord[]; }; /** * 查询开门记录 * @param { QueryRecordInfoParams} params - 包含设备Id的参数 * @returns {Promise} - 包含请求结果和状态的响应 */ declare const queryUnlockRecord: (params: QueryRecordInfoParams) => Promise; export { remoteOpenDoor, checkCanRemoteUnlock, queryUnlockRecord };