anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
14 lines (13 loc) • 573 B
TypeScript
import { ICache } from '../utils/cache';
import { Scheduler } from './Scheduler';
import { IScheduler, ISchedulerTranslateOptions } from '.';
export declare class SchedulerWithCache implements IScheduler {
private readonly scheduler;
private readonly cache;
constructor(scheduler: Scheduler, cache: ICache);
abort(context: string): Promise<void>;
translate(text: string, from: string, to: string, options?: ISchedulerTranslateOptions): Promise<string>;
private readonly notLetterRegExp;
private readonly trimmerRegExp;
private getTrimmed;
}