react-native-executorch 0.7.0-nightly-b4770df-20260205 → 0.7.0

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.
Files changed (296) hide show
  1. package/common/rnexecutorch/ErrorCodes.h +15 -30
  2. package/common/rnexecutorch/host_objects/ModelHostObject.h +5 -0
  3. package/common/rnexecutorch/models/llm/LLM.cpp +7 -0
  4. package/common/rnexecutorch/models/llm/LLM.h +1 -0
  5. package/lib/module/constants/llmDefaults.js +31 -0
  6. package/lib/module/constants/llmDefaults.js.map +1 -1
  7. package/lib/module/constants/modelUrls.js +220 -0
  8. package/lib/module/constants/modelUrls.js.map +1 -1
  9. package/lib/module/constants/ocr/models.js +255 -73
  10. package/lib/module/constants/ocr/models.js.map +1 -1
  11. package/lib/module/constants/ocr/symbols.js +4 -0
  12. package/lib/module/constants/ocr/symbols.js.map +1 -1
  13. package/lib/module/constants/tts/models.js +6 -2
  14. package/lib/module/constants/tts/models.js.map +1 -1
  15. package/lib/module/constants/tts/voices.js +27 -3
  16. package/lib/module/constants/tts/voices.js.map +1 -1
  17. package/lib/module/constants/versions.js +2 -2
  18. package/lib/module/controllers/LLMController.js +9 -0
  19. package/lib/module/controllers/LLMController.js.map +1 -1
  20. package/lib/module/errors/ErrorCodes.js +54 -0
  21. package/lib/module/errors/ErrorCodes.js.map +1 -1
  22. package/lib/module/errors/errorUtils.js +30 -6
  23. package/lib/module/errors/errorUtils.js.map +1 -1
  24. package/lib/module/hooks/computer_vision/useClassification.js +7 -0
  25. package/lib/module/hooks/computer_vision/useClassification.js.map +1 -1
  26. package/lib/module/hooks/computer_vision/useImageEmbeddings.js +8 -0
  27. package/lib/module/hooks/computer_vision/useImageEmbeddings.js.map +1 -1
  28. package/lib/module/hooks/computer_vision/useImageSegmentation.js +7 -0
  29. package/lib/module/hooks/computer_vision/useImageSegmentation.js.map +1 -1
  30. package/lib/module/hooks/computer_vision/useOCR.js +7 -0
  31. package/lib/module/hooks/computer_vision/useOCR.js.map +1 -1
  32. package/lib/module/hooks/computer_vision/useObjectDetection.js +7 -0
  33. package/lib/module/hooks/computer_vision/useObjectDetection.js.map +1 -1
  34. package/lib/module/hooks/computer_vision/useStyleTransfer.js +7 -0
  35. package/lib/module/hooks/computer_vision/useStyleTransfer.js.map +1 -1
  36. package/lib/module/hooks/computer_vision/useTextToImage.js +7 -0
  37. package/lib/module/hooks/computer_vision/useTextToImage.js.map +1 -1
  38. package/lib/module/hooks/computer_vision/useVerticalOCR.js +7 -0
  39. package/lib/module/hooks/computer_vision/useVerticalOCR.js.map +1 -1
  40. package/lib/module/hooks/general/useExecutorchModule.js +8 -0
  41. package/lib/module/hooks/general/useExecutorchModule.js.map +1 -1
  42. package/lib/module/hooks/natural_language_processing/useLLM.js +11 -3
  43. package/lib/module/hooks/natural_language_processing/useLLM.js.map +1 -1
  44. package/lib/module/hooks/natural_language_processing/useSpeechToText.js +8 -0
  45. package/lib/module/hooks/natural_language_processing/useSpeechToText.js.map +1 -1
  46. package/lib/module/hooks/natural_language_processing/useTextEmbeddings.js +7 -0
  47. package/lib/module/hooks/natural_language_processing/useTextEmbeddings.js.map +1 -1
  48. package/lib/module/hooks/natural_language_processing/useTextToSpeech.js +8 -0
  49. package/lib/module/hooks/natural_language_processing/useTextToSpeech.js.map +1 -1
  50. package/lib/module/hooks/natural_language_processing/useTokenizer.js +7 -0
  51. package/lib/module/hooks/natural_language_processing/useTokenizer.js.map +1 -1
  52. package/lib/module/hooks/natural_language_processing/useVAD.js +7 -0
  53. package/lib/module/hooks/natural_language_processing/useVAD.js.map +1 -1
  54. package/lib/module/hooks/useModule.js +12 -0
  55. package/lib/module/hooks/useModule.js.map +1 -1
  56. package/lib/module/index.js +10 -1
  57. package/lib/module/index.js.map +1 -1
  58. package/lib/module/modules/BaseModule.js +22 -0
  59. package/lib/module/modules/BaseModule.js.map +1 -1
  60. package/lib/module/modules/computer_vision/ClassificationModule.js +20 -0
  61. package/lib/module/modules/computer_vision/ClassificationModule.js.map +1 -1
  62. package/lib/module/modules/computer_vision/ImageEmbeddingsModule.js +19 -0
  63. package/lib/module/modules/computer_vision/ImageEmbeddingsModule.js.map +1 -1
  64. package/lib/module/modules/computer_vision/ImageSegmentationModule.js +22 -0
  65. package/lib/module/modules/computer_vision/ImageSegmentationModule.js.map +1 -1
  66. package/lib/module/modules/computer_vision/OCRModule.js +26 -0
  67. package/lib/module/modules/computer_vision/OCRModule.js.map +1 -1
  68. package/lib/module/modules/computer_vision/ObjectDetectionModule.js +22 -0
  69. package/lib/module/modules/computer_vision/ObjectDetectionModule.js.map +1 -1
  70. package/lib/module/modules/computer_vision/StyleTransferModule.js +20 -0
  71. package/lib/module/modules/computer_vision/StyleTransferModule.js.map +1 -1
  72. package/lib/module/modules/computer_vision/TextToImageModule.js +33 -0
  73. package/lib/module/modules/computer_vision/TextToImageModule.js.map +1 -1
  74. package/lib/module/modules/computer_vision/VerticalOCRModule.js +27 -0
  75. package/lib/module/modules/computer_vision/VerticalOCRModule.js.map +1 -1
  76. package/lib/module/modules/general/ExecutorchModule.js +21 -0
  77. package/lib/module/modules/general/ExecutorchModule.js.map +1 -1
  78. package/lib/module/modules/natural_language_processing/LLMModule.js +104 -0
  79. package/lib/module/modules/natural_language_processing/LLMModule.js.map +1 -1
  80. package/lib/module/modules/natural_language_processing/SpeechToTextModule.js +67 -21
  81. package/lib/module/modules/natural_language_processing/SpeechToTextModule.js.map +1 -1
  82. package/lib/module/modules/natural_language_processing/TextEmbeddingsModule.js +21 -0
  83. package/lib/module/modules/natural_language_processing/TextEmbeddingsModule.js.map +1 -1
  84. package/lib/module/modules/natural_language_processing/TextToSpeechModule.js +40 -0
  85. package/lib/module/modules/natural_language_processing/TextToSpeechModule.js.map +1 -1
  86. package/lib/module/modules/natural_language_processing/TokenizerModule.js +54 -2
  87. package/lib/module/modules/natural_language_processing/TokenizerModule.js.map +1 -1
  88. package/lib/module/modules/natural_language_processing/VADModule.js +20 -0
  89. package/lib/module/modules/natural_language_processing/VADModule.js.map +1 -1
  90. package/lib/module/types/classification.js +4 -0
  91. package/lib/module/types/classification.js.map +1 -0
  92. package/lib/module/types/common.js +96 -0
  93. package/lib/module/types/common.js.map +1 -1
  94. package/lib/module/types/executorchModule.js +4 -0
  95. package/lib/module/types/executorchModule.js.map +1 -0
  96. package/lib/module/types/imageEmbeddings.js +4 -0
  97. package/lib/module/types/imageEmbeddings.js.map +1 -0
  98. package/lib/module/types/imageSegmentation.js +22 -1
  99. package/lib/module/types/imageSegmentation.js.map +1 -1
  100. package/lib/module/types/llm.js +80 -2
  101. package/lib/module/types/llm.js.map +1 -1
  102. package/lib/module/types/objectDetection.js +42 -2
  103. package/lib/module/types/objectDetection.js.map +1 -1
  104. package/lib/module/types/styleTransfer.js +4 -0
  105. package/lib/module/types/styleTransfer.js.map +1 -0
  106. package/lib/module/types/textEmbeddings.js +4 -0
  107. package/lib/module/types/textEmbeddings.js.map +1 -0
  108. package/lib/module/types/tokenizer.js +4 -0
  109. package/lib/module/types/tokenizer.js.map +1 -0
  110. package/lib/module/types/tti.js +4 -0
  111. package/lib/module/types/tti.js.map +1 -0
  112. package/lib/module/types/vad.js +2 -0
  113. package/lib/module/utils/ResourceFetcher.js +63 -0
  114. package/lib/module/utils/ResourceFetcher.js.map +1 -1
  115. package/lib/module/utils/llm.js +24 -1
  116. package/lib/module/utils/llm.js.map +1 -1
  117. package/lib/typescript/constants/llmDefaults.d.ts +27 -0
  118. package/lib/typescript/constants/llmDefaults.d.ts.map +1 -1
  119. package/lib/typescript/constants/modelUrls.d.ts +165 -0
  120. package/lib/typescript/constants/modelUrls.d.ts.map +1 -1
  121. package/lib/typescript/constants/ocr/models.d.ts +189 -315
  122. package/lib/typescript/constants/ocr/models.d.ts.map +1 -1
  123. package/lib/typescript/constants/ocr/symbols.d.ts +3 -0
  124. package/lib/typescript/constants/ocr/symbols.d.ts.map +1 -1
  125. package/lib/typescript/constants/tts/models.d.ts +4 -0
  126. package/lib/typescript/constants/tts/models.d.ts.map +1 -1
  127. package/lib/typescript/constants/tts/voices.d.ts +24 -0
  128. package/lib/typescript/constants/tts/voices.d.ts.map +1 -1
  129. package/lib/typescript/constants/versions.d.ts +2 -2
  130. package/lib/typescript/controllers/LLMController.d.ts +2 -0
  131. package/lib/typescript/controllers/LLMController.d.ts.map +1 -1
  132. package/lib/typescript/errors/ErrorCodes.d.ts +54 -0
  133. package/lib/typescript/errors/ErrorCodes.d.ts.map +1 -1
  134. package/lib/typescript/errors/errorUtils.d.ts +9 -0
  135. package/lib/typescript/errors/errorUtils.d.ts.map +1 -1
  136. package/lib/typescript/hooks/computer_vision/useClassification.d.ts +9 -15
  137. package/lib/typescript/hooks/computer_vision/useClassification.d.ts.map +1 -1
  138. package/lib/typescript/hooks/computer_vision/useImageEmbeddings.d.ts +9 -15
  139. package/lib/typescript/hooks/computer_vision/useImageEmbeddings.d.ts.map +1 -1
  140. package/lib/typescript/hooks/computer_vision/useImageSegmentation.d.ts +9 -38
  141. package/lib/typescript/hooks/computer_vision/useImageSegmentation.d.ts.map +1 -1
  142. package/lib/typescript/hooks/computer_vision/useOCR.d.ts +9 -19
  143. package/lib/typescript/hooks/computer_vision/useOCR.d.ts.map +1 -1
  144. package/lib/typescript/hooks/computer_vision/useObjectDetection.d.ts +9 -15
  145. package/lib/typescript/hooks/computer_vision/useObjectDetection.d.ts.map +1 -1
  146. package/lib/typescript/hooks/computer_vision/useStyleTransfer.d.ts +9 -15
  147. package/lib/typescript/hooks/computer_vision/useStyleTransfer.d.ts.map +1 -1
  148. package/lib/typescript/hooks/computer_vision/useTextToImage.d.ts +9 -22
  149. package/lib/typescript/hooks/computer_vision/useTextToImage.d.ts.map +1 -1
  150. package/lib/typescript/hooks/computer_vision/useVerticalOCR.d.ts +9 -20
  151. package/lib/typescript/hooks/computer_vision/useVerticalOCR.d.ts.map +1 -1
  152. package/lib/typescript/hooks/general/useExecutorchModule.d.ts +9 -13
  153. package/lib/typescript/hooks/general/useExecutorchModule.d.ts.map +1 -1
  154. package/lib/typescript/hooks/natural_language_processing/useLLM.d.ts +9 -10
  155. package/lib/typescript/hooks/natural_language_processing/useLLM.d.ts.map +1 -1
  156. package/lib/typescript/hooks/natural_language_processing/useSpeechToText.d.ts +9 -19
  157. package/lib/typescript/hooks/natural_language_processing/useSpeechToText.d.ts.map +1 -1
  158. package/lib/typescript/hooks/natural_language_processing/useTextEmbeddings.d.ts +9 -16
  159. package/lib/typescript/hooks/natural_language_processing/useTextEmbeddings.d.ts.map +1 -1
  160. package/lib/typescript/hooks/natural_language_processing/useTextToSpeech.d.ts +9 -15
  161. package/lib/typescript/hooks/natural_language_processing/useTextToSpeech.d.ts.map +1 -1
  162. package/lib/typescript/hooks/natural_language_processing/useTokenizer.d.ts +9 -18
  163. package/lib/typescript/hooks/natural_language_processing/useTokenizer.d.ts.map +1 -1
  164. package/lib/typescript/hooks/natural_language_processing/useVAD.d.ts +9 -15
  165. package/lib/typescript/hooks/natural_language_processing/useVAD.d.ts.map +1 -1
  166. package/lib/typescript/hooks/useModule.d.ts +12 -0
  167. package/lib/typescript/hooks/useModule.d.ts.map +1 -1
  168. package/lib/typescript/index.d.ts +10 -1
  169. package/lib/typescript/index.d.ts.map +1 -1
  170. package/lib/typescript/modules/BaseModule.d.ts +20 -0
  171. package/lib/typescript/modules/BaseModule.d.ts.map +1 -1
  172. package/lib/typescript/modules/computer_vision/ClassificationModule.d.ts +21 -1
  173. package/lib/typescript/modules/computer_vision/ClassificationModule.d.ts.map +1 -1
  174. package/lib/typescript/modules/computer_vision/ImageEmbeddingsModule.d.ts +17 -0
  175. package/lib/typescript/modules/computer_vision/ImageEmbeddingsModule.d.ts.map +1 -1
  176. package/lib/typescript/modules/computer_vision/ImageSegmentationModule.d.ts +21 -3
  177. package/lib/typescript/modules/computer_vision/ImageSegmentationModule.d.ts.map +1 -1
  178. package/lib/typescript/modules/computer_vision/OCRModule.d.ts +25 -2
  179. package/lib/typescript/modules/computer_vision/OCRModule.d.ts.map +1 -1
  180. package/lib/typescript/modules/computer_vision/ObjectDetectionModule.d.ts +20 -0
  181. package/lib/typescript/modules/computer_vision/ObjectDetectionModule.d.ts.map +1 -1
  182. package/lib/typescript/modules/computer_vision/StyleTransferModule.d.ts +18 -0
  183. package/lib/typescript/modules/computer_vision/StyleTransferModule.d.ts.map +1 -1
  184. package/lib/typescript/modules/computer_vision/TextToImageModule.d.ts +29 -0
  185. package/lib/typescript/modules/computer_vision/TextToImageModule.d.ts.map +1 -1
  186. package/lib/typescript/modules/computer_vision/VerticalOCRModule.d.ts +26 -2
  187. package/lib/typescript/modules/computer_vision/VerticalOCRModule.d.ts.map +1 -1
  188. package/lib/typescript/modules/general/ExecutorchModule.d.ts +19 -0
  189. package/lib/typescript/modules/general/ExecutorchModule.d.ts.map +1 -1
  190. package/lib/typescript/modules/natural_language_processing/LLMModule.d.ts +97 -7
  191. package/lib/typescript/modules/natural_language_processing/LLMModule.d.ts.map +1 -1
  192. package/lib/typescript/modules/natural_language_processing/SpeechToTextModule.d.ts +62 -4
  193. package/lib/typescript/modules/natural_language_processing/SpeechToTextModule.d.ts.map +1 -1
  194. package/lib/typescript/modules/natural_language_processing/TextEmbeddingsModule.d.ts +19 -0
  195. package/lib/typescript/modules/natural_language_processing/TextEmbeddingsModule.d.ts.map +1 -1
  196. package/lib/typescript/modules/natural_language_processing/TextToSpeechModule.d.ts +37 -2
  197. package/lib/typescript/modules/natural_language_processing/TextToSpeechModule.d.ts.map +1 -1
  198. package/lib/typescript/modules/natural_language_processing/TokenizerModule.d.ts +47 -2
  199. package/lib/typescript/modules/natural_language_processing/TokenizerModule.d.ts.map +1 -1
  200. package/lib/typescript/modules/natural_language_processing/VADModule.d.ts +18 -0
  201. package/lib/typescript/modules/natural_language_processing/VADModule.d.ts.map +1 -1
  202. package/lib/typescript/types/classification.d.ts +50 -0
  203. package/lib/typescript/types/classification.d.ts.map +1 -0
  204. package/lib/typescript/types/common.d.ts +92 -0
  205. package/lib/typescript/types/common.d.ts.map +1 -1
  206. package/lib/typescript/types/executorchModule.d.ts +45 -0
  207. package/lib/typescript/types/executorchModule.d.ts.map +1 -0
  208. package/lib/typescript/types/imageEmbeddings.d.ts +48 -0
  209. package/lib/typescript/types/imageEmbeddings.d.ts.map +1 -0
  210. package/lib/typescript/types/imageSegmentation.d.ts +55 -0
  211. package/lib/typescript/types/imageSegmentation.d.ts.map +1 -1
  212. package/lib/typescript/types/llm.d.ts +193 -5
  213. package/lib/typescript/types/llm.d.ts.map +1 -1
  214. package/lib/typescript/types/objectDetection.d.ts +71 -2
  215. package/lib/typescript/types/objectDetection.d.ts.map +1 -1
  216. package/lib/typescript/types/ocr.d.ts +97 -2
  217. package/lib/typescript/types/ocr.d.ts.map +1 -1
  218. package/lib/typescript/types/stt.d.ts +114 -0
  219. package/lib/typescript/types/stt.d.ts.map +1 -1
  220. package/lib/typescript/types/styleTransfer.d.ts +48 -0
  221. package/lib/typescript/types/styleTransfer.d.ts.map +1 -0
  222. package/lib/typescript/types/textEmbeddings.d.ts +53 -0
  223. package/lib/typescript/types/textEmbeddings.d.ts.map +1 -0
  224. package/lib/typescript/types/tokenizer.d.ts +75 -0
  225. package/lib/typescript/types/tokenizer.d.ts.map +1 -0
  226. package/lib/typescript/types/tti.d.ts +74 -0
  227. package/lib/typescript/types/tti.d.ts.map +1 -0
  228. package/lib/typescript/types/tts.d.ts +77 -0
  229. package/lib/typescript/types/tts.d.ts.map +1 -1
  230. package/lib/typescript/types/vad.d.ts +53 -0
  231. package/lib/typescript/types/vad.d.ts.map +1 -1
  232. package/lib/typescript/utils/ResourceFetcher.d.ts +55 -0
  233. package/lib/typescript/utils/ResourceFetcher.d.ts.map +1 -1
  234. package/lib/typescript/utils/llm.d.ts +22 -0
  235. package/lib/typescript/utils/llm.d.ts.map +1 -1
  236. package/package.json +1 -1
  237. package/src/constants/llmDefaults.ts +27 -0
  238. package/src/constants/modelUrls.ts +166 -0
  239. package/src/constants/ocr/models.ts +192 -266
  240. package/src/constants/ocr/symbols.ts +3 -0
  241. package/src/constants/tts/models.ts +6 -2
  242. package/src/constants/tts/voices.ts +27 -3
  243. package/src/constants/versions.ts +2 -2
  244. package/src/controllers/LLMController.ts +15 -0
  245. package/src/errors/ErrorCodes.ts +54 -0
  246. package/src/errors/errorUtils.ts +37 -17
  247. package/src/hooks/computer_vision/useClassification.ts +15 -7
  248. package/src/hooks/computer_vision/useImageEmbeddings.ts +15 -7
  249. package/src/hooks/computer_vision/useImageSegmentation.ts +15 -7
  250. package/src/hooks/computer_vision/useOCR.ts +9 -21
  251. package/src/hooks/computer_vision/useObjectDetection.ts +15 -7
  252. package/src/hooks/computer_vision/useStyleTransfer.ts +15 -7
  253. package/src/hooks/computer_vision/useTextToImage.ts +9 -26
  254. package/src/hooks/computer_vision/useVerticalOCR.ts +9 -19
  255. package/src/hooks/general/useExecutorchModule.ts +12 -7
  256. package/src/hooks/natural_language_processing/useLLM.ts +24 -28
  257. package/src/hooks/natural_language_processing/useSpeechToText.ts +13 -5
  258. package/src/hooks/natural_language_processing/useTextEmbeddings.ts +15 -10
  259. package/src/hooks/natural_language_processing/useTextToSpeech.ts +10 -6
  260. package/src/hooks/natural_language_processing/useTokenizer.ts +10 -6
  261. package/src/hooks/natural_language_processing/useVAD.ts +9 -7
  262. package/src/hooks/useModule.ts +15 -0
  263. package/src/index.ts +10 -5
  264. package/src/modules/BaseModule.ts +20 -0
  265. package/src/modules/computer_vision/ClassificationModule.ts +19 -1
  266. package/src/modules/computer_vision/ImageEmbeddingsModule.ts +17 -0
  267. package/src/modules/computer_vision/ImageSegmentationModule.ts +21 -1
  268. package/src/modules/computer_vision/OCRModule.ts +25 -2
  269. package/src/modules/computer_vision/ObjectDetectionModule.ts +20 -0
  270. package/src/modules/computer_vision/StyleTransferModule.ts +18 -0
  271. package/src/modules/computer_vision/TextToImageModule.ts +29 -0
  272. package/src/modules/computer_vision/VerticalOCRModule.ts +26 -2
  273. package/src/modules/general/ExecutorchModule.ts +19 -0
  274. package/src/modules/natural_language_processing/LLMModule.ts +104 -18
  275. package/src/modules/natural_language_processing/SpeechToTextModule.ts +63 -39
  276. package/src/modules/natural_language_processing/TextEmbeddingsModule.ts +19 -0
  277. package/src/modules/natural_language_processing/TextToSpeechModule.ts +43 -2
  278. package/src/modules/natural_language_processing/TokenizerModule.ts +51 -3
  279. package/src/modules/natural_language_processing/VADModule.ts +18 -0
  280. package/src/types/classification.ts +51 -0
  281. package/src/types/common.ts +93 -0
  282. package/src/types/executorchModule.ts +50 -0
  283. package/src/types/imageEmbeddings.ts +51 -0
  284. package/src/types/imageSegmentation.ts +64 -1
  285. package/src/types/llm.ts +208 -11
  286. package/src/types/objectDetection.ts +79 -1
  287. package/src/types/ocr.ts +107 -2
  288. package/src/types/stt.ts +136 -1
  289. package/src/types/styleTransfer.ts +51 -0
  290. package/src/types/textEmbeddings.ts +58 -0
  291. package/src/types/tokenizer.ts +86 -0
  292. package/src/types/tti.ts +87 -0
  293. package/src/types/tts.ts +85 -2
  294. package/src/types/vad.ts +58 -0
  295. package/src/utils/ResourceFetcher.ts +55 -0
  296. package/src/utils/llm.ts +22 -1
