import type { StoreInfo, TurnKind } from '../../models/usage-record.js'; export interface TranscriptFile { path: string; /** Root the file was discovered under. */ root: string; /** Project directory slug, e.g. `-home-user-my-project`. */ projectSlug: string; turnKind: TurnKind; sizeBytes: number; mtimeMs: number; } /** * Where Claude Code keeps session transcripts. * * Layout on disk is NOT flat. Verified shapes: * //.jsonl -> main turns * ///subagents/agent-.jsonl -> subagent turns * ///subagents/workflows//agent-*.jsonl -> subagent turns * ///subagents/workflows//journal.jsonl -> not usage, skipped * * Only the first shape sits directly under the project directory, so a single-level glob * finds just 47 of the 196 files on the machine this was verified against. Discovery must * recurse. */ export declare function discoverClaudeRoots(): StoreInfo[]; /** Recursively finds every transcript under a root, classifying main vs subagent. */ export declare function listTranscripts(root: string): TranscriptFile[]; export declare function resolveProjectSlug(slug: string): string | undefined; /** * Last-resort reading of a slug with no filesystem help: every dash becomes a * separator. Wrong whenever a real directory name contains a dash, so it is only * used when the project directory no longer exists and no `cwd` was recorded. */ export declare function unslugProjectPath(slug: string): string | undefined; export declare function transcriptLabel(file: TranscriptFile): string;