import { IMarkovEngine } from '../interfaces'; export interface MarkovOptions { stateSize?: number; minLength?: number; maxLength?: number; maxTries?: number; allowDuplicates?: boolean; } export interface MarkovResult { string: string; } export declare class MarkovEngine implements IMarkovEngine { private stateSize; private data; private chain; private themeMap; constructor(options?: { stateSize?: number; }); /** * Add training data to the Markov chain */ addData(texts: string[], theme?: string): void; /** * Build the Markov chain from training data */ private buildChain; /** * Generate text using the Markov chain */ generate(options?: MarkovOptions): MarkovResult; /** * Generate context-aware text based on player state and preferences */ generateContextual(context: any, theme?: string): MarkovResult; /** * Analyze generation patterns and provide statistics */ analyzePatterns(): { averageLength: number; commonWords: Array<{ word: string; count: number; }>; themes: string[]; quality: number; }; /** * Attempt to generate text within length constraints */ private generateAttempt; /** * Check if generated text is interesting enough to use */ isInterestingText(text: string): boolean; /** * Get statistics about the Markov chain */ getStats(): { stateCount: number; averageTransitions: number; totalTransitions: number; }; /** * Clear all training data and reset the chain */ clear(): void; } //# sourceMappingURL=MarkovEngine.d.ts.map