import type { InsightPattern } from '../../domain/loop/insight-pattern.js'; import type { BehaviorEventEmitter } from '../behavior/behavior-event-emitter.js'; import { type TunableParameter, type TuningRecord } from '../../domain/loop/tuning-record.js'; /** * Apply tunings for patterns whose confidence meets the threshold and that * carry an actionable recommendation with a recognized parameter name. * Accepts an optional emitter to emit loop.tuning.applied after each tuning. */ export declare function applyTunings(workspaceRoot: string, patterns: readonly InsightPattern[], emitter?: BehaviorEventEmitter): Promise; /** * Check recent scores against pre-tuning scores. If tunings caused a * regression (avg score dropped), revert them automatically. */ export declare function checkRollback(workspaceRoot: string): Promise; /** * Revert a single tuning by its ID: restore the previous config value * and mark the record as rolled back. * Accepts an optional emitter to emit loop.tuning.reverted after rollback. */ export declare function revertTuning(workspaceRoot: string, tuningId: string, emitter?: BehaviorEventEmitter): Promise; /** * Read all tuning records from the NDJSON log. * Later entries for the same ID override earlier ones (last-write-wins). */ export declare function listTunings(workspaceRoot: string): Promise; /** * Remove a parameter from the user-locks list, allowing the tuner to * modify it again. */ export declare function unlockParameter(workspaceRoot: string, param: TunableParameter): Promise; /** * Add a parameter to the user-locks list, preventing the tuner from * modifying it. */ export declare function lockParameter(workspaceRoot: string, param: TunableParameter): Promise; //# sourceMappingURL=policy-tuner.d.ts.map