/** * Telegram Send Options Utilities * * Build send options for Telegram API, parse data URLs, and resolve media methods. * Extracted to eliminate code duplication in outbound-sender.ts */ export interface TelegramSendParams { threadId?: string; replyToMessageId?: string; silent?: boolean; parseMode?: 'HTML' | 'Markdown'; caption?: string; } export type TelegramMediaMethod = 'sendPhoto' | 'sendVideo' | 'sendAudio' | 'sendDocument' | 'sendVoice'; /** * Build Telegram API send options * Eliminates duplicate code across multiple send paths */ export declare function buildSendOptions(params: TelegramSendParams): Record; /** * Parse data URL into mimeType and buffer * Supports: data:mime/type;base64,DATA */ export declare function parseDataUrl(dataUrl: string): { mimeType: string; buffer: Buffer; } | null; /** * Resolve media method based on mime type or category */ export declare function resolveMediaMethod(mimeTypeOrCategory: string): TelegramMediaMethod;