import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { ServerContext } from '../context.js'; import type { DatabaseHandle } from '../store/db.js'; /** * `move_note` — rename/move a note on disk. After the move, any note that * linked to the old stem has its wiki-links rewritten in place so the vault * stays consistent without waiting for the next re-index. * * Returns `{ oldPath, newPath, linksRewritten: { files, occurrences } }`. */ export declare function registerMoveNoteTool(server: McpServer, ctx: ServerContext): void; /** * Find every source file that linked to `oldPath` before the move and rewrite * those wiki-links from the old stem to the new stem. Source files missing on * disk are skipped silently — the index may be momentarily out of sync with a * user's out-of-band deletion, and a failure there shouldn't fail the move. * * Exported for testability; not part of the public tool surface. */ export declare function rewriteInboundLinks(db: DatabaseHandle, vaultPath: string, oldPath: string, newPath: string): Promise<{ files: number; occurrences: number; rewrittenSources: string[]; }>;