/**
 * Terminal-Bench Domain Knowledge Pre-Population
 *
 * This module contains battle-tested domain knowledge that improved
 * Terminal-Bench 2.0 accuracy by +6.7% (53.3% -> 60%).
 *
 * Based on TERMINAL_BENCH_RESULTS.md analysis of improvements:
 * - extract-elf: ELF format knowledge enabled correct parsing
 * - password-recovery: hashcat/john guidance led to successful recovery
 */
export interface DomainKnowledge {
    category: string;
    type: 'pattern' | 'tool' | 'format' | 'gotcha' | 'file-creation';
    content: string;
    keywords: string[];
    importance: number;
}
export declare const TERMINAL_BENCH_KNOWLEDGE: DomainKnowledge[];
/**
 * Get domain knowledge relevant to a task
 * Uses fuzzy/stemming matching for better recall
 * OPTIMIZATION 6: file-creation type gets 2x score boost to surface first
 */
export declare function getRelevantKnowledge(taskInstruction: string, category?: string): DomainKnowledge[];
/**
 * Format knowledge for context injection
 */
export declare function formatKnowledgeForContext(knowledge: DomainKnowledge[]): string;
/**
 * Record knowledge outcome and optionally persist to long-term memory.
 * Call this when a task succeeds or fails to improve future accuracy.
 *
 * @param taskPattern - Keywords describing the task (e.g., "password 7z crack")
 * @param success - Whether the task succeeded
 * @param learnedKnowledge - Optional new knowledge to persist (only on success)
 * @param persistPath - Path to long_term_prepopulated.json (optional)
 */
export declare function recordKnowledgeOutcome(taskPattern: string, success: boolean, learnedKnowledge?: Omit<DomainKnowledge, 'importance'> & {
    importance?: number;
}, persistPath?: string): void;
declare const _default: {
    TERMINAL_BENCH_KNOWLEDGE: DomainKnowledge[];
    getRelevantKnowledge: typeof getRelevantKnowledge;
    formatKnowledgeForContext: typeof formatKnowledgeForContext;
    recordKnowledgeOutcome: typeof recordKnowledgeOutcome;
};
export default _default;
//# sourceMappingURL=terminal-bench-knowledge.d.ts.map