import type { CodexPlanUpdate } from "./codex-protocol.js"; type AgentHistoryMessage = { id: string; role: "user" | "assistant" | "tool" | "error"; title?: string; text: string; detail?: unknown; streamId?: string; }; /** 将 Codex 线程转换为列表展示所需的摘要。 */ export declare function summarizeCodexThread(thread: unknown): { id: string; sessionId: string; preview: string; name: string | null; cwd: string; status: string; source: unknown; threadSource: unknown; createdAt: number; updatedAt: number; }; /** 将 Codex turn items 转换为网页聊天历史。 */ export declare function threadMessages(thread: unknown, planUpdates?: CodexPlanUpdate[]): AgentHistoryMessage[]; export {};