import type { Bot } from "grammy"; import { type TelegramThreadSpec } from "./bot/helpers.js"; export type TelegramDraftStream = { update: (text: string) => void; flush: () => Promise; stop: () => void; }; export declare function createTelegramDraftStream(params: { api: Bot["api"]; chatId: number; draftId: number; maxChars?: number; thread?: TelegramThreadSpec | null; throttleMs?: number; log?: (message: string) => void; warn?: (message: string) => void; }): TelegramDraftStream;