UNPKG

quran-meta

Version:

Library with meta data and functionality related to Holy Quran

18 lines (16 loc) 535 B
import { RiwayaData } from "./lists/types.cjs"; import { AyahId, Surah } from "./types.cjs"; //#region src/findSurahByAyahId.d.ts /** * Finds a Surah based on the provided Ayah ID. * * @param ayaId - The unique identifier of the Ayah * @param data - The Lists object containing SurahList. * @returns The Surah that contains the specified Ayah * * @example * const surah = findSurahByAyahId(1234, data); */ declare function findSurahByAyahId(ayaId: AyahId, data: RiwayaData): Surah; //#endregion export { findSurahByAyahId };