anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
16 lines (15 loc) • 623 B
TypeScript
import { BaseTranslator } from '../BaseTranslator';
/**
* This module did not test too ago
*/
export declare class ReversoTranslator extends BaseTranslator {
static readonly translatorName = "ReversoTranslator (public)";
static isSupportedAutoFrom(): boolean;
static getSupportedLanguages(): string[];
getLengthLimit(): number;
getRequestsTimeout(): number;
checkLimitExceeding(text: string | string[]): number;
private readonly langMap;
translate(text: string, from: string, to: string): Promise<string>;
translateBatch(text: string[], from: string, to: string): Promise<string[]>;
}