import { type LedgerRecord } from '../agent/session-ledger.js'; import type { MessageHandler } from './handlers/message.js'; import type { Telegraf } from 'telegraf'; import type { TelegramRoute } from './route.js'; type SendFn = (text: string) => Promise; type LogFn = (...args: unknown[]) => void; export declare function renderLedgerRecord(rec: LedgerRecord): string | null; export declare function resolveWatchTarget(input: string): Promise; export declare function listWatchableSessions(): Promise; export declare class SessionWatchManager { private readonly watches; private readonly log; private readonly bot; private readonly messageHandler; private readonly elicitHeartbeatMs; constructor(log?: LogFn, bot?: Telegraf, messageHandler?: MessageHandler, elicitHeartbeatMs?: number); watching(chatId: number): string | undefined; getWatched(chatId: number): string | undefined; start(chatId: number, sessionId: string, send: SendFn, route?: () => TelegramRoute): void; stop(chatId: number): string | undefined; stopAll(): Promise; private _run; } export {};