import { EventEmitter } from "node:events"; import type { Bot } from "./Bot.js"; /** Options for the bot chat event emitter. */ export interface BotChatEmitterOptions { /** * The interval in seconds at which the bot will poll the chat log endpoint. * @default 5 */ pollingInterval?: number; } export declare class BotChatEmitter extends EventEmitter { protected bot: Bot; /** * The interval in seconds at which the bot will poll the chat log endpoint. */ private pollingInterval; /** Used to cancel polling. */ private pollingController?; /** The cursor to use for the next poll. */ private cursor?; /** Whether the emitter is emitting events. */ emitting: boolean; /** * @param options The options for the event emitter. * @param bot The active Bot instance. */ constructor(options: BotChatEmitterOptions, bot: Bot); /** Start polling the chat log endpoint. */ start(): void; /** Stop emitting events. */ stop(): void; /** Poll the chat log endpoint. */ poll(): Promise; }