/**
 * Skill injection — matches incoming messages against learned skills
 * and injects relevant skills into the system prompt.
 */
import type { SkillIndex, MatchResult } from './matcher.js';
/**
 * Get or rebuild the skill index.
 */
export declare function getSkillIndex(): Promise<SkillIndex>;
/**
 * Force index rebuild (e.g., after skill save/delete).
 */
export declare function invalidateSkillIndex(): void;
/**
 * Extract user text from Anthropic messages for matching.
 */
export declare function extractUserQuery(messages: unknown[]): string;
/**
 * Match and inject skills into system prompt.
 * Returns the augmented system prompt and matched skill IDs.
 */
export declare function injectSkills(system: unknown, messages: unknown[], options?: {
    topK?: number;
    threshold?: number;
    disabled?: boolean;
}): Promise<{
    system: unknown;
    matchedSkills: MatchResult[];
    injectedIds: string[];
}>;
export declare function _resetIndex(): void;
