import type { Button } from './types'; import type { InlineKeyboardButton } from '@telegraf/types'; /** * This function converts standard markdown to Telegram MarkdownV2. * * In addition to processing code blocks, inline code, links, bold, strikethrough, and italic, * it converts any header lines (those starting with one or more `#`) to bold text. * * Note: This solution uses a sequence of regex‐replacements and placeholders. * It makes assumptions about non–nested formatting and does not cover every edge case. */ export declare function convertMarkdownToTelegram(markdown: string): string; /** * Splits a message into chunks that fit within Telegram's message length limit */ /** * Splits a text message into chunks based on a maximum length for each chunk. * * @param {string} text - The text message to split. * @param {number} maxLength - The maximum length for each chunk (default is 4096). * @returns {string[]} An array containing the text message split into chunks. */ export declare function splitMessage(text: string, maxLength?: number): string[]; /** * Converts Eliza buttons into Telegram buttons * @param {Button[]} buttons - The buttons from Eliza content * @returns {InlineKeyboardButton[]} Array of Telegram buttons */ export declare function convertToTelegramButtons(buttons?: Button[] | null): InlineKeyboardButton[]; /** * Clean text by removing all NULL (\u0000) characters * @param {string | undefined | null} text - The text to clean * @returns {string} The cleaned text */ export declare function cleanText(text: string | undefined | null): string;