UNPKG

@deeplx/core

Version:

An unofficial but powerful and easy-to-use yet free DeepL API client for Node.js using [DeepL](https://www.deepl.com) by porting [OwO-Network/DeepLX](https://github.com/OwO-Network/DeepLX).

5 lines (4 loc) 445 B
import { type SourceLanguage, type TargetLanguage } from './constants.ts'; import type { DeepLXTranslationResult } from './types.ts'; export declare function getSharedCookies(): string; export declare const translateByDeepLX: (sourceLang: SourceLanguage | undefined, targetLang: TargetLanguage, text: string, proxyUrl?: string, dlSession?: string, signal?: AbortSignal, skipWarm?: boolean, cookies?: string) => Promise<DeepLXTranslationResult>;