import { type UpdateKind } from '@puregram/api'; type MaybeArray = T | readonly T[]; /** * helper for bot-api `allowed_updates`. telegram's default subscription * excludes opt-in kinds like `chat_member` and `business_message` — to receive * them you must list every desired kind explicitly. `UpdatesFilter.all()` returns * every kind; `UpdatesFilter.except(...)` returns everything-but-N * * @example * ```ts * const telegram = new Telegram({ * token: process.env.TOKEN, * allowedUpdates: UpdatesFilter.all() * }) * * await telegram.startPolling({ * allowedUpdates: UpdatesFilter.except(['business_connection', 'business_message']) * }) * ``` */ export declare class UpdatesFilter { /** every update kind, including the opt-in ones */ static all(): (keyof import("@puregram/api").UpdateKindMap)[]; /** every update kind except the listed ones */ static except(kinds: MaybeArray): (keyof import("@puregram/api").UpdateKindMap)[]; } export {}; //# sourceMappingURL=updates-filter.d.ts.map