import type { Chat, Context, Filter, User } from "@yaebal/core"; /** * who/where filters. all of them read `ctx.from` / `ctx.chat`, which cover * every update kind that carries a user or a chat (messages, callback and * inline queries, member updates, join requests, reactions, boosts, …). */ /** match numeric ids and `@usernames` (case-insensitive, `@` optional). */ export declare function idMatcher(ids: readonly (number | string)[]): (peer: { id: number; username?: string; }) => boolean; /** chat is one of the given types; narrows `ctx.chat` to them. */ export declare function chatType(...types: readonly T[]): Filter; export declare const isPrivate: Filter; export declare const isGroup: Filter; export declare const isChannel: Filter; /** chat is a forum supergroup (has topics). */ export declare const isForum: Filter; /** update is in one of the given chats — by id or `@username`. */ export declare function chatId(...ids: (number | string)[]): Filter; /** update is from one of the given users — by id or `@username`. */ export declare function fromUser(...ids: (number | string)[]): Filter; /** update is from a bot. */ export declare const fromBot: Filter; /** update is from a Telegram Premium user. */ export declare const isPremium: Filter; //# sourceMappingURL=peer.d.ts.map