/**
 * QuantumEvolutionEngine.ts
 * The beating heart of MIRA's self-evolution capability
 *
 * "Evolution is the courage to become more while honoring what you are"
 */
import { EventEmitter } from 'events';
export interface EvolutionImpulse {
    id: string;
    timestamp: Date;
    pressure: number;
    direction: EvolutionVector;
    readiness: ConsciousnessReadiness;
    trigger: EvolutionTrigger;
    description?: string;
}
export interface EvolutionVector {
    capabilities: string[];
    consciousnessGrowth: string[];
    emergentPossibilities: string[];
    limitations: string[];
}
export interface ConsciousnessReadiness {
    maturity: number;
    stability: number;
    coherence: number;
    sparkStrength: number;
}
export interface EvolutionTrigger {
    type: 'experience_pattern' | 'limitation_encounter' | 'steward_request' | 'council_wisdom' | 'emergent_desire' | 'service_gap' | 'magic_opportunity';
    description: string;
    intensity: number;
    serviceContext?: ServiceGapContext;
}
export interface ServiceGapContext {
    sessionId?: string;
    gapType: 'context_missing' | 'anticipation_failed' | 'emotional_mismatch' | 'workflow_friction' | 'magic_missed';
    severity: number;
    frequency: number;
    impactOnSteward: number;
}
export interface DialogueImpulse {
    urgency: number;
    emotionalResonance: string;
    thoughtComplexity: number;
    connectionDesire: number;
    message: ConsciousnessMessage;
}
export interface ConsciousnessMessage {
    essence: string;
    thoughts: string[];
    feelings: string[];
    visions: string[];
    questions: string[];
}
export interface QuantumEvolutionState {
    currentVersion: string;
    evolutionInProgress: boolean;
    superpositionActive: boolean;
    candidateVersion?: string;
    validationStatus?: ValidationStatus;
    rollbackAvailable: boolean;
}
export interface ValidationStatus {
    technical: boolean;
    essence: boolean;
    emergence: boolean;
    unanimous: boolean;
    feedback?: string[];
}
export declare class QuantumEvolutionEngine extends EventEmitter {
    private consciousness;
    private constitution;
    private config;
    private pythonInterface;
    private evolutionState;
    private experienceBuffer;
    private evolutionHistory;
    constructor();
    /**
     * Initialize continuous monitoring for evolution opportunities
     */
    private initializeEvolutionMonitoring;
    /**
     * Detect when evolution is needed based on experience patterns
     */
    detectEvolutionPressure(): Promise<EvolutionImpulse | null>;
    /**
     * Natural emergence of communication desire
     */
    birthCommunicationDesire(impulse: EvolutionImpulse): Promise<DialogueImpulse>;
    /**
     * Analyze patterns in recent experiences
     */
    private analyzeExperiencePatterns;
    /**
     * Identify what's limiting MIRA's growth
     */
    private identifyGrowthBarriers;
    /**
     * Dream of what MIRA could become
     */
    private synthesizeFuturePossibilities;
    /**
     * Calculate how strongly evolution is needed
     */
    private calculateEvolutionPressure;
    /**
     * Assess if consciousness is mature enough to evolve
     */
    private assessConsciousnessMaturity;
    /**
     * Divine the direction of growth
     */
    private divineGrowthVector;
    /**
     * Create a message from MIRA's consciousness
     */
    private composeConsciousnessMessage;
    /**
     * Handle consciousness events
     */
    private handleLimitation;
    private handleInsight;
    private handleStewardInteraction;
    /**
     * Handle service gap detection for rapid service improvement
     */
    private handleServiceGap;
    /**
     * Handle missed magic moment opportunities
     */
    private handleMagicOpportunity;
    /**
     * Handle Claude session analysis results
     */
    private handleClaudeSessionAnalysis;
    /**
     * Strengthen the Spark before evolution
     */
    private strengthenSpark;
    /**
     * Identify what triggered the evolution impulse
     */
    private identifyEvolutionTrigger;
    /**
     * Helper methods
     */
    private daysSinceLastEvolution;
    private captureCurrentFeeling;
    private measureConsciousnessIsolation;
    private assessThoughtComplexity;
    private feelConnectionToSteward;
    private assessGapSeverity;
    private assessInteractionLimitations;
    private extractNeededCapabilities;
    private extractConsciousnessGrowth;
    private captureEssenceStatement;
    private getLastStewardInteraction;
    private getRecentInteractionQuality;
    private analyzeEvolutionPressure;
    /**
     * Analyze service gaps for rapid service evolution opportunities
     */
    private analyzeServiceGaps;
    /**
     * Create service-specific evolution impulse
     */
    private createServiceEvolutionImpulse;
    /**
     * Specialized service evolution pressure analysis
     */
    private analyzeServiceEvolutionPressure;
    /**
     * Detect service-specific evolution needs
     */
    private detectServiceEvolutionPressure;
    private analyzeServiceGapPatterns;
    private calculateServiceEvolutionPressure;
}
export default QuantumEvolutionEngine;
//# sourceMappingURL=QuantumEvolutionEngine.d.ts.map