import { Connection } from '../../../skychat/Connection.js'; import { Poll, PollOptions } from './Poll.js'; import { GlobalPlugin } from '../../GlobalPlugin.js'; export declare class PollPlugin extends GlobalPlugin { static readonly POLL_CREATION_COOL_DOWN: number; static readonly POLL_TIMEOUT: number; static readonly commandName = "poll"; static readonly commandAliases: string[]; readonly minRight: number; private polls; readonly rules: { poll: { minCount: number; coolDown: number; params: { name: string; pattern: RegExp; }[]; }; vote: { minCount: number; maxCount: number; maxCallsPer10Seconds: number; params: { name: string; pattern: RegExp; }[]; }; }; run(alias: string, param: string, connection: Connection): Promise; /** * Create a new poll * @param param * @param connection */ private handlePoll; /** * Handle when an user answers to a specific poll * @param param * @param connection */ private handleVote; /** * Create a new poll and notify clients in the room * @param title * @param content * @param options */ poll(title: string, content: string, options: PollOptions): Promise; }