deepl-mark/dist/translate.d.ts
2026-03-02 08:56:39 +01:00

7 lines
474 B
TypeScript

import type { SourceLanguageCode, TargetLanguageCode, TranslateTextOptions } from 'deepl-node';
/**
* Translate an array of strings from sourceLang to targetLang using DeepL.
* Batches requests and retries on rate-limit (429) or server (5xx) errors.
*/
export declare function translateStrings(strings: string[], sourceLang: SourceLanguageCode, targetLang: TargetLanguageCode, apiKey?: string, deeplOptions?: TranslateTextOptions, batchSize?: number): Promise<string[]>;