import type { Pool } from 'pg'; export interface RecomputeStatsResult { computedAt: string; totalOrderCount: number; /** Directed rows written to product_relation (2 × unordered pairs). */ pairCount: number; } export declare function recomputeRecommendationStats(pool?: Pool, options?: { /** * Orders with more distinct group keys than this are skipped during * PAIRING only (§ 17.1 — wholesale/B2B noise emits O(N²) pairs); they * still count toward product_stat and the total, a deliberately * conservative bias. 0 = disabled (the default). */ maxOrderKeys?: number; }): Promise;