/** * slowQueryAlert.ts * * Rolling 5-minute p95 search-latency monitor. * Emits a `[metrics] SLOW` warning to stdout when p95 exceeds the threshold. * Threshold is configurable via SLOW_QUERY_THRESHOLD_MS (default 500 ms). * * Phase 4 speed improvement. */ /** * Record one search latency sample and emit a slow-query alert if warranted. * Safe to call on every search request — low overhead. */ export declare function recordSearchLatency(durationMs: number): void; /** * Return a snapshot of the current rolling window (for tests and diagnostics). */ export declare function getSlowQueryStats(): { sampleCount: number; p95Ms: number; thresholdMs: number; }; /** Reset state — used in tests. */ export declare function resetSlowQueryAlert(): void; //# sourceMappingURL=slowQueryAlert.d.ts.map