import type { Instinct } from './learning.js';
export interface Skill {
    id: string;
    name: string;
    description: string;
    prompt: string;
    triggers: string[];
    category: string;
    createdAt: string;
    useCount: number;
}
export declare function createSkill(name: string, description: string, prompt: string, triggers: string[], category?: string): Skill;
export declare function saveSkill(skill: Skill): void;
export declare function loadSkill(id: string): Skill | null;
export declare function listSkills(): Skill[];
export declare function deleteSkill(id: string): boolean;
/**
 * Fuzzy match by trigger keywords. Returns the first matching skill.
 */
export declare function findSkill(query: string): Skill | null;
/**
 * Apply skill by replacing {{placeholders}} with variables.
 */
export declare function applySkill(skill: Skill, variables: Record<string, string>): string;
/**
 * Cluster high-confidence instincts into reusable skills.
 * Groups by category, merges similar patterns.
 */
export declare function evolveInstinctsToSkills(instincts: Instinct[]): Skill[];
/**
 * Increment useCount when a skill is applied.
 */
export declare function recordSkillUsage(id: string): void;
export declare function printSkillList(): void;
