import { Page, Browser } from 'puppeteer'; import { CreateConfig } from '../../config/create-config'; import { UILayer } from './ui.layer'; export declare class ControlsLayer extends UILayer { browser: Browser; page: Page; constructor(browser: Browser, page: Page, session?: string, options?: CreateConfig); /** * Unblock contact * @param contactId {string} id '000000000000@c.us' * @returns boolean */ unblockContact(contactId: string): Promise; /** * Block contact * @param contactId {string} id '000000000000@c.us' * @returns boolean */ blockContact(contactId: string): Promise; /** * Mark unread chat * @param contactId {string} id '000000000000@c.us' * @returns bollean */ markUnseenMessage(contactId: string): Promise; /** * Mark chat as read ✔️✔️ * @param contactId {string} id '000000000000@c.us' * @returns boolean */ markMarkSeenMessage(contactId: string): Promise; /** * Deletes the given chat * @param chatId {string} id '000000000000@c.us' * @returns boolean */ deleteChat(chatId: string): Promise; /** * Archive and unarchive chat messages with true or false * @param chatId {string} id '000000000000@c.us' * @param option {boolean} true or false * @returns boolean */ archiveChat(chatId: string, option: boolean): Promise; /** * Pin and Unpin chat messages with true or false * @param chatId {string} id '000000000000@c.us' * @param option {boolean} true or false * @param nonExistent {boolean} Pin chat, non-existent (optional) * @returns object */ pinChat(chatId: string, option: boolean, nonExistent?: boolean): Promise; /** * Deletes all messages of given chat * @param chatId * @returns boolean */ clearChatMessages(chatId: string): Promise; /** * Deletes message of given message id * @param chatId The chat id from which to delete the message. * @param messageId The specific message id of the message to be deleted * @param onlyLocal If it should only delete locally (message remains on the other recipienct's phone). Defaults to false. */ deleteMessage(chatId: string, messageId: string[]): Promise; /** * Archive and unarchive chat messages with true or false * @param chatId {string} id '000000000000@c.us' * @param option {boolean} true or false * @returns boolean */ setMessagesAdminsOnly(chatId: string, option: boolean): Promise; reload(): Promise; }