deepl-client
Version:
A client to interact with the DeepL API.
9 lines (8 loc) • 507 B
TypeScript
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>;