import { client } from "../client"; import { normalizePage, pageQuery, type Page, type PageParams, type ScheduleWindowParams, } from "../client"; import type { Exam } from "../client"; export async function getExams( params?: PageParams & ScheduleWindowParams, signal?: AbortSignal ): Promise> { const data = await client(`/exams${pageQuery(params)}`, { signal }); return normalizePage(data); }