/**
 * Skill-Specific Threat Patterns
 *
 * Detects malicious patterns in agent instruction files (skill files, tool
 * definitions, .mdc rules, etc.) and in code files (JS/TS/JSON) that may
 * accompany them.
 *
 * Two entry points:
 *  - detectSkillThreats()  — natural-language instruction scanning
 *  - detectCodeThreats()   — JavaScript / JSON code scanning
 *
 * Follows the same conventions as instruction-detector.ts:
 *  - One match per group is enough (break after first)
 *  - Overlapping windowed scanning to bound per-regex work (ReDOS guard)
 *  - safeRegexTest wrapper for every test
 *  - Length caps on unbounded quantifiers ([\s\S]{0,N})
 */
export interface SkillThreatResult {
    detected: boolean;
    threats: string[];
    confidence: number;
}
/**
 * Analyse natural-language skill / instruction content for threat patterns.
 *
 * Designed for scanning .mdc files, skill definitions, tool descriptions,
 * and similar agent instruction documents.
 */
export declare function detectSkillThreats(content: string): SkillThreatResult;
/**
 * Analyse JavaScript / JSON code content for threat patterns.
 *
 * Designed for scanning code files that accompany skill definitions —
 * tool implementations, config files, etc.
 */
export declare function detectCodeThreats(content: string): SkillThreatResult;
