/** * Represents a parsed tool call operation from session logs */ export interface Operation { timestamp: string; toolName: string; tokens: number; metadata: string; } /** * Result of parsing a session log file */ export interface SessionLogData { operations: Operation[]; toolTokens: number; systemReminderTokens: number; } /** * Parse a JSONL session log file and extract operations and token statistics * * This utility extracts tool call operations and system reminder tokens from * session log files, normalizing metadata to strings for consistent handling. * * Uses streaming with readline to avoid blocking the event loop on large files. * * @param jsonlFilePath - Path to the session-log.jsonl file * @returns Parsed operations and token counts * * @remarks * - Skips malformed JSONL lines silently * - Normalizes object metadata to JSON strings * - Returns empty arrays/zeros if file is empty * - Uses streaming for memory efficiency on large logs */ export declare function parseSessionLog(jsonlFilePath: string): Promise; //# sourceMappingURL=session-log-parser.d.ts.map