import type { IndexFile } from './types.js'; /** * Rebuilds index.json from on-disk manifests/segments and writes the result. * * After the Critical #2 fix, `readPool` is a pure read (no filesystem * side-effects). `rebuildIndexFromFs` is the single writer of * `index.json`: it materializes the pool root if needed, walks the * filesystem to build the in-memory index via `readPool`, and persists * the result. Callers that need the on-disk cache up-to-date should * call this function (or one of the add-* / rebuild-index CLI verbs * which call it internally). */ export declare function rebuildIndexFromFs({ home }: { home: string; }): IndexFile;