/** * v3.10.0-rc.5 — parse the opt-in recency re-ranking config from CLI opts. Returns `null` when * `--recency-weight` is unset or 0 (recency re-ranking OFF; ranking stays relevance-pure). Throws * on an out-of-range weight or a non-positive `--stale-days` so the error surfaces with the * offending flag name. `--stale-days` is validated even when the weight is 0 (a typo'd value should * fail regardless), but only tunes the half-life when the weight is > 0. * * @param opts - `{ recencyWeight?, staleDays? }` raw CLI string values. * @returns `{ weight, staleDays }` when re-ranking is on, else `null`. */ export declare function parseRecencyConfig(opts: { recencyWeight?: string; staleDays?: string; }): { weight: number; staleDays: number; } | null; /** * v3.11.0 — parse the opt-in closed-loop-feedback config from CLI opts. Returns * `null` when `--feedback-weight` is unset or 0 (the feedback feature is OFF — no * `obsidian_mark_useful` tool registered, no rank boost; ranking stays * relevance-pure, a provable no-op). A weight > 0 turns the whole closed loop on * (mirrors `parseRecencyConfig`'s single-flag gate). Throws on an out-of-range * weight so the error surfaces with the offending flag name. * * @param opts - `{ feedbackWeight? }` raw CLI string value. * @returns `{ weight }` when feedback is on, else `null`. */ export declare function parseFeedbackConfig(opts: { feedbackWeight?: string; }): { weight: number; } | null; /** * v3.10.0-rc.62 (CLI-SERVEHTTP-RECENCY-FAILLATE) — fail-FAST validation of the advanced retrieval * flags for the `serve-http` boot path. `startHttpServer` builds `prepareServerDeps` lazily (per * session, on the first request), so a typo'd `--recency-weight 5` / `--stale-days x` / * `--reranker-top-n 0` previously started the server cleanly and only threw on the first search. * Calling this at boot mirrors stdio `serve`'s eager validation. Throws (with the offending flag * name) on any invalid value; returns void on success. * * @param opts - `{ recencyWeight?, staleDays?, enableReranker?, rerankerTopN? }` raw CLI values. */ export declare function validateServeHttpRetrievalOpts(opts: { recencyWeight?: string; staleDays?: string; enableReranker?: boolean; rerankerTopN?: string; feedbackWeight?: string; }): void; //# sourceMappingURL=retrieval-opts.d.ts.map