import { Minehut } from '../Minehut'; import { CombinationType, IdeaGenResponse } from './StoryTellerResponse'; /** * The Minehut StoryTeller Manager */ export declare class StoryTellerManager { client: Minehut; private endpoint; private _storytellerData; constructor(client: Minehut); /** * The StoryTeller data is only fetched once when the class is initialized. This method can be used to refresh the data. */ refresh(): Promise; /** * Returns a list of all the unparsed sentences without any replacements * @returns {string[]} The unparsed sentences */ getUnparsedSentences(): string[]; /** * Returns a list of all the combination types * @returns {CombinationType[]} The combination types */ getCombinationTypes(): CombinationType[]; /** * Returns a list of all the different combinations for a specific combination type * @param type The combination type * @returns {string[]} The combinations */ getCombinations({ type }: { type: CombinationType; }): string[]; /** * Generates a random sentence * @returns {Promise} The generated sentence with replacements */ generateSentence(): IdeaGenResponse; /** * This method is used internally in the generateSentence method to replace the story. But it can also be used to replace a story with custom combinations and sentences. * @param combinations A record of combination types and their respective words * @param sentences A list of sentences to choose from * @returns */ replaceStory(combinations: Record, sentences: string[]): IdeaGenResponse; }