import type { Database } from "../data/memory/schema.js"; import type { ThreadLifecycleService } from "./thread-lifecycle.service.js"; type TopicTelegram = { createForumTopic(chatId: string, name: string): Promise<{ message_thread_id: number; }>; sendMessage(chatId: string, text: string, parseMode?: string, threadId?: number): Promise; }; export declare function createManagedTopic(telegram: TopicTelegram, chatId: string, topicName: string, aliases?: string[]): Promise; export declare function resolveExistingTopic(chatId: string, names: string[]): number | undefined; /** * Recreate a thread's Telegram topic and repoint the thread at it. * Shared by the lazy probe/remap path and the eager unarchive path so a * dormant unarchived thread gets a live topic without waiting to send. * Returns the new Telegram topic id. */ export declare function remapThreadToNewTopic(opts: { telegram: TopicTelegram; chatId: string; logicalThreadId: number; topicName: string; db: Database; threadLifecycle: ThreadLifecycleService; aliases?: string[]; }): Promise; export declare function probeOrRemapTopic(opts: { telegram: TopicTelegram; chatId: string; logicalThreadId: number; topicName: string; db: Database; threadLifecycle: ThreadLifecycleService; aliases?: string[]; probeText: string; allowWorkerRemap?: boolean; }): Promise<{ remapped: boolean; }>; export declare function deleteTelegramTopicByBotApi(token: string, chatId: string, topicId: number, apiBaseUrl?: string): Promise; export {}; //# sourceMappingURL=topic.service.d.ts.map