import { ITelegramClient } from '../../client.types.js';
import { InputPeerLike, Chat } from '../../types/index.js';
/**
 * Join a channel or supergroup
 *
 * When using with invite links, this method may throw RPC error
 * `INVITE_REQUEST_SENT`, which means that you need to wait for admin approval.
 * You will get into the chat once they do so.
 *
 * @param chatId
 *   Chat identifier. Either an invite link (`t.me/joinchat/*`), a username (`@username`)
 *   or ID of the linked supergroup or channel.
 */
export declare function joinChat(client: ITelegramClient, chatId: InputPeerLike): Promise<Chat>;
