import type { InspectOptionsStylized } from 'node:util'; import { INSPECT } from '../generated/inspect.js'; import { PollOption } from '../generated/structures.js'; import type { TelegramPollOption } from '../generated/types.js'; type InspectFn = (value: unknown, options: InspectOptionsStylized) => string; /** * the options of a poll * * wraps the `PollOption[]` payload as a single ergonomic object exposing the leading option * and the summed vote count. iterating yields `PollOption` wrappers in payload order */ export declare class PollOptions { raw: TelegramPollOption[]; private _options?; constructor(raw: TelegramPollOption[]); /** lazily-wrapped `PollOption` instances for every option */ get options(): PollOption[]; /** number of options */ get length(): number; /** every option's votes summed; exceeds `Poll.totalVoterCount` when the poll allows multiple answers */ get totalVotes(): number; /** option with the most votes, first one on a tie */ get winner(): PollOption; /** wrap a raw `PollOption[]` payload in a `PollOptions` */ static fromPayload(raw: TelegramPollOption[]): PollOptions; /** option with the given `persistent_id`, or undefined */ byId(persistentId: string): PollOption | undefined; [Symbol.iterator](): ArrayIterator; [INSPECT](depth: number, options: InspectOptionsStylized, inspect: InspectFn): string; } export {}; //# sourceMappingURL=poll-options.d.ts.map