import { type Bot } from "grammy"; import type { RuntimeEnv } from "../../runtime.js"; import { buildInlineKeyboard } from "../send.js"; import { type TelegramThreadSpec } from "./helpers.js"; export declare function sendTelegramWithThreadFallback(params: { operation: string; runtime: RuntimeEnv; thread?: TelegramThreadSpec | null; requestParams: Record; send: (effectiveParams: Record) => Promise; shouldLog?: (err: unknown) => boolean; }): Promise; export declare function buildTelegramSendParams(opts?: { replyToMessageId?: number; thread?: TelegramThreadSpec | null; }): Record; export declare function sendTelegramText(bot: Bot, chatId: string, text: string, runtime: RuntimeEnv, opts?: { replyToMessageId?: number; replyQuoteText?: string; thread?: TelegramThreadSpec | null; textMode?: "markdown" | "html"; plainText?: string; linkPreview?: boolean; replyMarkup?: ReturnType; }): Promise;