/*! * Copyright 2021 WPPConnect Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { ChatModel, MsgModel } from '../models'; /** * @whatsapp WAWebUpdateUnreadChatAction >= 2.3000.1031992593 */ export declare function markUnread(chat: ChatModel, whenAvailable: boolean, showToast?: boolean): Promise; /** * @whatsapp 561498 >= 2.2228.4 * @deprecated Use sendSeen({chat}) for versions >= 2.3000.1031992593 */ export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise; /** * @whatsapp WAWebUpdateUnreadChatAction >= 2.3000.1031992593 */ export declare function sendSeen(options: { chat: ChatModel; threadId?: string | null; afterAvailable?: boolean; }): Promise; /** @whatsapp 30734 * @whatsapp 730734 >= 2.2222.8 * @whatsapp 242050 >= 2.2228.4 */ export declare function markPlayed(msg: MsgModel): Promise; /** * @whatsapp 64850 * @whatsapp 242050 >= 2.2228.4 */ export declare function canMarkPlayed(msg: MsgModel): boolean;