import { InjectionToken } from '@angular/core' ; import { WordTranslation } from './entities/translation' ; export interface ITranslationService { translate ( englishWords , primaryLanguage , targetLanguage , maxTranslations ) : Promise < WordTranslation [ ] > ; } export const TRANSLATION_SERVICE = new InjectionToken < ITranslationService > ( 'Translation service' ) ; export const TRANSLATION_CONFIG = new InjectionToken < any > ( 'Translation service config' ) ;