import type { IndexFile } from './types.js'; export declare class POOL_READ_ERROR extends Error { } /** Pure read of the in-memory pool index (Critical #2 fix). * * CONTRACT: this function is a READ-ONLY computation. It MUST NOT * write `index.json` (or any other file) as a side-effect. The * "self-heal" property of rewriting index.json when it goes stale * belongs to `rebuildIndexFromFs`, not here. List / search / recent / * add-* verbs that need to mutate the on-disk cache should call * `rebuildIndexFromFs` explicitly. * * Edge case: if the pool root does not yet exist, this returns an * empty index WITHOUT creating the directory. Callers that need a * materialized root should use `rebuildIndexFromFs` or `mkdirSync` * themselves. */ export declare function readPool({ home }: { home: string; }): IndexFile;