/******************************************************************************* * Copyright (c) 2023-2026 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse License 1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ import { XMLElement } from 'typesxml'; import { MTEngine } from './MTEngine.js'; import { MTMatch } from './MTMatch.js'; export declare class OllamaTranslator implements MTEngine { baseUrl: string; model: string; think: boolean; srcLang: string; tgtLang: string; constructor(baseUrl: string, model: string, think?: boolean); setThink(think: boolean): void; private fetchWithTimeout; private chat; getMTMatch(source: XMLElement, terms: { source: string; target: string; }[]): Promise; handlesTags(): boolean; fixesMatches(): boolean; fixMatch(originalSource: XMLElement, matchSource: XMLElement, matchTarget: XMLElement): Promise; fixesTags(): boolean; fixTags(source: XMLElement, target: XMLElement): Promise; getName(): string; getShortName(): string; getSourceLanguages(): Promise; getTargetLanguages(): Promise; setSourceLanguage(lang: string): void; getSourceLanguage(): string; setTargetLanguage(lang: string): void; getTargetLanguage(): string; translate(source: string): Promise; getAvailableModels(): Promise; }