quran-meta
Version:
Library with meta data and functionality related to Holy Quran
17 lines (15 loc) • 709 B
text/typescript
import { RiwayaData } from "./lists/types.mjs";
import { AyahNo, AyahRange, RangeMode, Surah } from "./types.mjs";
//#region src/findRangeAroundSurahAyah.d.ts
/**
* Finds a range of ayahs around a given ayah based on the specified mode.
*
* @param surah - The surah number (1-114)
* @param ayah - The ayah number within the surah
* @param mode - The range mode: "juz", "surah", "ayah", "page", "ruku" or "all"
* @param lists - The Lists object for the riwaya.
* @returns A tuple containing the start and end ayah IDs of the range
*/
declare function findRangeAroundSurahAyah(surah: Surah, ayah: AyahNo, mode: RangeMode, data: RiwayaData): AyahRange;
//#endregion
export { findRangeAroundSurahAyah };