import type { Session } from '../types.js'; export type SessionTitleSource = 'initial' | 'user' | 'agent' | 'cli' | 'dashboard' | 'system'; export type SessionTitleUpdateResult = { ok: true; title: string; updatedAt: string; source: SessionTitleSource; } | { ok: false; error: 'bad_title'; }; /** 从 Botmux 首轮输入中提取供语义标题模型使用的用户原文。 */ export declare function extractBotmuxLarkNativeSessionTitlePrompt(rawContent: unknown, mentions?: readonly { name: string; }[]): string | undefined; /** 用首次话题内容生成 Codex 原生会话标题,不依赖 Lark SDK 类型。 */ export declare function buildBotmuxLarkNativeSessionTitle(rawContent: unknown, mentions?: readonly { name: string; }[], emptyContentFallback?: unknown): string; export declare function normalizeSessionTitleSource(value: unknown, fallback: SessionTitleSource): SessionTitleSource; /** Persist a display-title change and keep dashboard subscribers in sync. */ export declare function updateSessionTitle(session: Session, rawTitle: unknown, source: SessionTitleSource): SessionTitleUpdateResult; //# sourceMappingURL=session-title.d.ts.map