import type { ConversationLogMessage, RunAnswer } from "../../types.js"; import type { Message } from "grammy/types"; import type { ConversationEvent, MessagingEventHandler, MessagingInfo, MessagingBot } from "../../types.js"; import type { TelegramMessagingBotOptions } from "./types.js"; export declare class TelegramMessagingBot implements MessagingBot { private client; private handler; private botToken; private workspace; private botUserId; private botUsername; private stopped; private queues; private intake; private startupTime; private readonly onPollingFailure; constructor(handler: MessagingEventHandler, options: TelegramMessagingBotOptions); start(): Promise; stop(): Promise; postMessage(channel: string, text: string): Promise; addReaction(channel: string, messageTs: string, emoji: string): Promise; updateMessage(channel: string, ts: string, text: string): Promise; enqueueEvent(event: ConversationEvent): boolean; getMessagingInfo(): MessagingInfo; postMessageRaw(chatId: number, text: string): Promise; postPlainMessage(chatId: number, text: string): Promise; postReply(chatId: number, replyToMessageId: number, text: string): Promise; deleteMessageRaw(chatId: number, messageId: number): Promise; sendTyping(chatId: number): Promise; uploadFile(channel: string, filePath: string, title?: string): Promise; logToFile(channel: string, entry: ConversationLogMessage): void; logBotResponse(channel: string, text: string, ts: string, threadTs?: string, { answer }?: { answer?: RunAnswer; }): void; processAttachments(chatId: string, message: Message): Promise<{ name: string; localPath: string; }[]>; private telegramFileItem; private getQueue; private extractMessageContext; private isAddressedToMessagingBot; private cleanText; private setupEventHandlers; } //# sourceMappingURL=bot.d.ts.map