import { ITelegramClient } from '../../client.types.js'; import { InputPeerLike } from '../../types/index.js'; /** * Leave a group chat, supergroup or channel * * @param chatId Chat ID or username */ export declare function leaveChat(client: ITelegramClient, chatId: InputPeerLike, params?: { /** * Whether to clear history after leaving (only for legacy group chats) */ clear?: boolean; }): Promise;