import { type LLMMessage } from './llm-message.js'; export interface LearnedSkill { name: string; description: string; steps: string[]; tools: string[]; errorRecoveryPatterns: string[]; preconditions: string[]; createdAt: number; sourceSessionKey: string; confidence: number; occurrenceCount: number; } export interface SkillLearnerConfig { skillsDir: string; minToolCalls?: number; minConfidence?: number; } export declare class SkillLearner { private readonly skillsDir; private readonly minToolCalls; private readonly minConfidence; private patternCounts; constructor(config: SkillLearnerConfig); maybeLearnFromSession(sessionKey: string, messages: LLMMessage[], summarize?: (prompt: string) => Promise): Promise; private scoreConfidence; private extractToolChainPattern; private extractMeaningfulSteps; private extractErrorRecoveryPatterns; private extractPreconditions; private isDuplicate; private extractToolCalls; private extractText; private slugify; private yamlSafeString; private saveSkill; listLearnedSkills(): Promise; } //# sourceMappingURL=skill-learner.d.ts.map