import type { InspectOptionsStylized } from 'node:util'; import { INSPECT } from '../generated/inspect.js'; import type { TelegramReactionType } from '../generated/types.js'; type InspectFn = (value: unknown, options: InspectOptionsStylized) => string; /** * a set of reactions on a message * * wraps the `ReactionType[]` payload as a single ergonomic object exposing the emoji and * custom-emoji ids without hand-narrowing the union. iterating yields the raw * `TelegramReactionType` entries in payload order — `ReactionType` is a union with no * wrapper class of its own */ export declare class Reactions { raw: TelegramReactionType[]; private _emojis?; private _customEmojiIds?; constructor(raw: TelegramReactionType[]); /** number of reactions */ get length(): number; /** emoji of every standard emoji reaction, in payload order */ get emojis(): string[]; /** id of every custom-emoji reaction, in payload order. feeds `getCustomEmojiStickers` */ get customEmojiIds(): string[]; /** wrap a raw `ReactionType[]` payload in a `Reactions` */ static fromPayload(raw: TelegramReactionType[]): Reactions; /** whether a standard emoji reaction with this emoji is present */ has(emoji: string): boolean; /** whether a custom-emoji reaction with this id is present */ hasCustomEmoji(customEmojiId: string): boolean; /** whether a paid (telegram stars) reaction is present */ hasPaid(): boolean; /** * whether an equivalent reaction is present — emoji matched by emoji, custom emoji by id, * anything else by type */ includes(reaction: TelegramReactionType): boolean; [Symbol.iterator](): ArrayIterator; [INSPECT](depth: number, options: InspectOptionsStylized, inspect: InspectFn): string; } export {}; //# sourceMappingURL=reactions.d.ts.map