import type { TranscriptEntry } from "../types/agent.js"; export interface ExtractedFields { text: string | null; toolName: string | null; toolInput: Record | null; toolInputSummary: string | null; toolResultText: string | null; errorMessage: string | null; toolId: string | null; /** * ACP `kind` field — semantic tool category populated by ACP-based adapters * (Gemini, etc.). Values include `read`, `edit`, `delete`, `move`, `search`, * `execute`, `think`, `fetch`, `switch_mode`, `other`. Used to classify * interactions whose `toolName` is a human-readable title rather than a * stable tool identifier. */ kind: string | null; } /** * Extract adapter-agnostic fields from a raw transcript entry. * Tries known adapter content shapes in priority order, with graceful fallbacks. */ export declare function extractFields(entry: TranscriptEntry): ExtractedFields; /** * Extract tool name from content, trying adapter-specific shapes in priority order: * 1. content.tool_name (Gemini) * 2. content.name (Codex items, some custom adapters) * 3. content.type for Codex item types (command_execution, mcp_tool_calls, etc.) * 4. Nested message.content[].name (Claude Code) */ export declare function extractToolName(content: Record): string | null; //# sourceMappingURL=extract.d.ts.map