@@ -1,8 +1,27 @@
1
1
  import { TensorPtr } from '../../types/common';
2
2
  import { BaseModule } from '../BaseModule';
3
3
  import { ResourceSource } from '../../types/common';
4
+ /**
5
+ * General module for executing custom Executorch models.
6
+ *
7
+ * @category Typescript API
8
+ */
4
9
  export declare class ExecutorchModule extends BaseModule {
10
+ /**
11
+ * Loads the model, where `modelSource` is a string, number, or object that specifies the location of the model binary.
12
+ * Optionally accepts a download progress callback.
13
+ *
14
+ * @param modelSource - Source of the model to be loaded.
15
+ * @param onDownloadProgressCallback - Optional callback to monitor download progress.
16
+ */
5
17
  load(modelSource: ResourceSource, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
18
+ /**
19
+ * Executes the model's forward pass, where input is an array of `TensorPtr` objects.
20
+ * If the inference is successful, an array of tensor pointers is returned.
21
+ *
22
+ * @param inputTensor - Array of input tensor pointers.
23
+ * @returns An array of output tensor pointers.
24
+ */
6
25
  forward(inputTensor: TensorPtr[]): Promise<TensorPtr[]>;
7
26
  }
8
27
  //# sourceMappingURL=ExecutorchModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExecutorchModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/general/ExecutorchModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,gBAAiB,SAAQ,UAAU;IACxC,IAAI,CACR,WAAW,EAAE,cAAc,EAC3B,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAcV,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAG9D"}
1
+ {"version":3,"file":"ExecutorchModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/general/ExecutorchModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C;;;;;;OAMG;IACG,IAAI,CACR,WAAW,EAAE,cAAc,EAC3B,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAchB;;;;;;OAMG;IACG,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAG9D"}
@@ -1,31 +1,121 @@
1
1
  import { ResourceSource } from '../../types/common';
2
- import { ChatConfig, GenerationConfig, LLMTool, Message, ToolsConfig } from '../../types/llm';
2
+ import { LLMConfig, LLMTool, Message } from '../../types/llm';
3
+ /**
4
+ * Module for managing a Large Language Model (LLM) instance.
5
+ *
6
+ * @category Typescript API
7
+ */
3
8
  export declare class LLMModule {
4
9
  private controller;
10
+ /**
11
+ * Creates a new instance of `LLMModule` with optional callbacks.
12
+ * @param optionalCallbacks - Object containing optional callbacks.
13
+ *
14
+ * @returns A new LLMModule instance.
15
+ */
5
16
  constructor({ tokenCallback, messageHistoryCallback, }?: {
17
+ /**
18
+ * An optional function that will be called on every generated token (`string`) with that token as its only argument.
19
+ */
6
20
  tokenCallback?: (token: string) => void;
7
- responseCallback?: (response: string) => void;
21
+ /**
22
+ * An optional function called on every finished message (`Message[]`).
23
+ * Returns the entire message history.
24
+ */
8
25
  messageHistoryCallback?: (messageHistory: Message[]) => void;
9
26
  });
27
+ /**
28
+ * Loads the LLM model and tokenizer.
29
+ *
30
+ * @param model - Object containing model, tokenizer, and tokenizer config sources.
31
+ * @param model.modelSource - `ResourceSource` that specifies the location of the model binary.
32
+ * @param model.tokenizerSource - `ResourceSource` pointing to the JSON file which contains the tokenizer.
33
+ * @param model.tokenizerConfigSource - `ResourceSource` pointing to the JSON file which contains the tokenizer config.
34
+ * @param onDownloadProgressCallback - Optional callback to track download progress (value between 0 and 1).
35
+ */
10
36
  load(model: {
11
37
  modelSource: ResourceSource;
12
38
  tokenizerSource: ResourceSource;
13
39
  tokenizerConfigSource: ResourceSource;
14
40
  }, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
41
+ /**
42
+ * Sets new token callback invoked on every token batch.
43
+ *
44
+ * @param tokenCallback - Callback function to handle new tokens.
45
+ */
15
46
  setTokenCallback({ tokenCallback, }: {
16
47
  tokenCallback: (token: string) => void;
17
48
  }): void;
18
- configure({ chatConfig, toolsConfig, generationConfig, }: {
19
- chatConfig?: Partial<ChatConfig>;
20
- toolsConfig?: ToolsConfig;
21
- generationConfig?: GenerationConfig;
22
- }): void;
49
+ /**
50
+ * Configures chat and tool calling and generation settings.
51
+ * See [Configuring the model](https://docs.swmansion.com/react-native-executorch/docs/hooks/natural-language-processing/useLLM#configuring-the-model) for details.
52
+ *
53
+ * @param configuration - Configuration object containing `chatConfig`, `toolsConfig`, and `generationConfig`.
54
+ */
55
+ configure({ chatConfig, toolsConfig, generationConfig }: LLMConfig): void;
56
+ /**
57
+ * Runs model inference with raw input string.
58
+ * You need to provide entire conversation and prompt (in correct format and with special tokens!) in input string to this method.
59
+ * It doesn't manage conversation context. It is intended for users that need access to the model itself without any wrapper.
60
+ * If you want a simple chat with model the consider using `sendMessage`
61
+ *
62
+ * @param input - Raw input string containing the prompt and conversation history.
63
+ * @returns The generated response as a string.
64
+ */
23
65
  forward(input: string): Promise<string>;
66
+ /**
67
+ * Runs model to complete chat passed in `messages` argument. It doesn't manage conversation context.
68
+ *
69
+ * @param messages - Array of messages representing the chat history.
70
+ * @param tools - Optional array of tools that can be used during generation.
71
+ * @returns The generated response as a string.
72
+ */
24
73
  generate(messages: Message[], tools?: LLMTool[]): Promise<string>;
74
+ /**
75
+ * Method to add user message to conversation.
76
+ * After model responds it will call `messageHistoryCallback()` containing both user message and model response.
77
+ * It also returns them.
78
+ *
79
+ * @param message - The message string to send.
80
+ * @returns - Updated message history including the new user message and model response.
81
+ */
25
82
  sendMessage(message: string): Promise<Message[]>;
83
+ /**
84
+ * Deletes all messages starting with message on `index` position.
85
+ * After deletion it will call `messageHistoryCallback()` containing new history.
86
+ * It also returns it.
87
+ *
88
+ * @param index - The index of the message to delete from history.
89
+ * @returns - Updated message history after deletion.
90
+ */
26
91
  deleteMessage(index: number): Message[];
92
+ /**
93
+ * Interrupts model generation. It may return one more token after interrupt.
94
+ */
27
95
  interrupt(): void;
96
+ /**
97
+ * Returns the number of tokens generated in the last response.
98
+ *
99
+ * @returns The count of generated tokens.
100
+ */
28
101
  getGeneratedTokenCount(): number;
102
+ /**
103
+ * Returns the number of prompt tokens in the last message.
104
+ *
105
+ * @returns The count of prompt token.
106
+ */
107
+ getPromptTokensCount(): number;
108
+ /**
109
+ * Returns the number of total tokens from the previous generation. This is a sum of prompt tokens and generated tokens.
110
+ *
111
+ * @returns The count of prompt and generated tokens.
112
+ */
113
+ getTotalTokensCount(): number;
114
+ /**
115
+ * Method to delete the model from memory.
116
+ * Note you cannot delete model while it's generating.
117
+ * You need to interrupt it first and make sure model stopped generation.
118
+ */
29
119
  delete(): void;
30
120
  }
31
121
  //# sourceMappingURL=LLMModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LLMModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/LLMModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAEzB,qBAAa,SAAS;IACpB,OAAO,CAAC,UAAU,CAAgB;gBAEtB,EACV,aAAa,EACb,sBAAsB,GACvB,GAAE;QACD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACxC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;QAC9C,sBAAsB,CAAC,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;KACzD;IAOA,IAAI,CACR,KAAK,EAAE;QACL,WAAW,EAAE,cAAc,CAAC;QAC5B,eAAe,EAAE,cAAc,CAAC;QAChC,qBAAqB,EAAE,cAAc,CAAC;KACvC,EACD,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe;IAQnE,gBAAgB,CAAC,EACf,aAAa,GACd,EAAE;QACD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;KACxC;IAID,SAAS,CAAC,EACR,UAAU,EACV,WAAW,EACX,gBAAgB,GACjB,EAAE;QACD,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;QACjC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;KACrC;IAIK,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvC,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjE,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAKtD,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE;IAKvC,SAAS;IAIT,sBAAsB;IAItB,MAAM;CAGP"}
1
+ {"version":3,"file":"LLMModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/LLMModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE9D;;;;GAIG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,UAAU,CAAgB;IAElC;;;;;OAKG;gBACS,EACV,aAAa,EACb,sBAAsB,GACvB,GAAE;QACD;;WAEG;QACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACxC;;;WAGG;QACH,sBAAsB,CAAC,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;KACzD;IAON;;;;;;;;OAQG;IACG,IAAI,CACR,KAAK,EAAE;QACL,WAAW,EAAE,cAAc,CAAC;QAC5B,eAAe,EAAE,cAAc,CAAC;QAChC,qBAAqB,EAAE,cAAc,CAAC;KACvC,EACD,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe;IAQnE;;;;OAIG;IACH,gBAAgB,CAAC,EACf,aAAa,GACd,EAAE;QACD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;KACxC;IAID;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,EAAE,SAAS;IAIlE;;;;;;;;OAQG;IACG,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7C;;;;;;OAMG;IACG,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvE;;;;;;;OAOG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAKtD;;;;;;;OAOG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE;IAKvC;;OAEG;IACH,SAAS;IAIT;;;;OAIG;IACH,sBAAsB,IAAI,MAAM;IAIhC;;;;OAIG;IACH,oBAAoB;IAIpB;;;;OAIG;IACH,mBAAmB;IAInB;;;;OAIG;IACH,MAAM;CAGP"}
@@ -1,18 +1,76 @@
1
1
  import { DecodingOptions, SpeechToTextModelConfig } from '../../types/stt';
2
+ /**
3
+ * Module for Speech to Text (STT) functionalities.
4
+ *
5
+ * @category Typescript API
6
+ */
2
7
  export declare class SpeechToTextModule {
3
8
  private nativeModule;
4
9
  private modelConfig;
5
10
  private textDecoder;
11
+ /**
12
+ * Loads the model specified by the config object.
13
+ * `onDownloadProgressCallback` allows you to monitor the current progress of the model download.
14
+ *
15
+ * @param model - Configuration object containing model sources.
16
+ * @param onDownloadProgressCallback - Optional callback to monitor download progress.
17
+ */
6
18
  load(model: SpeechToTextModelConfig, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
19
+ /**
20
+ * Unloads the model from memory.
21
+ */
7
22
  delete(): void;
8
- encode(waveform: Float32Array | number[]): Promise<Float32Array>;
9
- decode(tokens: Int32Array | number[], encoderOutput: Float32Array | number[]): Promise<Float32Array>;
10
- transcribe(waveform: Float32Array | number[], options?: DecodingOptions): Promise<string>;
23
+ /**
24
+ * Runs the encoding part of the model on the provided waveform.
25
+ * Returns the encoded waveform as a Float32Array.
26
+ *
27
+ * @param waveform - The input audio waveform.
28
+ * @returns The encoded output.
29
+ */
30
+ encode(waveform: Float32Array): Promise<Float32Array>;
31
+ /**
32
+ * Runs the decoder of the model.
33
+ *
34
+ * @param tokens - The input tokens.
35
+ * @param encoderOutput - The encoder output.
36
+ * @returns Decoded output.
37
+ */
38
+ decode(tokens: Int32Array, encoderOutput: Float32Array): Promise<Float32Array>;
39
+ /**
40
+ * Starts a transcription process for a given input array (16kHz waveform).
41
+ * For multilingual models, specify the language in `options`.
42
+ * Returns the transcription as a string. Passing `number[]` is deprecated.
43
+ *
44
+ * @param waveform - The Float32Array audio data.
45
+ * @param options - Decoding options including language.
46
+ * @returns The transcription string.
47
+ */
48
+ transcribe(waveform: Float32Array, options?: DecodingOptions): Promise<string>;
49
+ /**
50
+ * Starts a streaming transcription session.
51
+ * Yields objects with `committed` and `nonCommitted` transcriptions.
52
+ * Committed transcription contains the part of the transcription that is finalized and will not change.
53
+ * Useful for displaying stable results during streaming.
54
+ * Non-committed transcription contains the part of the transcription that is still being processed and may change.
55
+ * Useful for displaying live, partial results during streaming.
56
+ * Use with `streamInsert` and `streamStop` to control the stream.
57
+ *
58
+ * @param options - Decoding options including language.
59
+ * @returns An async generator yielding transcription updates.
60
+ */
11
61
  stream(options?: DecodingOptions): AsyncGenerator<{
12
62
  committed: string;
13
63
  nonCommitted: string;
14
64
  }>;
15
- streamInsert(waveform: Float32Array | number[]): void;
65
+ /**
66
+ * Inserts a new audio chunk into the streaming transcription session.
67
+ *
68
+ * @param waveform - The audio chunk to insert.
69
+ */
70
+ streamInsert(waveform: Float32Array): void;
71
+ /**
72
+ * Stops the current streaming transcription session.
73
+ */
16
74
  streamStop(): void;
17
75
  private validateOptions;
18
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SpeechToTextModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/SpeechToTextModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAK3E,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,YAAY,CAAM;IAE1B,OAAO,CAAC,WAAW,CAA2B;IAE9C,OAAO,CAAC,WAAW,CAGhB;IAEU,IAAI,CACf,KAAK,EAAE,uBAAuB,EAC9B,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe;IAgC5D,MAAM,IAAI,IAAI;IAIR,MAAM,CACjB,QAAQ,EAAE,YAAY,GAAG,MAAM,EAAE,GAChC,OAAO,CAAC,YAAY,CAAC;IAUX,MAAM,CACjB,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,EAC7B,aAAa,EAAE,YAAY,GAAG,MAAM,EAAE,GACrC,OAAO,CAAC,YAAY,CAAC;IAkBX,UAAU,CACrB,QAAQ,EAAE,YAAY,GAAG,MAAM,EAAE,EACjC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC;IAgBJ,MAAM,CAClB,OAAO,GAAE,eAAoB,GAC5B,cAAc,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAqDvD,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,EAAE,GAAG,IAAI;IAUrD,UAAU,IAAI,IAAI;IAIzB,OAAO,CAAC,eAAe;CAcxB"}
1
+ {"version":3,"file":"SpeechToTextModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/SpeechToTextModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAK3E;;;;GAIG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,YAAY,CAAM;IAE1B,OAAO,CAAC,WAAW,CAA2B;IAE9C,OAAO,CAAC,WAAW,CAGhB;IAEH;;;;;;OAMG;IACU,IAAI,CACf,KAAK,EAAE,uBAAuB,EAC9B,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe;IAgCnE;;OAEG;IACI,MAAM,IAAI,IAAI;IAIrB;;;;;;OAMG;IACU,MAAM,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlE;;;;;;OAMG;IACU,MAAM,CACjB,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,YAAY,GAC1B,OAAO,CAAC,YAAY,CAAC;IAMxB;;;;;;;;OAQG;IACU,UAAU,CACrB,QAAQ,EAAE,YAAY,EACtB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC;IASlB;;;;;;;;;;;OAWG;IACW,MAAM,CAClB,OAAO,GAAE,eAAoB,GAC5B,cAAc,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAqD9D;;;;OAIG;IACI,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAIjD;;OAEG;IACI,UAAU,IAAI,IAAI;IAIzB,OAAO,CAAC,eAAe;CAcxB"}
@@ -1,10 +1,29 @@
1
1
  import { ResourceSource } from '../../types/common';
2
2
  import { BaseModule } from '../BaseModule';
3
+ /**
4
+ * Module for generating text embeddings from input text.
5
+ *
6
+ * @category Typescript API
7
+ */
3
8
  export declare class TextEmbeddingsModule extends BaseModule {
9
+ /**
10
+ * Loads the model and tokenizer specified by the config object.
11
+ *
12
+ * @param model - Object containing model and tokenizer sources.
13
+ * @param model.modelSource - `ResourceSource` that specifies the location of the text embeddings model binary.
14
+ * @param model.tokenizerSource - `ResourceSource` that specifies the location of the tokenizer JSON file.
15
+ * @param onDownloadProgressCallback - Optional callback to track download progress (value between 0 and 1).
16
+ */
4
17
  load(model: {
5
18
  modelSource: ResourceSource;
6
19
  tokenizerSource: ResourceSource;
7
20
  }, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
21
+ /**
22
+ * Executes the model's forward pass, where `input` is a text that will be embedded.
23
+ *
24
+ * @param input - The text string to embed.
25
+ * @returns A Float32Array containing the vector embeddings.
26
+ */
8
27
  forward(input: string): Promise<Float32Array>;
9
28
  }
10
29
  //# sourceMappingURL=TextEmbeddingsModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextEmbeddingsModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TextEmbeddingsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,qBAAa,oBAAqB,SAAQ,UAAU;IAC5C,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAC;QAAC,eAAe,EAAE,cAAc,CAAA;KAAE,EACvE,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAwBV,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAGpD"}
1
+ {"version":3,"file":"TextEmbeddingsModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TextEmbeddingsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,UAAU;IAClD;;;;;;;OAOG;IACG,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAC;QAAC,eAAe,EAAE,cAAc,CAAA;KAAE,EACvE,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAwBhB;;;;;OAKG;IACG,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAGpD"}
@@ -1,11 +1,46 @@
1
1
  import { TextToSpeechConfig, TextToSpeechStreamingInput } from '../../types/tts';
2
+ /**
3
+ * Module for Text to Speech (TTS) functionalities.
4
+ *
5
+ * @category Typescript API
6
+ */
2
7
  export declare class TextToSpeechModule {
8
+ /**
9
+ * Native module instance
10
+ */
3
11
  nativeModule: any;
12
+ /**
13
+ * Loads the model and voice assets specified by the config object.
14
+ * `onDownloadProgressCallback` allows you to monitor the current progress.
15
+ *
16
+ * @param config - Configuration object containing `model` source and `voice`.
17
+ * @param onDownloadProgressCallback - Optional callback to monitor download progress.
18
+ */
4
19
  load(config: TextToSpeechConfig, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
5
20
  private loadKokoro;
6
- forward(text: string, speed?: number): Promise<any>;
7
- stream({ text, speed }: TextToSpeechStreamingInput): AsyncGenerator<Float32Array<ArrayBufferLike>, void, unknown>;
21
+ /**
22
+ * Synthesizes the provided text into speech.
23
+ * Returns a promise that resolves to the full audio waveform as a `Float32Array`.
24
+ *
25
+ * @param text The input text to be synthesized.
26
+ * @param speed Optional speed multiplier for the speech synthesis (default is 1.0).
27
+ * @returns A promise resolving to the synthesized audio waveform.
28
+ */
29
+ forward(text: string, speed?: number): Promise<Float32Array>;
30
+ /**
31
+ * Starts a streaming synthesis session. Yields audio chunks as they are generated.
32
+ *
33
+ * @param input - Input object containing text and optional speed.
34
+ * @returns An async generator yielding Float32Array audio chunks.
35
+ */
36
+ stream({ text, speed, }: TextToSpeechStreamingInput): AsyncGenerator<Float32Array>;
37
+ /**
38
+ * Stops the streaming process if there is any ongoing.
39
+ */
8
40
  streamStop(): void;
41
+ /**
42
+ * Unloads the model from memory.
43
+ */
9
44
  delete(): void;
10
45
  }
11
46
  //# sourceMappingURL=TextToSpeechModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextToSpeechModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TextToSpeechModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,iBAAiB,CAAC;AAEzB,qBAAa,kBAAkB;IAC7B,YAAY,EAAE,GAAG,CAAQ;IAEZ,IAAI,CACf,MAAM,EAAE,kBAAkB,EAC1B,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;YAaF,UAAU;IA8CX,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,MAAY;IASxC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,0BAA0B;IA0CzD,UAAU,IAAI,IAAI;IAIzB,MAAM;CAKP"}
1
+ {"version":3,"file":"TextToSpeechModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TextToSpeechModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,qBAAa,kBAAkB;IAC7B;;OAEG;IACH,YAAY,EAAE,GAAG,CAAQ;IAEzB;;;;;;OAMG;IACU,IAAI,CACf,MAAM,EAAE,kBAAkB,EAC1B,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;YAaF,UAAU;IA8CxB;;;;;;;OAOG;IACU,OAAO,CAClB,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,MAAY,GAClB,OAAO,CAAC,YAAY,CAAC;IASxB;;;;;OAKG;IACW,MAAM,CAAC,EACnB,IAAI,EACJ,KAAK,GACN,EAAE,0BAA0B,GAAG,cAAc,CAAC,YAAY,CAAC;IA0C5D;;OAEG;IACI,UAAU,IAAI,IAAI;IAIzB;;OAEG;IACH,MAAM;CAKP"}
@@ -1,13 +1,58 @@
1
1
  import { ResourceSource } from '../../types/common';
2
+ /**
3
+ * Module for Tokenizer functionalities.
4
+ *
5
+ * @category Typescript API
6
+ */
2
7
  export declare class TokenizerModule {
8
+ /**
9
+ * Native module instance
10
+ */
3
11
  nativeModule: any;
12
+ /**
13
+ * Loads the tokenizer from the specified source.
14
+ * `tokenizerSource` is a string that points to the location of the tokenizer JSON file.
15
+ *
16
+ * @param tokenizer - Object containing `tokenizerSource`.
17
+ * @param onDownloadProgressCallback - Optional callback to monitor download progress.
18
+ */
4
19
  load(tokenizer: {
5
20
  tokenizerSource: ResourceSource;
6
21
  }, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
7
- encode(s: string): Promise<any>;
8
- decode(tokens: number[], skipSpecialTokens?: boolean): Promise<any>;
22
+ /**
23
+ * Converts a string into an array of token IDs.
24
+ *
25
+ * @param input - The input string to be tokenized.
26
+ * @returns An array of token IDs.
27
+ */
28
+ encode(input: string): Promise<number[]>;
29
+ /**
30
+ * Converts an array of token IDs into a string.
31
+ *
32
+ * @param tokens - Array of token IDs to be decoded.
33
+ * @param skipSpecialTokens - Whether to skip special tokens during decoding (default: true).
34
+ * @returns The decoded string.
35
+ */
36
+ decode(tokens: number[], skipSpecialTokens?: boolean): Promise<string>;
37
+ /**
38
+ * Returns the size of the tokenizer's vocabulary.
39
+ *
40
+ * @returns The vocabulary size.
41
+ */
9
42
  getVocabSize(): Promise<number>;
43
+ /**
44
+ * Returns the token associated to the ID.
45
+ *
46
+ * @param tokenId - ID of the token.
47
+ * @returns The token string associated to ID.
48
+ */
10
49
  idToToken(tokenId: number): Promise<string>;
50
+ /**
51
+ * Returns the ID associated to the token.
52
+ *
53
+ * @param token - The token string.
54
+ * @returns The ID associated to the token.
55
+ */
11
56
  tokenToId(token: string): Promise<number>;
12
57
  }
13
58
  //# sourceMappingURL=TokenizerModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenizerModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TokenizerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,eAAe;IAC1B,YAAY,EAAE,GAAG,CAAC;IAEZ,IAAI,CACR,SAAS,EAAE;QAAE,eAAe,EAAE,cAAc,CAAA;KAAE,EAC9C,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAeV,MAAM,CAAC,CAAC,EAAE,MAAM;IAIhB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAE,OAAc;IAO1D,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3C,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGhD"}
1
+ {"version":3,"file":"TokenizerModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TokenizerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD;;;;GAIG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC;IAElB;;;;;;OAMG;IACG,IAAI,CACR,SAAS,EAAE;QAAE,eAAe,EAAE,cAAc,CAAA;KAAE,EAC9C,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;OAKG;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAI9C;;;;;;OAMG;IACG,MAAM,CACV,MAAM,EAAE,MAAM,EAAE,EAChB,iBAAiB,GAAE,OAAc,GAChC,OAAO,CAAC,MAAM,CAAC;IAOlB;;;;OAIG;IACG,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAIrC;;;;;OAKG;IACG,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD;;;;;OAKG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGhD"}
@@ -1,10 +1,28 @@
1
1
  import { ResourceSource } from '../../types/common';
2
2
  import { Segment } from '../../types/vad';
3
3
  import { BaseModule } from '../BaseModule';
4
+ /**
5
+ * Module for Voice Activity Detection (VAD) functionalities.
6
+ *
7
+ * @category Typescript API
8
+ */
4
9
  export declare class VADModule extends BaseModule {
10
+ /**
11
+ * Loads the model, where `modelSource` is a string that specifies the location of the model binary.
12
+ * To track the download progress, supply a callback function `onDownloadProgressCallback`.
13
+ *
14
+ * @param model - Object containing `modelSource`.
15
+ * @param onDownloadProgressCallback - Optional callback to monitor download progress.
16
+ */
5
17
  load(model: {
6
18
  modelSource: ResourceSource;
7
19
  }, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
20
+ /**
21
+ * Executes the model's forward pass, where `waveform` is a Float32Array representing the audio signal (16kHz).
22
+ *
23
+ * @param waveform - The input audio waveform as a Float32Array. It must represent a mono audio signal sampled at 16kHz.
24
+ * @returns A promise resolving to an array of detected speech segments.
25
+ */
8
26
  forward(waveform: Float32Array): Promise<Segment[]>;
9
27
  }
10
28
  //# sourceMappingURL=VADModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VADModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/VADModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,qBAAa,SAAU,SAAQ,UAAU;IACjC,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,EACtC,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAcV,OAAO,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAQ1D"}
1
+ {"version":3,"file":"VADModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/VADModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC;;;;;;OAMG;IACG,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,EACtC,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAchB;;;;;OAKG;IACG,OAAO,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAQ1D"}
@@ -0,0 +1,50 @@
1
+ import { RnExecutorchError } from '../errors/errorUtils';
2
+ import { ResourceSource } from './common';
3
+ /**
4
+ * Props for the `useClassification` hook.
5
+ *
6
+ * @category Types
7
+ * @property {Object} model - An object containing the model source.
8
+ * @property {ResourceSource} model.modelSource - The source of the classification model binary.
9
+ * @property {boolean} [preventLoad] - Boolean that can prevent automatic model loading (and downloading the data if you load it for the first time) after running the hook.
10
+ */
11
+ export interface ClassificationProps {
12
+ model: {
13
+ modelSource: ResourceSource;
14
+ };
15
+ preventLoad?: boolean;
16
+ }
17
+ /**
18
+ * Return type for the `useClassification` hook.
19
+ * Manages the state and operations for Computer Vision image classification.
20
+ *
21
+ * @category Types
22
+ */
23
+ export interface ClassificationType {
24
+ /**
25
+ * Contains the error object if the model failed to load, download, or encountered a runtime error during classification.
26
+ */
27
+ error: RnExecutorchError | null;
28
+ /**
29
+ * Indicates whether the classification model is loaded and ready to process images.
30
+ */
31
+ isReady: boolean;
32
+ /**
33
+ * Indicates whether the model is currently processing an image.
34
+ */
35
+ isGenerating: boolean;
36
+ /**
37
+ * Represents the download progress of the model binary as a value between 0 and 1.
38
+ */
39
+ downloadProgress: number;
40
+ /**
41
+ * Executes the model's forward pass to classify the provided image.
42
+ * @param imageSource - A string representing the image source (e.g., a file path, URI, or base64 string) to be classified.
43
+ * @returns A Promise that resolves to the classification result (typically containing labels and confidence scores).
44
+ * @throws {RnExecutorchError} If the model is not loaded or is currently processing another image.
45
+ */
46
+ forward: (imageSource: string) => Promise<{
47
+ [category: string]: number;
48
+ }>;
49
+ }
50
+ //# sourceMappingURL=classification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classification.d.ts","sourceRoot":"","sources":["../../../src/types/classification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3E"}
@@ -1,29 +1,121 @@
1
+ /**
2
+ * Common types used across the React Native Executorch package.
3
+ */
4
+ /**
5
+ * Represents a source of a resource, which can be a string (e.g., URL or file path), a number (e.g., resource ID), or an object (e.g., binary data).
6
+ *
7
+ * @category Types
8
+ */
1
9
  export type ResourceSource = string | number | object;
10
+ /**
11
+ * Enum representing the scalar types of tensors.
12
+ *
13
+ * @category Types
14
+ */
2
15
  export declare enum ScalarType {
16
+ /**
17
+ * Byte type (8-bit unsigned integer).
18
+ */
3
19
  BYTE = 0,
20
+ /**
21
+ * Character type (8-bit signed integer).
22
+ */
4
23
  CHAR = 1,
24
+ /**
25
+ * Short integer type (16-bit signed integer).
26
+ */
5
27
  SHORT = 2,
28
+ /**
29
+ * Integer type (32-bit signed integer).
30
+ */
6
31
  INT = 3,
32
+ /**
33
+ * Long integer type (64-bit signed integer).
34
+ */
7
35
  LONG = 4,
36
+ /**
37
+ * Half-precision floating point type (16-bit).
38
+ */
8
39
  HALF = 5,
40
+ /**
41
+ * Single-precision floating point type (32-bit).
42
+ */
9
43
  FLOAT = 6,
44
+ /**
45
+ * Double-precision floating point type (64-bit).
46
+ */
10
47
  DOUBLE = 7,
48
+ /**
49
+ * Boolean type.
50
+ */
11
51
  BOOL = 11,
52
+ /**
53
+ * Quantized 8-bit signed integer type.
54
+ */
12
55
  QINT8 = 12,
56
+ /**
57
+ * Quantized 8-bit unsigned integer type.
58
+ */
13
59
  QUINT8 = 13,
60
+ /**
61
+ * Quantized 32-bit signed integer type.
62
+ */
14
63
  QINT32 = 14,
64
+ /**
65
+ * Packed Quantized Unsigned 4-bit Integers type (2 number in 1 byte).
66
+ */
15
67
  QUINT4X2 = 16,
68
+ /**
69
+ * Packed Quantized Unsigned 2-bit Integer type (4 numbers in 1 byte).
70
+ */
16
71
  QUINT2X4 = 17,
72
+ /**
73
+ * Raw Bits type.
74
+ */
17
75
  BITS16 = 22,
76
+ /**
77
+ * Quantized 8-bit floating point type: Sign bit, 5 Exponent bits, 2 Mantissa bits.
78
+ */
18
79
  FLOAT8E5M2 = 23,
80
+ /**
81
+ * Quantized 8-bit floating point type: Sign bit, 4 Exponent bits, 3 Mantissa bits.
82
+ */
19
83
  FLOAT8E4M3FN = 24,
84
+ /**
85
+ * Quantized 8-bit floating point type with No Unsigned Zero (NUZ): Sign bit, 5 Exponent bits, 2 Mantissa bits.
86
+ */
20
87
  FLOAT8E5M2FNUZ = 25,
88
+ /**
89
+ * Quantized 8-bit floating point type with No Unsigned Zero (NUZ): Sign bit, 4 Exponent bits, 3 Mantissa bits.
90
+ */
21
91
  FLOAT8E4M3FNUZ = 26,
92
+ /**
93
+ * Unsigned 16-bit integer type.
94
+ */
22
95
  UINT16 = 27,
96
+ /**
97
+ * Unsigned 32-bit integer type.
98
+ */
23
99
  UINT32 = 28,
100
+ /**
101
+ * Unsigned 64-bit integer type.
102
+ */
24
103
  UINT64 = 29
25
104
  }
105
+ /**
106
+ * Represents the data buffer of a tensor, which can be one of several typed array formats.
107
+ *
108
+ * @category Types
109
+ */
26
110
  export type TensorBuffer = ArrayBuffer | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | BigInt64Array | BigUint64Array;
111
+ /**
112
+ * Represents a pointer to a tensor, including its data buffer, size dimensions, and scalar type.
113
+ *
114
+ * @category Types
115
+ * @property {TensorBuffer} dataPtr - The data buffer of the tensor.
116
+ * @property {number[]} sizes - An array representing the size of each dimension of the tensor.
117
+ * @property {ScalarType} scalarType - The scalar type of the tensor, as defined in the `ScalarType` enum.
118
+ */
27
119
  export interface TensorPtr {
28
120
  dataPtr: TensorBuffer;
29
121
  sizes: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,oBAAY,UAAU;IACpB,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,MAAM,IAAI;IACV,IAAI,KAAK;IACT,KAAK,KAAK;IACV,MAAM,KAAK;IACX,MAAM,KAAK;IACX,QAAQ,KAAK;IACb,QAAQ,KAAK;IACb,MAAM,KAAK;IACX,UAAU,KAAK;IACf,YAAY,KAAK;IACjB,cAAc,KAAK;IACnB,cAAc,KAAK;IACnB,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;CACZ;AAED,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;;;GAIG;AACH,oBAAY,UAAU;IACpB;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,GAAG,IAAI;IACP;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,MAAM,IAAI;IACV;;OAEG;IACH,IAAI,KAAK;IACT;;OAEG;IACH,KAAK,KAAK;IACV;;OAEG;IACH,MAAM,KAAK;IACX;;OAEG;IACH,MAAM,KAAK;IACX;;OAEG;IACH,QAAQ,KAAK;IACb;;OAEG;IACH,QAAQ,KAAK;IACb;;OAEG;IACH,MAAM,KAAK;IACX;;OAEG;IACH,UAAU,KAAK;IACf;;OAEG;IACH,YAAY,KAAK;IACjB;;OAEG;IACH,cAAc,KAAK;IACnB;;OAEG;IACH,cAAc,KAAK;IACnB;;OAEG;IACH,MAAM,KAAK;IACX;;OAEG;IACH,MAAM,KAAK;IACX;;OAEG;IACH,MAAM,KAAK;CACZ;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC;CACxB"}