import type { ServerContext } from '../context.js'; /** * Shared fire-and-forget reindex helper used by every write tool * (create_note, edit_note, apply_edit_preview, move_note, delete_note, * link_notes). The write has already landed on disk by the time this runs; * the reindex just brings the DB into eventual consistency. * * Routes through `ctx.enqueueBackgroundReindex` when the full production * context provides it (so tests can `await ctx.pendingReindex` before * teardown to avoid ENOENT on reindex-after-rmdir races). Falls back to a * bare `void`-chained promise for lean test stubs that don't wire up the * queue. Both paths log failures to stderr and never throw. */ export declare function runBackgroundReindex(ctx: ServerContext): void;