import { ITelegramClient } from '../../client.types.js';
import { InputPeerLike } from '../../types/peers/index.js';
/**
 * Inform the library that the user has opened a chat.
 *
 * Some library logic depends on this, for example, the library will
 * periodically ping the server to keep the updates flowing.
 *
 * > **Warning**: Opening a chat with `openChat` method will make the library make additional requests
 * > every so often. Which means that you should **avoid opening more than 5-10 chats at once**,
 * > as it will probably trigger server-side limits and you might start getting transport errors
 * > or even get banned.
 *
 * @param chat  Chat to open
 */
export declare function openChat(client: ITelegramClient, chat: InputPeerLike): Promise<void>;
/**
 * Inform the library that the user has closed a chat.
 * Un-does the effect of {@link openChat}.
 *
 * Some library logic depends on this, for example, the library will
 * periodically ping the server to keep the updates flowing.
 *
 * @param chat  Chat to open
 */
export declare function closeChat(client: ITelegramClient, chat: InputPeerLike): Promise<void>;
