import type { SessionTranscript } from "../agent/types.js"; /** 仅在用户原文和注入上下文拼在同一条 user 里时包裹。 */ export declare function wrapInjectedUserMessage(content: string): string; /** 整段都是已知注入/harness,没有用户原文。 */ export declare function isStandaloneInjectedContext(content: string): boolean; /** list 概要用:解开 tag / 去掉注入前缀,引用结构保持原文。 */ export declare function visibleUserPayload(content: string): string; export declare function readClaudeTranscript(file: string, agentSessionId: string): SessionTranscript; export declare function readCodexTranscript(file: string, agentSessionId: string, backend?: string): SessionTranscript; export declare function readCursorTranscript(file: string, agentSessionId: string): SessionTranscript; export declare function readPiTranscript(file: string, agentSessionId: string): SessionTranscript; /** * Grok 的完整 tool 参数/输出在 chat_history.jsonl: * - assistant.tool_calls[]: { id, name, arguments } * - tool_result: { tool_call_id, content } * - backend_tool_call: { kind: { tool_type, action } } * * events.jsonl 只有 tool_started/tool_completed 生命周期,不含参数与输出, * 因此不再用它拼空壳 tool 事件。参数保留以兼容既有调用方。 */ export declare function readGrokTranscript(file: string, agentSessionId: string, _eventsFile?: string): SessionTranscript; export declare function transcriptFromOpencodeRows(agentSessionId: string, rows: Iterable<{ message_data: string; part_data: string; time_created: number | null; }> | AsyncIterable<{ message_data: string; part_data: string; time_created: number | null; }>): SessionTranscript;