import type { AgentMessage } from "@elyracode/agent-core"; import { type Api, type Model } from "@elyracode/ai"; /** Directory where extracted skills are written */ export declare function getLearnedSkillsDir(): string; export interface ExtractedSkill { name: string; content: string; filePath: string; } export interface ExtractSkillResult { skill?: ExtractedSkill; skipped: boolean; error?: string; } /** Parse the model output: validate frontmatter and extract the skill name. */ export declare function parseSkillOutput(output: string): { name: string; content: string; } | undefined; /** Find a directory name that doesn't collide with an existing skill. */ export declare function resolveSkillDir(baseDir: string, name: string): string; /** * Extract a reusable skill from a session's messages and write it to the * user's skills directory. Returns the created skill, or skipped=true when * the session contains no teachable procedure. */ export declare function extractSkillFromSession(options: { messages: readonly AgentMessage[]; model: Model; apiKey: string; headers?: Record; nameHint?: string; }): Promise; //# sourceMappingURL=skill-extraction.d.ts.map