import type { ActionControllerLike, ActionControllerParams, SendChatActionParams, TelegramLike } from '@puregram/api'; type ChatActionSender = Pick; /** * re-sends `sendChatAction(action)` on an interval until `stop()` is called — * telegram clears the action after ~5 seconds, so a long task needs it refreshed */ export declare class ChatActionController implements ActionControllerLike { /** the chat action being sent — reassign to switch it mid-flight */ action: SendChatActionParams['action']; /** interval between calls, in milliseconds */ interval: number; /** initial delay before the first call, in milliseconds */ wait: number; /** timeout in milliseconds; `0` disables it */ timeout: number; started: boolean; private abortController?; private readonly tg; private readonly chatId; private readonly params; constructor(tg: ChatActionSender, chatId: number | string, action: SendChatActionParams['action'], options?: ActionControllerParams); /** starts the `sendChatAction(action)` loop until `stop()` is called */ start(): void; /** stops the loop */ stop(): void; private loop; } export {}; //# sourceMappingURL=chat-action.d.ts.map