UNPKG

lingva-scraper-update

Version:
11 lines (10 loc) 593 B
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>;