export type SkillOutcome = { timestamp: string; task_summary: string; worked: boolean; what_helped: string[]; what_was_missing: string[]; duration_ms: number; }; /** * Reads the current SKILL.md, calls a cheap model with the last N outcomes, * and atomically replaces the file with the refined version. * No-ops if the model call fails — existing SKILL.md is never lost. */ export declare function refineSkill(skillPath: string, outcomes: SkillOutcome[]): Promise; /** * Appends a skill outcome to outcomes.jsonl next to the skill's SKILL.md. * Every 10 outcomes (modulo), triggers an async refinement of SKILL.md via * `klaw infer model run`. Both operations are best-effort and never throw. */ export declare function recordSkillOutcome(skillName: string, outcome: SkillOutcome): Promise;