UNPKG

talkshitgetdared

Version:

The truth will hurt. An open-source cursed-core engine for Truth & Dare prompts.

28 lines 1.08 kB
import { Language, Mode, PromptOptions, PromptResult, CoreConfig, BatchPromptOptions, BatchPromptResult, PromptStats } from '../types/index'; export declare class TruthOrDareCore { private promptService; private statisticsService; private config; constructor(config?: Partial<CoreConfig>); getTruth(options?: PromptOptions): PromptResult; getDare(options?: PromptOptions): PromptResult; getRandom(options?: PromptOptions): PromptResult; getBatch(options: BatchPromptOptions): BatchPromptResult; getAvailableLanguages(): Language[]; getAvailableModes(language: Language): Mode[]; getStats(): PromptStats; enableHistory(enabled: boolean): void; isHistoryEnabled(): boolean; getHistory(): string[]; clearHistory(): void; setHistorySize(size: number): void; getHistorySize(): number; clearCache(): void; getCacheStats(): { size: number; keys: string[]; }; updateConfig(newConfig: Partial<CoreConfig>): void; getConfig(): CoreConfig; } //# sourceMappingURL=TruthOrDareCore.d.ts.map