import { PersonaState, MutationEngineResult, MemorySearchResult, Persona } from '../types/index.js';
export declare class MutationEngineService {
    private db;
    constructor();
    /**
     * Ensure database is available
     */
    private ensureDatabase;
    private initializeTables;
    /**
     * Initialize persona state if not exists
     */
    initializePersonaState(personaId: string, userId: string): Promise<PersonaState>;
    /**
     * Get persona state
     */
    getPersonaState(personaId: string, userId: string): Promise<PersonaState | null>;
    /**
     * Save persona state
     */
    savePersonaState(state: PersonaState): Promise<void>;
    /**
     * Main mutation engine - analyzes input and memories to generate state changes
     */
    processMutation(userInput: string, persona: Persona, userId: string, relevantMemories: MemorySearchResult[]): Promise<MutationEngineResult>;
    /**
     * Apply mutation results to persona state
     */
    applyMutations(personaId: string, userId: string, mutationResult: MutationEngineResult): Promise<PersonaState>;
    private analyzeSentiment;
    private extractIntent;
    private extractTopics;
    private shouldAdjustMood;
    private calculateMoodAdjustment;
    private extractPreferences;
    private updateInteractionPatterns;
    private shouldCreateMemory;
    private calculateImportance;
    /**
     * Clean up old mutation logs
     */
    cleanupOldMutations(personaId: string, userId: string, retentionDays: number): Promise<void>;
    /**
     * Reset persona state
     */
    resetPersonaState(personaId: string, userId: string): Promise<void>;
}
export declare const mutationEngineService: MutationEngineService;
//# sourceMappingURL=mutationEngineService.d.ts.map