import { Y as QiraatReaderInclude, _ as QiraatReadersResponse, $ as QiraatReaderResponse, a0 as QiraatTransmittersResponse, a1 as QiraatTransmitterResponse, V as VerseKey, Z as QiraatJunctureInclude, a7 as QiraatJuncturesByVerseResponse, C as ChapterId, a8 as QiraatJuncturesByChapterResponse, ac as QiraatJunctureResponse, ag as QiraatReadingResponse, ah as QiraatMatrixTextField, ar as QiraatMatrixByVerseResponse, as as QiraatMatrixByChapterResponse, at as QiraatMatrixCountWithinRangeResponse, b5 as AnalyticsBatchRequest, b6 as AnalyticsBatchAccepted, a as QuranAnswers, d as QuranAudio, Q as QuranChapters, i as AnswersByAyahResponse, k as AnswerCountWithinRangeResponse, h as AnswerQuestion, l as ChapterRecitation, N as NormalizedVerseRecitation, I as Pagination, o as Chapter, p as ChapterInfo, q as ChapterInfoResponse, s as HadithReferencesByAyahResponse, x as HadithCountWithinRangeResponse, w as HadithsByAyahResponse, G as Juz, aF as ContentSyncResourceGroup, b0 as ContentResourceSnapshot, aC as ChapterInfoResource, aE as ChapterReciterResource, aB as LanguageResource, aA as RecitationStylesResource, av as RecitationInfoResource, au as RecitationResource, az as TafsirInfoResource, ay as TafsirResource, ax as TranslationInfoResource, aw as TranslationResource, aD as VerseMediaResource, aY as ContentSyncOptions, a$ as ContentSyncResponse, E as Verse, H as HizbNumber, J as JuzNumber, P as PageNumber, R as RubNumber, e as QuranHadithReferences, c as QuranJuzs, f as QuranResources, g as QuranSearch, S as SearchResponse, b as QuranVerses } from './verses-DmAJY9ZS.mjs'; import { R as RawOperation, Q as QuranReflectPostsFacade } from './runtime-utils-BgscSsmR.mjs'; import { a1 as QuranFetchClient, B as BaseApiParams, a6 as ServerClientConfig, aa as OperationRequest, G as AppStateTransport, k as ApiParams, a4 as UserSession, a9 as TokenResponse, m as SearchParams } from './app-state-state-DN5xrHqP.mjs'; export { N as AppStateAccountState, x as AppStateBootstrapPage, y as AppStateChange, D as AppStateChangesOptions, z as AppStateChangesPage, q as AppStateCollection, s as AppStateConfiguration, t as AppStateDocument, u as AppStateDocumentWithEtag, A as AppStateErrorCode, b as AppStateErrorPayload, c as AppStateHttpError, n as AppStateJsonValue, r as AppStateLimits, F as AppStateMutationOptions, v as AppStateMutationResult, w as AppStatePage, C as AppStatePageOptions, K as AppStatePendingDelete, M as AppStatePendingMutation, I as AppStatePendingMutationBase, J as AppStatePendingPut, e as AppStateProtocolError, E as AppStatePutBody, Z as AppStateReconciler, Y as AppStateReconcilerOptions, p as AppStateResponse, R as AppStateStateView, X as AppStateStore, U as AppStateStoreReducer, H as AppStateStoredDocument, o as AppStateSuccess, O as AppStateVisibleDocument, a as QuranHttpError, f as createAppStateMemoryStore, d as createAppStateReconciler, g as getAppStateErrorCode, i as isAppStateHttpError } from './app-state-state-DN5xrHqP.mjs'; type GetQiraatReadersOptions = BaseApiParams & { include?: QiraatReaderInclude | QiraatReaderInclude[]; }; type GetQiraatReaderOptions = BaseApiParams; type GetQiraatTransmittersOptions = BaseApiParams & { readerId?: number | string; }; type GetQiraatTransmitterOptions = BaseApiParams; type GetQiraatJuncturesByVerseOptions = BaseApiParams & { category?: string; include?: QiraatJunctureInclude | QiraatJunctureInclude[]; }; type GetQiraatJuncturesByChapterOptions = BaseApiParams & { category?: string; page?: number; perPage?: number; }; type GetQiraatJunctureOptions = BaseApiParams; type GetQiraatReadingOptions = BaseApiParams; type GetQiraatMatrixByVerseOptions = BaseApiParams & { textField?: QiraatMatrixTextField | "uthmani" | "imlaei" | "qpc_hafs"; }; type GetQiraatMatrixByChapterOptions = GetQiraatMatrixByVerseOptions & { page?: number; perPage?: number; }; type CountQiraatMatrixWithinRangeOptions = BaseApiParams; /** * Qira'at (variant recitations) API methods. * * These endpoints require the `qiraat.read` (or `qiraat`) OAuth scope. */ declare class QuranQiraat { private fetcher; constructor(fetcher: QuranFetchClient); /** * Get all Qira'at readers. * @param {GetQiraatReadersOptions} options * @example * client.qiraat.findAllReaders({ include: ["transmitters"] }) */ findAllReaders(options?: GetQiraatReadersOptions): Promise; /** * Get a Qira'at reader by id. * @param {string | number} id reader id * @param {GetQiraatReaderOptions} options * @example * client.qiraat.findReaderById(1) */ findReaderById(id: string | number, options?: GetQiraatReaderOptions): Promise; /** * Get all Qira'at transmitters, optionally filtered by reader. * @param {GetQiraatTransmittersOptions} options * @example * client.qiraat.findAllTransmitters({ readerId: 1 }) */ findAllTransmitters(options?: GetQiraatTransmittersOptions): Promise; /** * Get a Qira'at transmitter by id. * @param {string | number} id transmitter id * @param {GetQiraatTransmitterOptions} options * @example * client.qiraat.findTransmitterById(1) */ findTransmitterById(id: string | number, options?: GetQiraatTransmitterOptions): Promise; /** * Get the approved junctures (points of variation) in a specific ayah. * @param {VerseKey} key verse key in format "chapter:verse" (e.g., "1:4") * @param {GetQiraatJuncturesByVerseOptions} options * @example * client.qiraat.findJuncturesByVerse("1:4", { include: ["readings"] }) */ findJuncturesByVerse(key: VerseKey, options?: GetQiraatJuncturesByVerseOptions): Promise; /** * Get the approved junctures in a chapter (paginated). * @param {ChapterId} chapterId chapter number (1-114) * @param {GetQiraatJuncturesByChapterOptions} options * @example * client.qiraat.findJuncturesByChapter(1, { page: 1, perPage: 20 }) */ findJuncturesByChapter(chapterId: ChapterId, options?: GetQiraatJuncturesByChapterOptions): Promise; /** * Get a juncture with its readings by id. * @param {string | number} id juncture id * @param {GetQiraatJunctureOptions} options * @example * client.qiraat.findJunctureById(1) */ findJunctureById(id: string | number, options?: GetQiraatJunctureOptions): Promise; /** * Get a reading and its reader/transmitter attributions by id. * @param {string | number} id reading id * @param {GetQiraatReadingOptions} options * @example * client.qiraat.findReadingById(1) */ findReadingById(id: string | number, options?: GetQiraatReadingOptions): Promise; /** * Get the Qira'at matrix for an ayah. The API responds with 404 when the * ayah has no recorded variations. * @param {VerseKey} key verse key in format "chapter:verse" (e.g., "1:4") * @param {GetQiraatMatrixByVerseOptions} options * @example * client.qiraat.findMatrixByVerse("1:4", { textField: "text_imlaei" }) */ findMatrixByVerse(key: VerseKey, options?: GetQiraatMatrixByVerseOptions): Promise; /** * Get the Qira'at matrix for a chapter (paginated). * @param {ChapterId} chapterId chapter number (1-114) * @param {GetQiraatMatrixByChapterOptions} options * @example * client.qiraat.findMatrixByChapter(1, { page: 1, perPage: 20 }) */ findMatrixByChapter(chapterId: ChapterId, options?: GetQiraatMatrixByChapterOptions): Promise; /** * Get a verse-key to juncture-count map within an inclusive ayah range. * @param {VerseKey} from start verse key in format "chapter:verse" * @param {VerseKey} to end verse key in format "chapter:verse" * @param {CountQiraatMatrixWithinRangeOptions} options * @example * client.qiraat.countMatrixWithinRange("1:1", "2:10") */ countMatrixWithinRange(from: VerseKey, to: VerseKey, options?: CountQiraatMatrixWithinRangeOptions): Promise; } declare const createServerClient: (config: ServerClientConfig) => { analytics: { v1: { events: { submit: (request: AnalyticsBatchRequest) => Promise; }; raw: Record Promise>; }; events: { submit: (request: AnalyticsBatchRequest) => Promise; }; raw: Record Promise>; }; answers: QuranAnswers; audio: QuranAudio; auth: { v1: { appState: AppStateTransport; collections: { addBookmark: (collectionId: string, body: Record) => Promise; create: (body: Record) => Promise; get: (collectionId: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; listAll: (query?: ApiParams) => Promise; remove: (collectionId: string) => Promise; removeBookmark: (collectionId: string, bookmarkId: string) => Promise; update: (collectionId: string, body: Record) => Promise; }; bookmarks: { create: (body: Record) => Promise; get: (query?: ApiParams | string) => Promise; list: (query?: ApiParams) => Promise; listCollections: (query?: ApiParams) => Promise; listRange: (query?: ApiParams) => Promise; remove: (bookmarkId: string) => Promise; }; goals: { create: (body: Record) => Promise; estimate: (query?: ApiParams) => Promise; getTodaysPlan: (query?: ApiParams) => Promise; remove: (id: string) => Promise; update: (id: string, body: Record) => Promise; }; notes: { create: (body: Record) => Promise; get: (noteId: string) => Promise; list: (query?: ApiParams) => Promise; listByAttachedEntity: (query?: ApiParams) => Promise; listByRange: (query?: ApiParams) => Promise; listByVerseKey: (verseKey: string, query?: ApiParams) => Promise; publish: (noteId: string, body?: Record) => Promise; remove: (noteId: string) => Promise; update: (noteId: string, body: Record) => Promise; }; preferences: { bulkUpdate: (body: Record) => Promise; get: (query?: ApiParams) => Promise; update: (body: Record) => Promise; }; raw: Record; readingSessions: { create: (body: Record) => Promise; list: (query?: ApiParams) => Promise; }; }; appState: AppStateTransport; collections: { addBookmark: (collectionId: string, body: Record) => Promise; create: (body: Record) => Promise; get: (collectionId: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; listAll: (query?: ApiParams) => Promise; remove: (collectionId: string) => Promise; removeBookmark: (collectionId: string, bookmarkId: string) => Promise; update: (collectionId: string, body: Record) => Promise; }; bookmarks: { create: (body: Record) => Promise; get: (query?: ApiParams | string) => Promise; list: (query?: ApiParams) => Promise; listCollections: (query?: ApiParams) => Promise; listRange: (query?: ApiParams) => Promise; remove: (bookmarkId: string) => Promise; }; goals: { create: (body: Record) => Promise; estimate: (query?: ApiParams) => Promise; getTodaysPlan: (query?: ApiParams) => Promise; remove: (id: string) => Promise; update: (id: string, body: Record) => Promise; }; notes: { create: (body: Record) => Promise; get: (noteId: string) => Promise; list: (query?: ApiParams) => Promise; listByAttachedEntity: (query?: ApiParams) => Promise; listByRange: (query?: ApiParams) => Promise; listByVerseKey: (verseKey: string, query?: ApiParams) => Promise; publish: (noteId: string, body?: Record) => Promise; remove: (noteId: string) => Promise; update: (noteId: string, body: Record) => Promise; }; preferences: { bulkUpdate: (body: Record) => Promise; get: (query?: ApiParams) => Promise; update: (body: Record) => Promise; }; raw: Record; readingSessions: { create: (body: Record) => Promise; list: (query?: ApiParams) => Promise; }; }; chapters: QuranChapters; clearCachedTokens: () => void; content: { v4: { answers: { byAyah: (key: VerseKey, query?: ApiParams) => Promise; countWithinRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; get: (questionId: string | number) => Promise; }; audio: { chapterRecitation: { get: (reciterId: string, chapterId: ChapterId, query?: ApiParams) => Promise; list: (reciterId: string, query?: ApiParams) => Promise; }; verseRecitation: { byChapter: (chapterId: ChapterId, recitationId: string, query?: ApiParams) => Promise<{ audioFiles: NormalizedVerseRecitation[]; pagination: Pagination; }>; byKey: (verseKey: VerseKey, recitationId: string, query?: ApiParams) => Promise<{ audioFiles: NormalizedVerseRecitation[]; pagination: Pagination; }>; }; }; chapters: { get: (id: ChapterId, query?: ApiParams) => Promise; getInfo: (id: ChapterId, query?: ApiParams) => Promise; getInfoResponse: (id: ChapterId, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; hadithReferences: { byAyah: (key: VerseKey, query?: ApiParams) => Promise; countWithinRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; hadithsByAyah: (key: VerseKey, query?: ApiParams) => Promise; }; juzs: { list: () => Promise; }; qiraat: { junctures: { byChapter: (id: ChapterId, query?: ApiParams) => Promise; byVerse: (key: VerseKey, query?: ApiParams) => Promise; get: (id: string | number, query?: ApiParams) => Promise; }; matrix: { byChapter: (id: ChapterId, query?: ApiParams) => Promise; byVerse: (key: VerseKey, query?: ApiParams) => Promise; countWithinRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; }; readers: { get: (id: string | number, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; readings: { get: (id: string | number, query?: ApiParams) => Promise; }; transmitters: { get: (id: string | number, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; }; raw: Record Promise>; resources: { findSnapshot: (resourceGroup: ContentSyncResourceGroup, id: string | number, query?: ApiParams) => Promise>>; chapterInfos: { list: (query?: ApiParams) => Promise; }; chapterReciters: { list: (query?: ApiParams) => Promise; }; languages: { list: (query?: ApiParams) => Promise; }; recitationStyles: { list: (query?: ApiParams) => Promise; }; recitations: { getInfo: (id: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; tafsirs: { getInfo: (id: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; translations: { getInfo: (id: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; verseMedia: { list: (query?: ApiParams) => Promise; }; sync: (query?: ContentSyncOptions) => Promise>>; }; verses: { byChapter: (id: ChapterId, query?: ApiParams) => Promise; byHizb: (id: HizbNumber, query?: ApiParams) => Promise; byJuz: (id: JuzNumber, query?: ApiParams) => Promise; byKey: (key: VerseKey, query?: ApiParams) => Promise; byPage: (page: PageNumber, query?: ApiParams) => Promise; byRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; byRub: (id: RubNumber, query?: ApiParams) => Promise; random: (query?: ApiParams) => Promise; }; }; answers: { byAyah: (key: VerseKey, query?: ApiParams) => Promise; countWithinRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; get: (questionId: string | number) => Promise; }; audio: { chapterRecitation: { get: (reciterId: string, chapterId: ChapterId, query?: ApiParams) => Promise; list: (reciterId: string, query?: ApiParams) => Promise; }; verseRecitation: { byChapter: (chapterId: ChapterId, recitationId: string, query?: ApiParams) => Promise<{ audioFiles: NormalizedVerseRecitation[]; pagination: Pagination; }>; byKey: (verseKey: VerseKey, recitationId: string, query?: ApiParams) => Promise<{ audioFiles: NormalizedVerseRecitation[]; pagination: Pagination; }>; }; }; chapters: { get: (id: ChapterId, query?: ApiParams) => Promise; getInfo: (id: ChapterId, query?: ApiParams) => Promise; getInfoResponse: (id: ChapterId, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; hadithReferences: { byAyah: (key: VerseKey, query?: ApiParams) => Promise; countWithinRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; hadithsByAyah: (key: VerseKey, query?: ApiParams) => Promise; }; juzs: { list: () => Promise; }; qiraat: { junctures: { byChapter: (id: ChapterId, query?: ApiParams) => Promise; byVerse: (key: VerseKey, query?: ApiParams) => Promise; get: (id: string | number, query?: ApiParams) => Promise; }; matrix: { byChapter: (id: ChapterId, query?: ApiParams) => Promise; byVerse: (key: VerseKey, query?: ApiParams) => Promise; countWithinRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; }; readers: { get: (id: string | number, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; readings: { get: (id: string | number, query?: ApiParams) => Promise; }; transmitters: { get: (id: string | number, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; }; raw: Record Promise>; resources: { findSnapshot: (resourceGroup: ContentSyncResourceGroup, id: string | number, query?: ApiParams) => Promise>>; chapterInfos: { list: (query?: ApiParams) => Promise; }; chapterReciters: { list: (query?: ApiParams) => Promise; }; languages: { list: (query?: ApiParams) => Promise; }; recitationStyles: { list: (query?: ApiParams) => Promise; }; recitations: { getInfo: (id: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; tafsirs: { getInfo: (id: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; translations: { getInfo: (id: string, query?: ApiParams) => Promise; list: (query?: ApiParams) => Promise; }; verseMedia: { list: (query?: ApiParams) => Promise; }; sync: (query?: ContentSyncOptions) => Promise>>; }; verses: { byChapter: (id: ChapterId, query?: ApiParams) => Promise; byHizb: (id: HizbNumber, query?: ApiParams) => Promise; byJuz: (id: JuzNumber, query?: ApiParams) => Promise; byKey: (key: VerseKey, query?: ApiParams) => Promise; byPage: (page: PageNumber, query?: ApiParams) => Promise; byRange: (from: VerseKey, to: VerseKey, query?: ApiParams) => Promise; byRub: (id: RubNumber, query?: ApiParams) => Promise; random: (query?: ApiParams) => Promise; }; }; getUserSession: () => Promise; hadithReferences: QuranHadithReferences; juzs: QuranJuzs; oauth2: { v1: { authorizeUrl: (query: Record) => string; exchangeCode: (params: { code: string; codeVerifier?: string; redirectUri: string; scope?: string; }) => Promise; getUserInfo: (accessToken?: string) => Promise; introspect: (token: string) => Promise; logout: (query?: ApiParams) => Promise; raw: Record; refresh: (refreshToken?: string) => Promise; }; authorizeUrl: (query: Record) => string; exchangeCode: (params: { code: string; codeVerifier?: string; redirectUri: string; scope?: string; }) => Promise; getUserInfo: (accessToken?: string) => Promise; introspect: (token: string) => Promise; logout: (query?: ApiParams) => Promise; raw: Record; refresh: (refreshToken?: string) => Promise; }; qiraat: QuranQiraat; quranReflect: { v1: { comments: { [x: string]: (request?: OperationRequest) => Promise; }; posts: QuranReflectPostsFacade; raw: Record Promise>; rooms: { [x: string]: (request?: OperationRequest) => Promise; }; tags: { [x: string]: (request?: OperationRequest) => Promise; }; users: { [x: string]: (request?: OperationRequest) => Promise; }; }; comments: { [x: string]: (request?: OperationRequest) => Promise; }; posts: QuranReflectPostsFacade; raw: Record Promise>; rooms: { [x: string]: (request?: OperationRequest) => Promise; }; tags: { [x: string]: (request?: OperationRequest) => Promise; }; users: { [x: string]: (request?: OperationRequest) => Promise; }; }; raw: { analytics: { v1: Record; }; auth: { v1: Record; }; content: { v4: Record; }; oauth2: { v1: Record; }; quranReflect: { v1: Record; }; search: { v1: Record; }; }; resources: QuranResources; search: QuranSearch & { query: ({ query: searchQuery, ...options }: { query: string; } & Omit) => Promise; raw: Record; v1: { query: ({ query: searchQuery, ...options }: { query: string; } & Omit) => Promise; raw: Record; }; }; verses: QuranVerses; }; type ServerClient = ReturnType; export { AppStateTransport, type ServerClient, createServerClient };