/** * Telegram outbound adapter: text chunker + sendText / sendMedia / sendPayload. */ import type { ChannelOutboundContext, ChannelOutboundPayloadContext, OutboundDeliveryResult } from '@xopcai/xopc/channels/plugin-types.js'; import type { ChannelSendOptions, ChannelSendResult } from '@xopcai/xopc/channels/channel-domain.js'; import type { TelegramAccountManager } from '../account-manager.js'; export declare function telegramTextChunker(text: string, limit: number): string[]; export declare function createTelegramOutboundSendMethods(send: (options: ChannelSendOptions) => Promise, accountManager?: TelegramAccountManager): { sendText: (ctx: ChannelOutboundContext) => Promise; sendMedia: (ctx: ChannelOutboundContext) => Promise; sendPayload: (ctx: ChannelOutboundPayloadContext) => Promise; }; export declare const TELEGRAM_OUTBOUND_DEFAULTS: { readonly textChunkLimit: 4000; };