import { BotChatJoinRequestUpdate, BusinessMessage, Chat, ChatMemberUpdate, ChatType, DeleteBusinessMessageUpdate, HistoryReadUpdate, MaybeArray, Message, Peer, PollVoteUpdate, User, UserTypingUpdate } from '@mtcute/core'; import { UpdateContextDistributed } from '../context/base.js'; import { EmptyObject, Modify, UpdateFilter } from './types.js'; /** * Filter updates by type of the chat where they happened */ export declare function chat(type: T): UpdateFilter; } & (Obj extends Message ? T extends 'user' | 'group' ? { sender: User; } : { sender: Chat; } : EmptyObject)>; /** * Filter updates by marked chat ID(s) or username(s) * * Note that only some updates support filtering by username. * * For messages, this filter checks for chat where the message * was sent to, NOT the chat sender. */ export declare const chatId: { (id: MaybeArray): UpdateFilter>; (id: MaybeArray): UpdateFilter>; };