import { BaseTranslator } from './BaseTranslator'; import { langCode, langCodeWithAuto } from './Translator'; /** * Fake translator for use in tests and debug */ export declare class FakeTranslator extends BaseTranslator<{ delay?: number | 'random'; }> { static readonly translatorName = "FakeTranslator"; static isSupportedAutoFrom(): boolean; static getSupportedLanguages(): langCode[]; getLengthLimit(): number; getRequestsTimeout(): number; checkDirection(from: langCodeWithAuto, to: langCode): boolean; translate(text: string, from: langCodeWithAuto, to: langCode): Promise; translateBatch(text: string[], from: langCodeWithAuto, to: langCode): Promise<(string | null)[]>; } /** * Fake translator which always throw error for use in tests and debug */ export declare class ErrorFakeTranslator extends FakeTranslator { static readonly translatorName = "FakeTranslator"; translate(_text: string, _from: langCodeWithAuto, _to: langCode): Promise; translateBatch(_text: string[], _from: langCodeWithAuto, _to: langCode): Promise; }