UNPKG

deepl-client

Version:
9 lines (8 loc) 507 B
import { TranslationParameters } from '../interfaces/translation/translationParameters'; import { TranslationResponse } from '../interfaces/translation/translationResponse'; /** * Translate a string into another language using the DeepL API. * @property {TranslationParameters} params The parameters you can send to configure DeepL. * @returns {Promise<TranslationResponse>} An array of translated text. */ export declare function translate(params: TranslationParameters): Promise<TranslationResponse>;