import { type McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type FtsIndex } from "./fts5.js"; import type { ServerDeps } from "./server.js"; import type { Vault } from "./vault.js"; /** Default location for the persistent embedding index, alongside .fts5.db. */ export declare function embedDbPath(vaultRoot: string): string; export declare function registerFtsTools(server: McpServer, idx: FtsIndex, vault: Vault): void; export declare function registerReadTools(server: McpServer, vault: Vault, ftsIndex: FtsIndex | null, diagnosticSearchTools: boolean, /** * v2.9.0 — optional cross-encoder reranker config. When set, obsidian_search * post-RRF reranks the top-N candidates with a BGE-style cross-encoder. * `null` means reranker disabled (default). */ rerankerConfig?: { alias?: string; topN?: number; } | null, /** * v2.13.0 — optional HNSW context. When set, embedding-side k-NN goes * through the in-memory HNSW index instead of brute-force cosine. * Built once on serve start; passed through every search call. */ hnswContext?: ServerDeps["hnswContext"], /** * v3.10.0-rc.5 — optional opt-in recency re-ranking config for obsidian_search. * When set (weight > 0), the final fused order is re-sorted by a blend of * relevance rank and the note's live-mtime recency. `null` (default) keeps * ranking purely relevance-driven. */ recencyConfig?: { weight: number; staleDays: number; } | null, /** * v3.11.0 — optional opt-in closed-loop feedback context for obsidian_search. * When set (weight > 0), the final fused order is re-sorted by a blend of * relevance rank and each note's recorded usefulness (live `store.scores()` * snapshot, computed per call). `null` (default) keeps ranking relevance-pure. */ feedbackContext?: { weight: number; store: import("./feedback.js").FeedbackStore; } | null): void; /** * v3.11.0 — register `obsidian_mark_useful`, the closed-loop retrieval feedback * tool. Registered ONLY when `--feedback-weight > 0` (the `store` is non-null). * It records which recalled note(s) actually helped a query into the per-vault * `FeedbackStore`; the recorded usefulness then boosts those notes in subsequent * `obsidian_search` results (the "Karpathy loop"). NOT read-only — it mutates the * feedback store (a cache-dir sidecar, NOT the vault), so `enableWrite` does not * gate it; it never touches note files. The store holds only relative paths + * counts (no content), is erased by `prune`, and the boost is opt-in. */ export declare function registerFeedbackTool(server: McpServer, store: import("./feedback.js").FeedbackStore): void; export declare function registerWriteTools(server: McpServer, vault: Vault): void; export declare function registerChunkResource(server: McpServer, idx: FtsIndex, vault: Vault): void; export declare function registerResources(server: McpServer, vault: Vault): void; export declare function parsePositiveInt(raw: string, flag: string): number; /** * v2.17.0 — validate a `--quantize-embeddings ` value. Accepts the * canonical `"f32"` / `"int8"` plus a few user-friendly aliases (`"none"` * for f32; `"q8"` for int8). Anything else throws with the exact list of * accepted values so the user can fix the typo immediately. */ export declare function parseQuantizationMode(raw: string | undefined): "f32" | "int8" | undefined; export declare function encodeNotePath(relPath: string): string; export declare function decodeNotePath(uriPath: string): string; export declare function textResult(payload: unknown): { content: Array<{ type: "text"; text: string; }>; }; //# sourceMappingURL=tool-registry.d.ts.map