import { ITelegramClient } from '../../client.types.js'; import { InputPeerLike, Message } from '../../types/index.js'; /** * Ban a user/channel from a legacy group, a supergroup or a channel. * They will not be able to re-join the group on their own, * manual administrator's action will be required. * * When banning a channel, the user won't be able to use * any of their channels to post until the ban is lifted. * * @returns Service message about removed user, if one was generated. */ export declare function banChatMember(client: ITelegramClient, params: { /** Chat ID */ chatId: InputPeerLike; /** ID of the user/channel to ban */ participantId: InputPeerLike; untilDate?: number | Date; /** * Whether to dispatch the returned service message (if any) * to the client's update handler. */ shouldDispatch?: true; }): Promise;