import { type Bot } from 'grammy'; export declare function resolvePollingStallThresholdMs(value?: number): number; export interface TelegramPollingSessionOptions { accountId: string; botToken: string; bot: Bot; stallThresholdMs?: number; onPoll?: () => void; onRetry?: () => void; onExit?: (err: unknown) => void; } export interface TelegramPollingSession { stop: () => Promise; } export declare function startTelegramPollingSession(options: TelegramPollingSessionOptions): TelegramPollingSession;