import { type RunOptions } from "@grammyjs/runner"; import { createTelegramBot } from "./bot.js"; type TelegramPollingSessionOpts = { token: string; config: Parameters[0]["config"]; accountId: string; runtime: Parameters[0]["runtime"]; proxyFetch: Parameters[0]["proxyFetch"]; abortSignal?: AbortSignal; runnerOptions: RunOptions; getLastUpdateId: () => number | null; persistUpdateId: (updateId: number) => Promise; log: (line: string) => void; }; export declare class TelegramPollingSession { #private; private readonly opts; constructor(opts: TelegramPollingSessionOpts); get activeRunner(): import("@grammyjs/runner").RunnerHandle | undefined; markForceRestarted(): void; abortActiveFetch(): void; runUntilAbort(): Promise; } export {};