import { GlossaryEntry } from "./glossary.js"; import { LanguageModel } from "ai"; //#region src/terms.d.ts /** * Options for extracting terms from a translation. */ interface ExtractTermsOptions { /** * Maximum number of terms to extract. * * @default `10` */ readonly maxTerms?: number; /** * Optional abort signal. */ readonly signal?: AbortSignal; } /** * Extracts key terminology pairs from source text and its translation. * * This function uses an LLM to identify important terms, proper nouns, * technical vocabulary, and other key phrases that should be translated * consistently throughout a document. * * @param model The language model to use for extraction. * @param sourceText The original source text. * @param translatedText The translated text. * @param options Optional extraction options. * @returns An array of glossary entries. */ declare function extractTerms(model: LanguageModel, sourceText: string, translatedText: string, options?: ExtractTermsOptions): Promise; //#endregion export { ExtractTermsOptions, extractTerms };