/** * V1 Intelligence Module — learning/trajectory public API * Split out of intelligence.ts (file-size sweep). Pure move. * * @module v1/cli/intelligence */ import type { Pattern, TrajectoryStep } from './intelligence-types.js'; /** * Record a trajectory step for learning * Performance: <0.05ms without embedding generation */ export declare function recordStep(step: TrajectoryStep): Promise; /** * Record a complete trajectory with verdict */ export declare function recordTrajectory(steps: TrajectoryStep[], verdict: 'success' | 'failure' | 'partial'): Promise; /** * Find similar patterns from ReasoningBank */ export interface PatternMatch extends Pattern { similarity: number; } export declare function findSimilarPatterns(query: string, options?: { k?: number; threshold?: number; type?: string; }): Promise; /** * End the current trajectory with a verdict and apply confidence updates. * This is the public API for the SONA feedback loop. * * @param verdict - 'success' (reward=1.0), 'partial' (0.5), or 'failure' (-0.5) * @returns Update statistics or null if not initialized */ export declare function endTrajectoryWithVerdict(verdict: 'success' | 'failure' | 'partial'): Promise<{ reward: number; patternsUpdated: number; } | null>; /** * Distill learning from recent successful trajectories. * Applies incremental confidence updates with EWC consolidation protection. * * @returns Distillation statistics or null if not initialized */ export declare function distillLearning(): Promise<{ patternsDistilled: number; ewcPenalty: number; } | null>; /** * Benchmark SONA adaptation time */ export declare function benchmarkAdaptation(iterations?: number): { totalMs: number; avgMs: number; minMs: number; maxMs: number; targetMet: boolean; }; //# sourceMappingURL=intelligence-learning.d.ts.map