import { deriveMemoryIndex } from './derive-index.js';
export function rebuildDerivedIndex(workspace) {
    const index = deriveMemoryIndex(workspace.readAllTopicDocuments());
    if (index) {
        workspace.writeIndex(index);
        return;
    }
    workspace.deleteIndex();
}
//# sourceMappingURL=applier.js.map