/** * @description The default language is the language from which the text will be translated. */ declare const FROM_DEFAULT_LANG: string; /** * @description The ALL_LANGUAJES object contains all the languages supported by the Google Translate API. */ declare const ALL_LANGUAJES: { readonly auto: "auto"; readonly af: "af"; readonly sq: "sq"; readonly am: "am"; readonly ar: "ar"; readonly hy: "hy"; readonly as: "as"; readonly ay: "ay"; readonly az: "az"; readonly bm: "bm"; readonly eu: "eu"; readonly be: "be"; readonly bn: "bn"; readonly bho: "bho"; readonly bs: "bs"; readonly bg: "bg"; readonly ca: "ca"; readonly ceb: "ceb"; readonly 'zh-CN': "zh-CN"; readonly zh: "zh"; readonly 'zh-TW': "zh-TW"; readonly co: "co"; readonly hr: "hr"; readonly cs: "cs"; readonly da: "da"; readonly dv: "dv"; readonly doi: "doi"; readonly nl: "nl"; readonly en: "en"; readonly eo: "eo"; readonly et: "et"; readonly ee: "ee"; readonly fil: "fil"; readonly fi: "fi"; readonly fr: "fr"; readonly fy: "fy"; readonly gl: "gl"; readonly ka: "ka"; readonly de: "de"; readonly el: "el"; readonly gn: "gn"; readonly gu: "gu"; readonly ht: "ht"; readonly ha: "ha"; readonly haw: "haw"; readonly he: "he"; readonly iw: "iw"; readonly hi: "hi"; readonly hmn: "hmn"; readonly hu: "hu"; readonly is: "is"; readonly ig: "ig"; readonly ilo: "ilo"; readonly id: "id"; readonly ga: "ga"; readonly it: "it"; readonly ja: "ja"; readonly jv: "jv"; readonly jw: "jw"; readonly kn: "kn"; readonly kk: "kk"; readonly km: "km"; readonly rw: "rw"; readonly gom: "gom"; readonly ko: "ko"; readonly kri: "kri"; readonly ku: "ku"; readonly ckb: "ckb"; readonly ky: "ky"; readonly lo: "lo"; readonly la: "la"; readonly lv: "lv"; readonly ln: "ln"; readonly lt: "lt"; readonly lg: "lg"; readonly lb: "lb"; readonly mk: "mk"; readonly mai: "mai"; readonly mg: "mg"; readonly ms: "ms"; readonly ml: "ml"; readonly mt: "mt"; readonly mi: "mi"; readonly mr: "mr"; readonly 'mni-Mtei': "mni-Mtei"; readonly lus: "lus"; readonly mn: "mn"; readonly my: "my"; readonly ne: "ne"; readonly no: "no"; readonly ny: "ny"; readonly or: "or"; readonly om: "om"; readonly ps: "ps"; readonly fa: "fa"; readonly pl: "pl"; readonly pt: "pt"; readonly pa: "pa"; readonly qu: "qu"; readonly ro: "ro"; readonly ru: "ru"; readonly sm: "sm"; readonly sa: "sa"; readonly gd: "gd"; readonly nso: "nso"; readonly sr: "sr"; readonly st: "st"; readonly sn: "sn"; readonly sd: "sd"; readonly si: "si"; readonly sk: "sk"; readonly sl: "sl"; readonly so: "so"; readonly es: "es"; readonly su: "su"; readonly sw: "sw"; readonly sv: "sv"; readonly tl: "tl"; readonly tg: "tg"; readonly ta: "ta"; readonly tt: "tt"; readonly te: "te"; readonly th: "th"; readonly ti: "ti"; readonly ts: "ts"; readonly tr: "tr"; readonly tk: "tk"; readonly ak: "ak"; readonly uk: "uk"; readonly ur: "ur"; readonly ug: "ug"; readonly uz: "uz"; readonly vi: "vi"; readonly cy: "cy"; readonly xh: "xh"; readonly yi: "yi"; readonly yo: "yo"; readonly zu: "zu"; }; type LanguagesCodigoISO639Str = keyof typeof ALL_LANGUAJES; type LanguagesCodigoISO639Obj = typeof ALL_LANGUAJES; type LanguagesCodigoISO639WhitoutAuto = keyof Pick>; interface RequestTranslationParams { from?: LanguagesCodigoISO639Str; to: LanguagesCodigoISO639WhitoutAuto; text: string; } type T = any; /** * @typedef {Object} RequestTranslationParams * @property {String} [from] - The language you want to translate from. * @property {String} to - The language you want to translate to. * @property {String} text - The text to be translated. */ /** * @description The JsGoogleTranslateFree class is used to translate text using the Google Translate API. * @class JsGoogleTranslateFree * */ declare class JsGoogleTranslateFree { #private; /** * @description The function is asynchronous, so it returns a promise. It takes a source language, a target language, and a text to translate, and returns a translation. * @param {RequestTranslationParams} options - The options to translate the text. * @returns The translation. */ static translate(options: RequestTranslationParams): Promise; } export { ALL_LANGUAJES, FROM_DEFAULT_LANG, JsGoogleTranslateFree, type LanguagesCodigoISO639Obj, type LanguagesCodigoISO639Str, type LanguagesCodigoISO639WhitoutAuto, type RequestTranslationParams, type T, JsGoogleTranslateFree as default };