@project-sunbird/collection-editor-react 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+
3
+ interface UseQumlContentOptions {
4
+ enabled?: boolean;
5
+ }
6
+ /**
7
+ * Fetches and assembles the QuestionSet metadata a QuML player needs.
8
+ * - reads the questionset hierarchy
9
+ * - collects all question identifiers from the tree
10
+ * - fetches full question bodies via /question/v2/list
11
+ * - replaces question stubs in the hierarchy with the full data
12
+ * - backfills outcomeDeclaration.maxScore where missing
13
+ * The result is passed straight to <sunbird-quml-player> as `metadata`.
14
+ */
15
+ export declare function useQumlContent(questionSetId: string, options?: UseQumlContentOptions): UseQueryResult<Record<string, unknown>, Error>;
16
+ export {};