/** * The first `cwd` in a transcript, top-level (Claude records) or at `payload.cwd` (Codex * `session_meta`). It reads a 64 KB prefix and streams the whole file only when that prefix is * truncated and yielded nothing. First-cwd-wins: a session that later `cd`s into another repo is * bucketed by its earliest cwd. */ export declare function readTranscriptCwd(path: string): Promise; /** * Resolves a Claude transcript's cwd from its own session file (or its subagent's owning session) * and memoizes it per session file. A session whose owner is missing or unreadable rejects, which * discovery counts as an unknown cwd rather than guessing from a sibling session. A rejected * lookup is evicted so the next call retries. */ export declare function claudeSessionCwdResolver(projectsDir: string): (path: string) => Promise;