import { Aliyah, AliyotMap, Leyning } from './types.js'; /** * Translates an aliyah's book name and verse numbers into the target * language, in place. Only Hebrew (`'he'`) currently transforms the object; * any other language leaves it unchanged. * @param aliyah the aliyah to translate (mutated in place) * @param language target language code, e.g. `'he'` for Hebrew * @returns the same `aliyah` object, translated */ export declare function translateAliyah(aliyah: Aliyah, language: string): Aliyah; /** * Translates aliyah(s) - handles single Aliyah, arrays, and AliyotMap. * For non-English languages, translates book names and converts verse numbers to Hebrew numerals. * Returns a new translated copy, leaving the original unchanged. * @param aliyahOrArray a single Aliyah, an array of Aliyah, or an AliyotMap * @param [language] target language code, e.g. `'he'` for Hebrew (default `'en'`) * @returns a translated copy in the same shape as the input */ export declare function translateAliyahOrArray(aliyahOrArray: T, language?: string): T; /** * Translates a Leyning object to the target language. * @param leyning - The Leyning object to translate * @param language - The target language code (e.g., 'he' for Hebrew) * @returns The translated Leyning object * @example * const leyning: Leyning = { * seph: [{k: 'Genesis', b: '1:1', e: '1:5'}], * haft: [{k: 'Genesis', b: '1:6', e: '1:10'}], * megillah: [{k: 'Genesis', b: '1:11', e: '1:15'}], * fullkriyah: [{k: 'Genesis', b: '1:16', e: '1:20'}], * }; * const translatedLeyning = translateLeyning(leyning, 'he'); * @todo add reason translation */ export declare function translateLeyning(leyning: Leyning, language: string): Leyning;