/** * recommend-heuristic.ts — the pure "which model should I use" pick, * factored out of index.ts's recommend() so it's unit-testable against * fixture BatchResult objects (see test/recommend.test.ts) without ever * touching node-llama-cpp or a real GGUF file. * * See recommend()'s own doc in index.ts for the honesty caveats this * heuristic carries (single-request serial measurement, no concurrency * model, fixed fraction/ceiling thresholds). */ import type { BatchResult, Recommendation } from "./types.js"; export declare const DEFAULT_RAM_HEADROOM_FRACTION = 0.5; export declare const DEFAULT_LATENCY_THRESHOLD_MS = 500; export interface RecommendHeuristicOptions { ramHeadroomFraction?: number; latencyThresholdMsPerEmbed?: number; } export interface RecommendHeuristicResult { recommendation: Recommendation | null; notes: string[]; } export declare function pickRecommendation(batch: BatchResult, options?: RecommendHeuristicOptions): RecommendHeuristicResult;