import { ITelegramClient } from '../../client.types.js'; import { InputPeerLike } from '../../types/index.js'; /** * Set whether a channel/supergroup has join requests enabled. * * > **Note**: this method only affects primary invite links. * > Additional invite links may exist with the opposite setting. * * @param chatId Chat ID or username * @param enabled Whether join requests should be enabled */ export declare function toggleJoinRequests(client: ITelegramClient, chatId: InputPeerLike, enabled?: boolean): Promise;