/** * Class for the sentiment analysis manager, able to manage * several languages at the same time. */ declare class SentimentManager { private readonly settings; private languages; private analyzer; /** * Constructor of the class. */ constructor(settings?: any); addLanguage(): void; translate(sentiment: { score: number; average: number; type: string; numHits: number; numWords: number; locale: string; }): { score: number; comparative: number; vote: string; numWords: number; numHits: number; type: string; language: string; }; /** * Process a phrase of a given locale, calculating the sentiment analysis. * @param {String} locale Locale of the phrase. * @param {String} phrase Phrase to calculate the sentiment. * @returns {Promise Object} Promise sentiment analysis of the phrase. */ process(locale: string, phrase: string): Promise<{ score: number; comparative: number; vote: string; numWords: number; numHits: number; type: string; language: string; }>; } export default SentimentManager;