import type { ParsedMessage } from "shared/types/index.js";
/**
 * Read a JSONL file and return an array of parsed objects.
 * Returns empty array on any read or parse error.
 */
export declare function readJsonlFile(path: string): any[];
/**
 * Extract the first user message from a session JSONL file.
 * Used for chat list preview text.
 */
export declare function getFirstUserMessage(filePath: string, maxLength?: number): string | null;
/**
 * Build a mapping from agentId to a human-readable display name.
 * Scans parent JSONL lines for Task tool_use blocks (which have input.description)
 * and their corresponding tool_result lines (which have toolUseResult.agentId).
 */
export declare function buildSubagentMap(rawMessages: any[]): Map<string, string>;
/**
 * Parse raw JSONL messages into the neutral ParsedMessage format.
 *
 * Handles Claude's JSONL schema: message.content arrays with text/thinking/
 * tool_use/tool_result blocks, _sessionId boundaries, compact_boundary,
 * metadata extraction, image dedup, and inter-message timing.
 */
export declare function parseMessages(rawMessages: any[]): ParsedMessage[];
/**
 * Parse subagent JSONL messages and stamp them with a teamName for display.
 * Reuses the existing parseMessages() function, then adds teamName to every result.
 */
export declare function parseSubagentMessages(rawMessages: any[], teamName: string): ParsedMessage[];
//# sourceMappingURL=sessionParser.d.ts.map