/** * nbt messages / sessions 共用的话题范围解析。 * * 话题群的默认查询范围是“当前话题”,显式 `--all-threads` 才看整个群。 * 切到另一个 chat 时不能继承当前话题,避免把别的聊天过滤成空。 */ import type Database from "better-sqlite3"; export interface ResolvedHistoryThreadScope { threadId?: string; allThreads: boolean; } export declare function chatIsIsolatedTopic(db: Database.Database, chatId: string | undefined): boolean; export declare function resolveHistoryThreadScope(flags: Record, currentChatId: string | undefined, targetChatId: string | undefined, currentThreadId?: string, isolatedTopicChat?: boolean): ResolvedHistoryThreadScope; export declare function historyThreadLabel(threadId: string | null | undefined): string;