import type { ChallengeAuth } from "../auth/challenge-auth.js"; import type { ExternalMessage } from "../types.js"; import type { ITransportProvider } from "./interface.js"; /** * Telegram transport provider using node-telegram-bot-api */ export declare class TelegramProvider implements ITransportProvider { private token; private auth; readonly type = "telegram"; private bot?; private _isConnected; private messageHandler?; private errorHandler?; private lastProcessedMessageId; constructor(token: string, auth: ChallengeAuth); get isConnected(): boolean; /** * Convert standard markdown to Telegram markdown format * Telegram markdown: *bold* _italic_ `code` [link](url) * Standard markdown: **bold** *italic* `code` [link](url) */ private formatForTelegram; connect(): Promise; disconnect(): Promise; sendMessage(chatId: string, text: string): Promise; sendTyping(chatId: string): Promise; onMessage(handler: (message: ExternalMessage) => void): void; onError(handler: (error: Error) => void): void; private handleMessage; } //# sourceMappingURL=telegram.d.ts.map