/** * Claude Code session parser and extractor */ import type { ParsedSession, SessionSource, SubagentInfo, TaskItem } from "./types.js"; export declare const CLAUDE_LIMIT_MARKERS: string[]; /** * Encode a project directory path the way Claude Code does: * replaces `/`, `.`, and `_` with `-` */ export declare function encodeClaudeProjectDir(dir: string): string; export declare function encodeClaudeProjectDirSimple(dir: string): string; /** * Check if text contains interruption or limit markers */ export declare function detectClaudeInterruptions(texts: string[]): string[]; /** * Parse a Claude Code JSONL line */ export declare function parseClaudeJsonLine(line: string): { type?: string; timestamp?: string; gitBranch?: string; cwd?: string; sessionId?: string; aiTitle?: string; role?: string; texts: string[]; toolCalls: Array<{ name: string; argsSummary?: string; }>; toolResults: Array<{ name?: string; summary?: string; isError?: boolean; }>; interrupted?: boolean; } | undefined; /** * Fetch subagent status for a Claude Code session */ export declare function getClaudeSubagents(sessionId: string, projectDirs?: string[]): Promise; /** * Fetch structured tasks maintained by Claude Code in ~/.claude/tasks// */ export declare function getClaudeTasks(sessionId: string): Promise; /** * Parse full Claude Code session file */ export declare function parseClaudeSession(source: SessionSource, maxLines?: number): Promise; //# sourceMappingURL=claude.d.ts.map