import { client } from "./client"; import type { ExamQuestion, QuestionKind } from "./types"; export type ExamQuestionBody = { subject_id: string; text: string; kind: QuestionKind; points: number; choices?: string[] | null; correct?: number | null; }; export function postExamQuestion(examId: string, body: ExamQuestionBody): Promise { return client(`/exams/${examId}/questions`, { method: "POST", body }); }