/** * InstructionEnhancer - Parses clarification responses and merges them into instructions */ import { ClarificationResponse, ClarificationQuestion } from './types'; export interface EnhancementResult { enhancedInstruction: string; isComplete: boolean; missingRequiredFields: string[]; } export declare class InstructionEnhancer { /** * Parse clarification responses and extract key information */ parseResponses(responses: ClarificationResponse[], questions: ClarificationQuestion[]): Map; /** * Merge clarification responses into the original instruction */ mergeIntoInstruction(originalInstruction: string, responses: ClarificationResponse[], questions: ClarificationQuestion[]): string; /** * Validate that the enhanced instruction is complete */ validateCompleteness(enhancedInstruction: string, questions: ClarificationQuestion[], responses: ClarificationResponse[]): EnhancementResult; /** * Create a simple enhanced instruction by appending clarifications */ createSimpleEnhancement(originalInstruction: string, responses: ClarificationResponse[], questions: ClarificationQuestion[]): string; /** * Infer a semantic key from a question */ private inferSemanticKey; /** * Create an enhancement clause from a question and answer */ private createEnhancementClause; /** * Intelligently merge enhancements into the instruction */ private intelligentMerge; /** * Check if an enhancement should be inserted rather than appended */ private shouldInsert; /** * Insert an enhancement into the instruction at the appropriate position */ private insertEnhancement; /** * Extract a keyword from a question for labeling */ private extractKeyword; } //# sourceMappingURL=InstructionEnhancer.d.ts.map