export interface CodexAppThreadSummary { threadId: string; name?: string; preview: string; cwd: string; updatedAtMs?: number; createdAtMs?: number; path?: string; source?: string; status?: string; } export interface ListCodexAppThreadsOptions { codexBin?: string; cwd?: string; limit?: number; searchTerm?: string; timeoutMs?: number; initializeTimeoutMs?: number; } export interface SetCodexAppThreadNameOptions { threadId: string; name: string; codexBin?: string; cwd?: string; env?: NodeJS.ProcessEnv; timeoutMs?: number; initializeTimeoutMs?: number; signal?: AbortSignal; detached?: boolean; waitForExistingPreview?: boolean; waitForUpdatedAfter?: number; registerForceClose?: (forceClose: () => void) => (() => void); } export interface ReadCodexAppThreadMetadataOptions { threadId: string; codexBin?: string; cwd?: string; env?: NodeJS.ProcessEnv; timeoutMs?: number; signal?: AbortSignal; detached?: boolean; registerForceClose?: (forceClose: () => void) => (() => void); } export interface GenerateCodexAppThreadTitleOptions { sourceText: string; codexBin?: string; env?: NodeJS.ProcessEnv; model?: string; timeoutMs?: number; signal?: AbortSignal; detached?: boolean; registerForceClose?: (forceClose: () => void) => (() => void); } export interface CodexAppThreadMetadata { name?: string; preview?: string; updatedAt?: number; } /** * 在隔离的临时 Codex 线程中生成语义标题。 * 任意协议、模型或清理失败都回退为 undefined,不能影响真正的用户会话。 */ export declare function generateCodexAppThreadTitle(opts: GenerateCodexAppThreadTitleOptions): Promise; export declare function listCodexAppThreads(opts?: ListCodexAppThreadsOptions): Promise; /** 等待首条消息预览落盘后设置最终标题;预览缺失时超时兜底写入。 */ export declare function setCodexAppThreadName(opts: SetCodexAppThreadNameOptions): Promise; /** 读取 resume 前的线程更新时间,用于等待下一次 append 的元数据补丁完成。 */ export declare function readCodexAppThreadMetadata(opts: ReadCodexAppThreadMetadataOptions): Promise; //# sourceMappingURL=codex-app-threads.d.ts.map