lingva-scraper-update
Version:
Google Translate scraper for Lingva Translate
11 lines (10 loc) • 593 B
TypeScript
import { LangCode } from "./utils/language";
import { TranslationInfo } from "./utils/interfaces";
/**
* 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>;