illyria-scraper
Version:
Google Translate scraper for Illyria Translate
11 lines (10 loc) • 609 B
TypeScript
import { type LangCode } from './utils/language.js';
import type { TranslationInfo } from './utils/interfaces.js';
/**
* Retrieves the full translation information given a pair of languages and a query
* @param source - The code of the language to translate from
* @param target - The code of the language to translate to
* @param query - The text to be translated
* @returns An element with all the information, as defined in {@link TranslationInfo}
*/
export declare const getTranslationInfo: (source: LangCode<"source">, target: LangCode<"target">, query: string) => Promise<TranslationInfo | null>;