@almadar/ui 5.110.0 → 5.112.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 (589) hide show
  1. package/dist/GameAudioProvider-CPGwD49P.d.cts +151 -0
  2. package/dist/GameAudioProvider-CPGwD49P.d.ts +151 -0
  3. package/dist/TraitProvider-YkK6tXDw.d.cts +236 -0
  4. package/dist/TraitProvider-YkK6tXDw.d.ts +236 -0
  5. package/dist/{providers/UISlotContext.d.ts → UISlotContext-C1FsU9GB.d.ts} +14 -10
  6. package/dist/UISlotContext-D8_SoDsD.d.cts +79 -0
  7. package/dist/UserContext-bziZwgFL.d.cts +278 -0
  8. package/dist/UserContext-bziZwgFL.d.ts +278 -0
  9. package/dist/avl/index.cjs +126 -29
  10. package/dist/avl/index.js +128 -31
  11. package/dist/avl-schema-parser-DKRm-nyh.d.cts +611 -0
  12. package/dist/avl-schema-parser-DKRm-nyh.d.ts +611 -0
  13. package/dist/cn-BbPvQLHt.d.cts +294 -0
  14. package/dist/cn-BbPvQLHt.d.ts +294 -0
  15. package/dist/components/index.cjs +56 -18
  16. package/dist/components/index.d.cts +11224 -0
  17. package/dist/components/index.d.ts +11224 -6
  18. package/dist/components/index.js +56 -18
  19. package/dist/{lib/themeTokens.d.ts → context/index.d.cts} +13 -4
  20. package/dist/context/index.d.ts +62 -9
  21. package/dist/{types/event-bus-types.d.ts → event-bus-types-Bl78kokd.d.cts} +7 -6
  22. package/dist/event-bus-types-Bl78kokd.d.ts +65 -0
  23. package/dist/hooks/index.d.cts +995 -0
  24. package/dist/hooks/index.d.ts +994 -32
  25. package/dist/lib/drawable/three/index.cjs +317 -178
  26. package/dist/lib/drawable/three/index.d.cts +1484 -0
  27. package/dist/lib/drawable/three/index.d.ts +1483 -38
  28. package/dist/lib/drawable/three/index.js +161 -22
  29. package/dist/lib/index.cjs +8 -0
  30. package/dist/lib/index.d.cts +504 -0
  31. package/dist/lib/index.d.ts +503 -18
  32. package/dist/lib/index.js +8 -1
  33. package/dist/locales/index.d.cts +22 -0
  34. package/dist/locales/index.d.ts +7 -5
  35. package/dist/offline-executor-aRuNznZx.d.cts +520 -0
  36. package/dist/offline-executor-aRuNznZx.d.ts +520 -0
  37. package/dist/providers/index.cjs +56 -18
  38. package/dist/providers/index.d.cts +428 -0
  39. package/dist/providers/index.d.ts +427 -26
  40. package/dist/providers/index.js +56 -18
  41. package/dist/renderer/index.cjs +1 -1
  42. package/dist/renderer/index.d.cts +343 -0
  43. package/dist/renderer/index.d.ts +337 -22
  44. package/dist/renderer/index.js +1 -1
  45. package/dist/runtime/index.cjs +126 -29
  46. package/dist/runtime/index.d.cts +426 -0
  47. package/dist/runtime/index.d.ts +421 -16
  48. package/dist/runtime/index.js +128 -31
  49. package/dist/useEventBus-CQWyAWpK.d.ts +65 -0
  50. package/dist/useEventBus-Ckr4wqW3.d.cts +65 -0
  51. package/dist/{hooks/useUISlots.d.ts → useUISlots-BesZYMks.d.cts} +16 -14
  52. package/dist/useUISlots-BesZYMks.d.ts +216 -0
  53. package/package.json +13 -13
  54. package/dist/avl/index.d.cts +0 -1853
  55. package/dist/avl/index.d.ts +0 -64
  56. package/dist/components/avl/atoms/Avl3DLabel.d.ts +0 -23
  57. package/dist/components/avl/atoms/Avl3DTooltip.d.ts +0 -25
  58. package/dist/components/avl/atoms/AvlApplication.d.ts +0 -8
  59. package/dist/components/avl/atoms/AvlBinding.d.ts +0 -12
  60. package/dist/components/avl/atoms/AvlBindingRef.d.ts +0 -7
  61. package/dist/components/avl/atoms/AvlEffect.d.ts +0 -10
  62. package/dist/components/avl/atoms/AvlEntity.d.ts +0 -9
  63. package/dist/components/avl/atoms/AvlEvent.d.ts +0 -7
  64. package/dist/components/avl/atoms/AvlField.d.ts +0 -10
  65. package/dist/components/avl/atoms/AvlFieldType.d.ts +0 -8
  66. package/dist/components/avl/atoms/AvlGuard.d.ts +0 -7
  67. package/dist/components/avl/atoms/AvlLiteral.d.ts +0 -7
  68. package/dist/components/avl/atoms/AvlOperator.d.ts +0 -8
  69. package/dist/components/avl/atoms/AvlOrbital.d.ts +0 -11
  70. package/dist/components/avl/atoms/AvlPage.d.ts +0 -7
  71. package/dist/components/avl/atoms/AvlPersistence.d.ts +0 -8
  72. package/dist/components/avl/atoms/AvlSExpr.d.ts +0 -8
  73. package/dist/components/avl/atoms/AvlState.d.ts +0 -15
  74. package/dist/components/avl/atoms/AvlTrait.d.ts +0 -13
  75. package/dist/components/avl/atoms/AvlTransition.d.ts +0 -18
  76. package/dist/components/avl/atoms/index.d.ts +0 -24
  77. package/dist/components/avl/hooks/useCanvasDnd.d.ts +0 -155
  78. package/dist/components/avl/lib/avl-3d-layout.d.ts +0 -116
  79. package/dist/components/avl/lib/avl-behavior-compose-converter.d.ts +0 -55
  80. package/dist/components/avl/lib/avl-elk-layout.d.ts +0 -55
  81. package/dist/components/avl/lib/avl-flow-converter.d.ts +0 -17
  82. package/dist/components/avl/lib/avl-layout.d.ts +0 -32
  83. package/dist/components/avl/lib/avl-preview-converter.d.ts +0 -71
  84. package/dist/components/avl/lib/avl-schema-parser.d.ts +0 -128
  85. package/dist/components/avl/lib/avl-story-schemas.d.ts +0 -34
  86. package/dist/components/avl/lib/avl-zoom-band.d.ts +0 -19
  87. package/dist/components/avl/lib/avl-zoom-state.d.ts +0 -72
  88. package/dist/components/avl/lib/derive-edit-focus.d.ts +0 -8
  89. package/dist/components/avl/lib/wire-validation.d.ts +0 -30
  90. package/dist/components/avl/molecules/Avl3DCrossWire.d.ts +0 -22
  91. package/dist/components/avl/molecules/Avl3DEntityCore.d.ts +0 -26
  92. package/dist/components/avl/molecules/Avl3DExprTree.d.ts +0 -21
  93. package/dist/components/avl/molecules/Avl3DOrbitalNode.d.ts +0 -29
  94. package/dist/components/avl/molecules/Avl3DStateNode.d.ts +0 -34
  95. package/dist/components/avl/molecules/Avl3DTransitionArc.d.ts +0 -38
  96. package/dist/components/avl/molecules/AvlBackwardEdge.d.ts +0 -8
  97. package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +0 -61
  98. package/dist/components/avl/molecules/AvlBindingEdge.d.ts +0 -9
  99. package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +0 -20
  100. package/dist/components/avl/molecules/AvlEmitListen.d.ts +0 -16
  101. package/dist/components/avl/molecules/AvlEventWireEdge.d.ts +0 -15
  102. package/dist/components/avl/molecules/AvlExprTree.d.ts +0 -13
  103. package/dist/components/avl/molecules/AvlOrbitalNode.d.ts +0 -12
  104. package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +0 -20
  105. package/dist/components/avl/molecules/AvlPageEdge.d.ts +0 -8
  106. package/dist/components/avl/molecules/AvlSlotMap.d.ts +0 -18
  107. package/dist/components/avl/molecules/AvlStateMachine.d.ts +0 -22
  108. package/dist/components/avl/molecules/AvlSwimLane.d.ts +0 -10
  109. package/dist/components/avl/molecules/AvlTransitionEdge.d.ts +0 -17
  110. package/dist/components/avl/molecules/AvlTransitionLane.d.ts +0 -18
  111. package/dist/components/avl/molecules/BehaviorComposeNode.d.ts +0 -13
  112. package/dist/components/avl/molecules/BehaviorView.d.ts +0 -12
  113. package/dist/components/avl/molecules/DetailView.d.ts +0 -13
  114. package/dist/components/avl/molecules/EventFlowEdge.d.ts +0 -13
  115. package/dist/components/avl/molecules/MiniStateMachine.d.ts +0 -14
  116. package/dist/components/avl/molecules/ModuleCard.d.ts +0 -22
  117. package/dist/components/avl/molecules/OrbPreviewNode.d.ts +0 -38
  118. package/dist/components/avl/molecules/SystemNode.d.ts +0 -12
  119. package/dist/components/avl/molecules/TraitCardNode.d.ts +0 -33
  120. package/dist/components/avl/molecules/index.d.ts +0 -38
  121. package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +0 -19
  122. package/dist/components/avl/organisms/Avl3DEffects.d.ts +0 -18
  123. package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +0 -23
  124. package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +0 -19
  125. package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +0 -17
  126. package/dist/components/avl/organisms/Avl3DViewer.d.ts +0 -40
  127. package/dist/components/avl/organisms/AvlClickTarget.d.ts +0 -31
  128. package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +0 -41
  129. package/dist/components/avl/organisms/AvlLegend.d.ts +0 -15
  130. package/dist/components/avl/organisms/AvlOrbitalsCosmicZoom.d.ts +0 -54
  131. package/dist/components/avl/organisms/AvlTraitScene.d.ts +0 -17
  132. package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +0 -20
  133. package/dist/components/avl/organisms/AvlTransitionScene.d.ts +0 -13
  134. package/dist/components/avl/organisms/FlowCanvas.d.ts +0 -134
  135. package/dist/components/avl/organisms/OrbInspector.d.ts +0 -45
  136. package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +0 -16
  137. package/dist/components/avl/organisms/ZoomLegend.d.ts +0 -10
  138. package/dist/components/avl/organisms/index.d.ts +0 -19
  139. package/dist/components/avl/providers/avl-3d-context.d.ts +0 -32
  140. package/dist/components/avl/types/avl-atom-types.d.ts +0 -53
  141. package/dist/components/avl/types/avl-behavior-compose-types.d.ts +0 -120
  142. package/dist/components/avl/types/avl-canvas-types.d.ts +0 -39
  143. package/dist/components/avl/types/avl-preview-types.d.ts +0 -240
  144. package/dist/components/core/atoms/Aside.d.ts +0 -15
  145. package/dist/components/core/atoms/AtlasImage.d.ts +0 -58
  146. package/dist/components/core/atoms/Avatar.d.ts +0 -61
  147. package/dist/components/core/atoms/Badge.d.ts +0 -29
  148. package/dist/components/core/atoms/Box.d.ts +0 -68
  149. package/dist/components/core/atoms/Button.d.ts +0 -33
  150. package/dist/components/core/atoms/Card.d.ts +0 -34
  151. package/dist/components/core/atoms/Center.d.ts +0 -33
  152. package/dist/components/core/atoms/Checkbox.d.ts +0 -14
  153. package/dist/components/core/atoms/ConditionalWrapper.d.ts +0 -69
  154. package/dist/components/core/atoms/ConfettiEffect.d.ts +0 -19
  155. package/dist/components/core/atoms/DayCell.d.ts +0 -22
  156. package/dist/components/core/atoms/Dialog.d.ts +0 -18
  157. package/dist/components/core/atoms/Divider.d.ts +0 -29
  158. package/dist/components/core/atoms/FilterPill.d.ts +0 -30
  159. package/dist/components/core/atoms/FlipContainer.d.ts +0 -21
  160. package/dist/components/core/atoms/GameIcon.d.ts +0 -19
  161. package/dist/components/core/atoms/Icon.d.ts +0 -57
  162. package/dist/components/core/atoms/InfiniteScrollSentinel.d.ts +0 -24
  163. package/dist/components/core/atoms/Input.d.ts +0 -39
  164. package/dist/components/core/atoms/Label.d.ts +0 -12
  165. package/dist/components/core/atoms/LawReferenceTooltip.d.ts +0 -48
  166. package/dist/components/core/atoms/Overlay.d.ts +0 -17
  167. package/dist/components/core/atoms/ProgressBar.d.ts +0 -63
  168. package/dist/components/core/atoms/Radio.d.ts +0 -35
  169. package/dist/components/core/atoms/RangeSlider.d.ts +0 -34
  170. package/dist/components/core/atoms/SectionHeader.d.ts +0 -14
  171. package/dist/components/core/atoms/Select.d.ts +0 -49
  172. package/dist/components/core/atoms/Spacer.d.ts +0 -25
  173. package/dist/components/core/atoms/Sparkline.d.ts +0 -30
  174. package/dist/components/core/atoms/Spinner.d.ts +0 -10
  175. package/dist/components/core/atoms/Stack.d.ts +0 -67
  176. package/dist/components/core/atoms/StatusDot.d.ts +0 -16
  177. package/dist/components/core/atoms/Switch.d.ts +0 -12
  178. package/dist/components/core/atoms/TextHighlight.d.ts +0 -54
  179. package/dist/components/core/atoms/Textarea.d.ts +0 -17
  180. package/dist/components/core/atoms/ThemeToggle.d.ts +0 -33
  181. package/dist/components/core/atoms/TimeSlotCell.d.ts +0 -23
  182. package/dist/components/core/atoms/TraitFrame.d.ts +0 -54
  183. package/dist/components/core/atoms/TrendIndicator.d.ts +0 -20
  184. package/dist/components/core/atoms/TypewriterText.d.ts +0 -20
  185. package/dist/components/core/atoms/Typography.d.ts +0 -39
  186. package/dist/components/core/atoms/index.d.ts +0 -52
  187. package/dist/components/core/atoms/svg/SvgBranch.d.ts +0 -16
  188. package/dist/components/core/atoms/svg/SvgConnection.d.ts +0 -17
  189. package/dist/components/core/atoms/svg/SvgFlow.d.ts +0 -14
  190. package/dist/components/core/atoms/svg/SvgGrid.d.ts +0 -18
  191. package/dist/components/core/atoms/svg/SvgLobe.d.ts +0 -17
  192. package/dist/components/core/atoms/svg/SvgMesh.d.ts +0 -16
  193. package/dist/components/core/atoms/svg/SvgMorph.d.ts +0 -15
  194. package/dist/components/core/atoms/svg/SvgNode.d.ts +0 -16
  195. package/dist/components/core/atoms/svg/SvgPulse.d.ts +0 -16
  196. package/dist/components/core/atoms/svg/SvgRing.d.ts +0 -17
  197. package/dist/components/core/atoms/svg/SvgShield.d.ts +0 -15
  198. package/dist/components/core/atoms/svg/SvgStack.d.ts +0 -17
  199. package/dist/components/core/atoms/svg/index.d.ts +0 -12
  200. package/dist/components/core/atoms/types.d.ts +0 -47
  201. package/dist/components/core/molecules/Accordion.d.ts +0 -71
  202. package/dist/components/core/molecules/ActivationBlock.d.ts +0 -22
  203. package/dist/components/core/molecules/Alert.d.ts +0 -25
  204. package/dist/components/core/molecules/AnimatedCounter.d.ts +0 -18
  205. package/dist/components/core/molecules/AssetPicker.d.ts +0 -21
  206. package/dist/components/core/molecules/BloomQuizBlock.d.ts +0 -25
  207. package/dist/components/core/molecules/BranchingLogicBuilder.d.ts +0 -33
  208. package/dist/components/core/molecules/Breadcrumb.d.ts +0 -55
  209. package/dist/components/core/molecules/ButtonGroup.d.ts +0 -77
  210. package/dist/components/core/molecules/CalendarGrid.d.ts +0 -61
  211. package/dist/components/core/molecules/Card.d.ts +0 -58
  212. package/dist/components/core/molecules/Carousel.d.ts +0 -42
  213. package/dist/components/core/molecules/Chart.d.ts +0 -106
  214. package/dist/components/core/molecules/ChartLegend.d.ts +0 -20
  215. package/dist/components/core/molecules/Coachmark.d.ts +0 -47
  216. package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -49
  217. package/dist/components/core/molecules/ConnectionBlock.d.ts +0 -18
  218. package/dist/components/core/molecules/Container.d.ts +0 -30
  219. package/dist/components/core/molecules/ContentRenderer.d.ts +0 -23
  220. package/dist/components/core/molecules/DataGrid.d.ts +0 -117
  221. package/dist/components/core/molecules/DataList.d.ts +0 -129
  222. package/dist/components/core/molecules/DateRangePicker.d.ts +0 -56
  223. package/dist/components/core/molecules/DateRangeSelector.d.ts +0 -21
  224. package/dist/components/core/molecules/DocBreadcrumb.d.ts +0 -20
  225. package/dist/components/core/molecules/DocPagination.d.ts +0 -21
  226. package/dist/components/core/molecules/DocSearch.d.ts +0 -22
  227. package/dist/components/core/molecules/DocSidebar.d.ts +0 -24
  228. package/dist/components/core/molecules/DocTOC.d.ts +0 -24
  229. package/dist/components/core/molecules/DocumentViewer.d.ts +0 -61
  230. package/dist/components/core/molecules/Drawer.d.ts +0 -47
  231. package/dist/components/core/molecules/EdgeDecoration.d.ts +0 -36
  232. package/dist/components/core/molecules/EmptyState.d.ts +0 -29
  233. package/dist/components/core/molecules/ErrorBoundary.d.ts +0 -54
  234. package/dist/components/core/molecules/ErrorState.d.ts +0 -14
  235. package/dist/components/core/molecules/FeatureGrid.d.ts +0 -19
  236. package/dist/components/core/molecules/FileTree.d.ts +0 -37
  237. package/dist/components/core/molecules/FilterGroup.d.ts +0 -61
  238. package/dist/components/core/molecules/Flex.d.ts +0 -43
  239. package/dist/components/core/molecules/FlipCard.d.ts +0 -24
  240. package/dist/components/core/molecules/FloatingActionButton.d.ts +0 -83
  241. package/dist/components/core/molecules/FormField.d.ts +0 -16
  242. package/dist/components/core/molecules/FormSection.d.ts +0 -39
  243. package/dist/components/core/molecules/FormSectionHeader.d.ts +0 -31
  244. package/dist/components/core/molecules/GradientDivider.d.ts +0 -15
  245. package/dist/components/core/molecules/GraphCanvas.d.ts +0 -83
  246. package/dist/components/core/molecules/GraphView.d.ts +0 -45
  247. package/dist/components/core/molecules/Grid.d.ts +0 -54
  248. package/dist/components/core/molecules/GridPicker.d.ts +0 -44
  249. package/dist/components/core/molecules/Header.d.ts +0 -113
  250. package/dist/components/core/molecules/IconPicker.d.ts +0 -18
  251. package/dist/components/core/molecules/InputGroup.d.ts +0 -24
  252. package/dist/components/core/molecules/JazariStateMachine.d.ts +0 -34
  253. package/dist/components/core/molecules/JsonTreeEditor.d.ts +0 -13
  254. package/dist/components/core/molecules/Lightbox.d.ts +0 -26
  255. package/dist/components/core/molecules/LikertScale.d.ts +0 -34
  256. package/dist/components/core/molecules/LineChart.d.ts +0 -35
  257. package/dist/components/core/molecules/LoadingState.d.ts +0 -7
  258. package/dist/components/core/molecules/MapView.d.ts +0 -87
  259. package/dist/components/core/molecules/MatrixQuestion.d.ts +0 -35
  260. package/dist/components/core/molecules/Menu.d.ts +0 -44
  261. package/dist/components/core/molecules/Meter.d.ts +0 -52
  262. package/dist/components/core/molecules/Modal.d.ts +0 -36
  263. package/dist/components/core/molecules/Navigation.d.ts +0 -67
  264. package/dist/components/core/molecules/NodeSlotEditor.d.ts +0 -17
  265. package/dist/components/core/molecules/NumberStepper.d.ts +0 -28
  266. package/dist/components/core/molecules/OnboardingSpotlight.d.ts +0 -27
  267. package/dist/components/core/molecules/OptionConstraintGroup.d.ts +0 -44
  268. package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -48
  269. package/dist/components/core/molecules/PageHeader.d.ts +0 -60
  270. package/dist/components/core/molecules/Pagination.d.ts +0 -71
  271. package/dist/components/core/molecules/Popover.d.ts +0 -39
  272. package/dist/components/core/molecules/PositionedCanvas.d.ts +0 -40
  273. package/dist/components/core/molecules/ProgressDots.d.ts +0 -24
  274. package/dist/components/core/molecules/PropertyInspector.d.ts +0 -38
  275. package/dist/components/core/molecules/PullToRefresh.d.ts +0 -22
  276. package/dist/components/core/molecules/QrScanner.d.ts +0 -24
  277. package/dist/components/core/molecules/QuizBlock.d.ts +0 -20
  278. package/dist/components/core/molecules/ReflectionBlock.d.ts +0 -23
  279. package/dist/components/core/molecules/RelationSelect.d.ts +0 -48
  280. package/dist/components/core/molecules/RepeatableFormSection.d.ts +0 -60
  281. package/dist/components/core/molecules/ReplyTree.d.ts +0 -46
  282. package/dist/components/core/molecules/RichBlockEditor.d.ts +0 -43
  283. package/dist/components/core/molecules/ScaledDiagram.d.ts +0 -20
  284. package/dist/components/core/molecules/SearchInput.d.ts +0 -60
  285. package/dist/components/core/molecules/Section.d.ts +0 -43
  286. package/dist/components/core/molecules/SidePanel.d.ts +0 -53
  287. package/dist/components/core/molecules/Sidebar.d.ts +0 -72
  288. package/dist/components/core/molecules/SignaturePad.d.ts +0 -46
  289. package/dist/components/core/molecules/SimpleGrid.d.ts +0 -27
  290. package/dist/components/core/molecules/Skeleton.d.ts +0 -35
  291. package/dist/components/core/molecules/SocialProof.d.ts +0 -25
  292. package/dist/components/core/molecules/SortableList.d.ts +0 -19
  293. package/dist/components/core/molecules/Split.d.ts +0 -41
  294. package/dist/components/core/molecules/StarRating.d.ts +0 -27
  295. package/dist/components/core/molecules/StatDisplay.d.ts +0 -58
  296. package/dist/components/core/molecules/SwipeableRow.d.ts +0 -26
  297. package/dist/components/core/molecules/TableView.d.ts +0 -111
  298. package/dist/components/core/molecules/Tabs.d.ts +0 -60
  299. package/dist/components/core/molecules/TagInput.d.ts +0 -52
  300. package/dist/components/core/molecules/Toast.d.ts +0 -36
  301. package/dist/components/core/molecules/Tooltip.d.ts +0 -25
  302. package/dist/components/core/molecules/UploadDropZone.d.ts +0 -28
  303. package/dist/components/core/molecules/VersionDiff.d.ts +0 -62
  304. package/dist/components/core/molecules/ViolationAlert.d.ts +0 -46
  305. package/dist/components/core/molecules/VoteStack.d.ts +0 -35
  306. package/dist/components/core/molecules/WizardContainer.d.ts +0 -166
  307. package/dist/components/core/molecules/WizardNavigation.d.ts +0 -61
  308. package/dist/components/core/molecules/WizardProgress.d.ts +0 -45
  309. package/dist/components/core/molecules/index.d.ts +0 -138
  310. package/dist/components/core/molecules/lessonSegmentUtils.d.ts +0 -18
  311. package/dist/components/core/molecules/markdown/CodeBlock.d.ts +0 -108
  312. package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +0 -26
  313. package/dist/components/core/molecules/markdown/index.d.ts +0 -2
  314. package/dist/components/core/molecules/parseLessonSegments.d.ts +0 -44
  315. package/dist/components/core/molecules/useDataDnd.d.ts +0 -63
  316. package/dist/components/core/organisms/CardGrid.d.ts +0 -84
  317. package/dist/components/core/organisms/ChatBar.d.ts +0 -31
  318. package/dist/components/core/organisms/CodeRunnerPanel.d.ts +0 -42
  319. package/dist/components/core/organisms/ComponentPatterns.d.ts +0 -185
  320. package/dist/components/core/organisms/CustomPattern.d.ts +0 -105
  321. package/dist/components/core/organisms/DataTable.d.ts +0 -79
  322. package/dist/components/core/organisms/DetailPanel.d.ts +0 -80
  323. package/dist/components/core/organisms/DrawerSlot.d.ts +0 -42
  324. package/dist/components/core/organisms/Form.d.ts +0 -214
  325. package/dist/components/core/organisms/LayoutPatterns.d.ts +0 -108
  326. package/dist/components/core/organisms/List.d.ts +0 -81
  327. package/dist/components/core/organisms/MasterDetail.d.ts +0 -35
  328. package/dist/components/core/organisms/MediaGallery.d.ts +0 -63
  329. package/dist/components/core/organisms/ModalSlot.d.ts +0 -38
  330. package/dist/components/core/organisms/NotifyListener.d.ts +0 -15
  331. package/dist/components/core/organisms/SegmentRenderer.d.ts +0 -38
  332. package/dist/components/core/organisms/StatCard.d.ts +0 -65
  333. package/dist/components/core/organisms/StateMachineView.d.ts +0 -45
  334. package/dist/components/core/organisms/SubagentTracePanel.d.ts +0 -50
  335. package/dist/components/core/organisms/Timeline.d.ts +0 -71
  336. package/dist/components/core/organisms/ToastSlot.d.ts +0 -41
  337. package/dist/components/core/organisms/UISlotRenderer.d.ts +0 -116
  338. package/dist/components/core/organisms/book/index.d.ts +0 -7
  339. package/dist/components/core/organisms/book/types.d.ts +0 -62
  340. package/dist/components/core/organisms/component-registry.generated.d.ts +0 -9
  341. package/dist/components/core/organisms/debug/RuntimeDebugger.d.ts +0 -29
  342. package/dist/components/core/organisms/debug/WalkMinimap.d.ts +0 -17
  343. package/dist/components/core/organisms/debug/hooks/useDebugData.d.ts +0 -25
  344. package/dist/components/core/organisms/debug/index.d.ts +0 -13
  345. package/dist/components/core/organisms/debug/tabs/EntitiesTab.d.ts +0 -14
  346. package/dist/components/core/organisms/debug/tabs/EventDispatcherTab.d.ts +0 -18
  347. package/dist/components/core/organisms/debug/tabs/EventFlowTab.d.ts +0 -14
  348. package/dist/components/core/organisms/debug/tabs/GuardsPanel.d.ts +0 -14
  349. package/dist/components/core/organisms/debug/tabs/ServerBridgeTab.d.ts +0 -20
  350. package/dist/components/core/organisms/debug/tabs/TicksTab.d.ts +0 -14
  351. package/dist/components/core/organisms/debug/tabs/TraitsTab.d.ts +0 -14
  352. package/dist/components/core/organisms/debug/tabs/TransitionTimeline.d.ts +0 -19
  353. package/dist/components/core/organisms/debug/tabs/VerificationTab.d.ts +0 -17
  354. package/dist/components/core/organisms/index.d.ts +0 -33
  355. package/dist/components/core/organisms/layout/DashboardGrid.d.ts +0 -33
  356. package/dist/components/core/organisms/layout/MasterDetailLayout.d.ts +0 -32
  357. package/dist/components/core/organisms/layout/SplitPane.d.ts +0 -34
  358. package/dist/components/core/organisms/layout/TabbedContainer.d.ts +0 -42
  359. package/dist/components/core/organisms/layout/index.d.ts +0 -9
  360. package/dist/components/core/organisms/marketing-types.d.ts +0 -8
  361. package/dist/components/core/organisms/trace-edit-focus.d.ts +0 -14
  362. package/dist/components/core/organisms/types.d.ts +0 -72
  363. package/dist/components/core/templates/CounterTemplate.d.ts +0 -51
  364. package/dist/components/core/templates/DashboardLayout.d.ts +0 -110
  365. package/dist/components/core/templates/GenericAppTemplate.d.ts +0 -24
  366. package/dist/components/core/templates/index.d.ts +0 -10
  367. package/dist/components/core/templates/types.d.ts +0 -35
  368. package/dist/components/game/atoms/ChoiceButton.d.ts +0 -29
  369. package/dist/components/game/atoms/ControlButton.d.ts +0 -35
  370. package/dist/components/game/atoms/DialogueBubble.d.ts +0 -26
  371. package/dist/components/game/atoms/DrawShape.d.ts +0 -50
  372. package/dist/components/game/atoms/DrawSprite.d.ts +0 -47
  373. package/dist/components/game/atoms/DrawText.d.ts +0 -31
  374. package/dist/components/game/atoms/GameAudioToggle.d.ts +0 -34
  375. package/dist/components/game/atoms/HealthBar.d.ts +0 -32
  376. package/dist/components/game/atoms/MiniMap.d.ts +0 -40
  377. package/dist/components/game/atoms/ScoreDisplay.d.ts +0 -25
  378. package/dist/components/game/atoms/StateIndicator.d.ts +0 -29
  379. package/dist/components/game/atoms/TimerDisplay.d.ts +0 -22
  380. package/dist/components/game/molecules/ActionPalette.d.ts +0 -34
  381. package/dist/components/game/molecules/ActionTile.d.ts +0 -30
  382. package/dist/components/game/molecules/Canvas.d.ts +0 -96
  383. package/dist/components/game/molecules/Canvas2D.d.ts +0 -120
  384. package/dist/components/game/molecules/ControlGrid.d.ts +0 -49
  385. package/dist/components/game/molecules/DrawShapeLayer.d.ts +0 -19
  386. package/dist/components/game/molecules/DrawSpriteLayer.d.ts +0 -21
  387. package/dist/components/game/molecules/DrawTextLayer.d.ts +0 -22
  388. package/dist/components/game/molecules/GameHud.d.ts +0 -52
  389. package/dist/components/game/molecules/GameMenu.d.ts +0 -42
  390. package/dist/components/game/molecules/SequenceBar.d.ts +0 -51
  391. package/dist/components/game/molecules/StatBadge.d.ts +0 -39
  392. package/dist/components/game/molecules/StateGraph.d.ts +0 -38
  393. package/dist/components/game/molecules/StateJsonView.d.ts +0 -37
  394. package/dist/components/game/molecules/StateNode.d.ts +0 -31
  395. package/dist/components/game/molecules/TraitSlot.d.ts +0 -99
  396. package/dist/components/game/molecules/TraitStateViewer.d.ts +0 -52
  397. package/dist/components/game/molecules/TransitionArrow.d.ts +0 -31
  398. package/dist/components/game/molecules/index.d.ts +0 -39
  399. package/dist/components/game/patterns.d.ts +0 -20
  400. package/dist/components/game/templates/GameShell.d.ts +0 -35
  401. package/dist/components/learning/atoms/LearningCanvas.d.ts +0 -80
  402. package/dist/components/learning/molecules/AlgorithmCanvas.d.ts +0 -58
  403. package/dist/components/learning/molecules/BiologyCanvas.d.ts +0 -47
  404. package/dist/components/learning/molecules/ChemistryCanvas.d.ts +0 -55
  405. package/dist/components/learning/molecules/MathCanvas.d.ts +0 -61
  406. package/dist/components/learning/molecules/PhysicsCanvas.d.ts +0 -54
  407. package/dist/components/marketing/atoms/AnimatedCounter.d.ts +0 -20
  408. package/dist/components/marketing/atoms/AnimatedGraphic.d.ts +0 -32
  409. package/dist/components/marketing/atoms/AnimatedReveal.d.ts +0 -26
  410. package/dist/components/marketing/atoms/ContentSection.d.ts +0 -16
  411. package/dist/components/marketing/atoms/MarketingStatCard.d.ts +0 -13
  412. package/dist/components/marketing/atoms/PatternTile.d.ts +0 -41
  413. package/dist/components/marketing/molecules/ArticleSection.d.ts +0 -18
  414. package/dist/components/marketing/molecules/CTABanner.d.ts +0 -26
  415. package/dist/components/marketing/molecules/CaseStudyCard.d.ts +0 -24
  416. package/dist/components/marketing/molecules/CommunityLinks.d.ts +0 -28
  417. package/dist/components/marketing/molecules/FeatureCard.d.ts +0 -26
  418. package/dist/components/marketing/molecules/GeometricPattern.d.ts +0 -33
  419. package/dist/components/marketing/molecules/HeroSection.d.ts +0 -28
  420. package/dist/components/marketing/molecules/InstallBox.d.ts +0 -16
  421. package/dist/components/marketing/molecules/MarketingFooter.d.ts +0 -29
  422. package/dist/components/marketing/molecules/PricingCard.d.ts +0 -19
  423. package/dist/components/marketing/molecules/PricingGrid.d.ts +0 -13
  424. package/dist/components/marketing/molecules/PullQuote.d.ts +0 -14
  425. package/dist/components/marketing/molecules/ServiceCatalog.d.ts +0 -19
  426. package/dist/components/marketing/molecules/ShowcaseCard.d.ts +0 -18
  427. package/dist/components/marketing/molecules/SplitSection.d.ts +0 -19
  428. package/dist/components/marketing/molecules/StatsGrid.d.ts +0 -18
  429. package/dist/components/marketing/molecules/StepFlow.d.ts +0 -21
  430. package/dist/components/marketing/molecules/TagCloud.d.ts +0 -18
  431. package/dist/components/marketing/molecules/TeamCard.d.ts +0 -19
  432. package/dist/components/marketing/organisms/CaseStudyOrganism.d.ts +0 -29
  433. package/dist/components/marketing/organisms/FeatureGridOrganism.d.ts +0 -30
  434. package/dist/components/marketing/organisms/HeroOrganism.d.ts +0 -42
  435. package/dist/components/marketing/organisms/PricingOrganism.d.ts +0 -33
  436. package/dist/components/marketing/organisms/ShowcaseOrganism.d.ts +0 -34
  437. package/dist/components/marketing/organisms/StatsOrganism.d.ts +0 -23
  438. package/dist/components/marketing/organisms/StepFlowOrganism.d.ts +0 -29
  439. package/dist/components/marketing/organisms/TeamOrganism.d.ts +0 -28
  440. package/dist/components/marketing/organisms/book/BookChapterView.d.ts +0 -21
  441. package/dist/components/marketing/organisms/book/BookCoverPage.d.ts +0 -21
  442. package/dist/components/marketing/organisms/book/BookNavBar.d.ts +0 -19
  443. package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +0 -20
  444. package/dist/components/marketing/organisms/book/BookViewer.d.ts +0 -31
  445. package/dist/components/marketing/templates/AboutPageTemplate.d.ts +0 -53
  446. package/dist/components/marketing/templates/AuthLayout.d.ts +0 -15
  447. package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +0 -37
  448. package/dist/components/marketing/templates/LandingPageTemplate.d.ts +0 -70
  449. package/dist/components/marketing/templates/PricingPageTemplate.d.ts +0 -44
  450. package/dist/hooks/useAgentChat.d.ts +0 -105
  451. package/dist/hooks/useAlmadarDndCollision.d.ts +0 -34
  452. package/dist/hooks/useAuthContext.d.ts +0 -25
  453. package/dist/hooks/useCamera.d.ts +0 -57
  454. package/dist/hooks/useCanvasGestures.d.ts +0 -44
  455. package/dist/hooks/useClientEffects.d.ts +0 -88
  456. package/dist/hooks/useCompile.d.ts +0 -18
  457. package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
  458. package/dist/hooks/useDragReorder.d.ts +0 -26
  459. package/dist/hooks/useDraggable.d.ts +0 -25
  460. package/dist/hooks/useDropZone.d.ts +0 -23
  461. package/dist/hooks/useEventBus.d.ts +0 -99
  462. package/dist/hooks/useExtensions.d.ts +0 -32
  463. package/dist/hooks/useFileEditor.d.ts +0 -32
  464. package/dist/hooks/useFileSystem.d.ts +0 -50
  465. package/dist/hooks/useGameAudio.d.ts +0 -47
  466. package/dist/hooks/useGitHub.d.ts +0 -58
  467. package/dist/hooks/useImageCache.d.ts +0 -16
  468. package/dist/hooks/useInfiniteScroll.d.ts +0 -13
  469. package/dist/hooks/useLongPress.d.ts +0 -16
  470. package/dist/hooks/useOrbitalHistory.d.ts +0 -39
  471. package/dist/hooks/usePreview.d.ts +0 -57
  472. package/dist/hooks/usePullToRefresh.d.ts +0 -25
  473. package/dist/hooks/useQuerySingleton.d.ts +0 -79
  474. package/dist/hooks/useRenderInterpolation.d.ts +0 -33
  475. package/dist/hooks/useResolvedSchema.d.ts +0 -45
  476. package/dist/hooks/useSharedEntityStore.d.ts +0 -53
  477. package/dist/hooks/useSwipeGesture.d.ts +0 -26
  478. package/dist/hooks/useTapReveal.d.ts +0 -32
  479. package/dist/hooks/useTraitStateMachine.d.ts +0 -136
  480. package/dist/hooks/useTranslate.d.ts +0 -35
  481. package/dist/hooks/useUIEvents.d.ts +0 -41
  482. package/dist/hooks/useUnitSpriteAtlas.d.ts +0 -24
  483. package/dist/hooks/useValidation.d.ts +0 -46
  484. package/dist/lib/api-client.d.ts +0 -43
  485. package/dist/lib/atlasSlice.d.ts +0 -58
  486. package/dist/lib/boardEntity.d.ts +0 -44
  487. package/dist/lib/client-effect-executor.d.ts +0 -57
  488. package/dist/lib/cn.d.ts +0 -6
  489. package/dist/lib/createClientEffectHandlers.d.ts +0 -42
  490. package/dist/lib/data-resolver.d.ts +0 -55
  491. package/dist/lib/debug.d.ts +0 -36
  492. package/dist/lib/debugRegistry.d.ts +0 -30
  493. package/dist/lib/debugUtils.d.ts +0 -27
  494. package/dist/lib/drawable/contract.d.ts +0 -68
  495. package/dist/lib/drawable/hitTest.d.ts +0 -23
  496. package/dist/lib/drawable/paintDispatch.d.ts +0 -22
  497. package/dist/lib/drawable/projector.d.ts +0 -14
  498. package/dist/lib/drawable/projector3d.d.ts +0 -20
  499. package/dist/lib/drawable/three/Camera3D.d.ts +0 -60
  500. package/dist/lib/drawable/three/Canvas3DErrorBoundary.d.ts +0 -51
  501. package/dist/lib/drawable/three/Canvas3DHost.d.ts +0 -178
  502. package/dist/lib/drawable/three/Canvas3DLoadingState.d.ts +0 -44
  503. package/dist/lib/drawable/three/Drawable3D.d.ts +0 -20
  504. package/dist/lib/drawable/three/GameCamera3D.d.ts +0 -16
  505. package/dist/lib/drawable/three/Lighting3D.d.ts +0 -55
  506. package/dist/lib/drawable/three/ModelLoader.d.ts +0 -52
  507. package/dist/lib/drawable/three/Scene3D.d.ts +0 -37
  508. package/dist/lib/drawable/three/game3dTheme.d.ts +0 -14
  509. package/dist/lib/drawable/three/hooks/useAssetLoader.d.ts +0 -58
  510. package/dist/lib/drawable/three/hooks/useGameCanvas3DEvents.d.ts +0 -124
  511. package/dist/lib/drawable/three/hooks/useRaycaster.d.ts +0 -86
  512. package/dist/lib/drawable/three/hooks/useSceneGraph.d.ts +0 -67
  513. package/dist/lib/drawable/three/hooks/useThree.d.ts +0 -58
  514. package/dist/lib/drawable/three/lib/AssetLoader.d.ts +0 -80
  515. package/dist/lib/drawable/three/lib/culling.d.ts +0 -134
  516. package/dist/lib/drawable/three/lib/grid3D.d.ts +0 -154
  517. package/dist/lib/drawable/three/mesh3d.d.ts +0 -28
  518. package/dist/lib/editorUtils.d.ts +0 -114
  519. package/dist/lib/embedded-traits.d.ts +0 -39
  520. package/dist/lib/entityDebug.d.ts +0 -39
  521. package/dist/lib/fn-form-lambda.d.ts +0 -27
  522. package/dist/lib/game.d.ts +0 -92
  523. package/dist/lib/gameShared.d.ts +0 -18
  524. package/dist/lib/getNestedValue.d.ts +0 -34
  525. package/dist/lib/guardRegistry.d.ts +0 -33
  526. package/dist/lib/iconFamily.d.ts +0 -41
  527. package/dist/lib/imageCache.d.ts +0 -9
  528. package/dist/lib/init.d.ts +0 -14
  529. package/dist/lib/isometric.d.ts +0 -121
  530. package/dist/lib/isometricTypes.d.ts +0 -141
  531. package/dist/lib/jazari/index.d.ts +0 -5
  532. package/dist/lib/jazari/layout.d.ts +0 -31
  533. package/dist/lib/jazari/svg-paths.d.ts +0 -61
  534. package/dist/lib/jazari/types.d.ts +0 -91
  535. package/dist/lib/makeAsset.d.ts +0 -5
  536. package/dist/lib/mechanics.d.ts +0 -4
  537. package/dist/lib/offline-executor.d.ts +0 -239
  538. package/dist/lib/orbitalsByTrait.d.ts +0 -34
  539. package/dist/lib/painter2d.d.ts +0 -81
  540. package/dist/lib/parseContentSegments.d.ts +0 -42
  541. package/dist/lib/pattern-resolver.d.ts +0 -88
  542. package/dist/lib/perf.d.ts +0 -32
  543. package/dist/lib/physicsPresets.d.ts +0 -4
  544. package/dist/lib/physicsTypes.d.ts +0 -43
  545. package/dist/lib/prepareSchemaForPreview.d.ts +0 -71
  546. package/dist/lib/puzzleObject.d.ts +0 -41
  547. package/dist/lib/slot-definitions.d.ts +0 -33
  548. package/dist/lib/spriteAnimation.d.ts +0 -85
  549. package/dist/lib/spriteAnimationTypes.d.ts +0 -72
  550. package/dist/lib/spriteSheetConstants.d.ts +0 -16
  551. package/dist/lib/tickRegistry.d.ts +0 -40
  552. package/dist/lib/trait-binding-resolver.d.ts +0 -57
  553. package/dist/lib/traitRegistry.d.ts +0 -34
  554. package/dist/lib/verificationRegistry.d.ts +0 -91
  555. package/dist/lib/visualizer/browser.d.ts +0 -48
  556. package/dist/lib/visualizer/index.d.ts +0 -144
  557. package/dist/lib/webPainter2d.d.ts +0 -7
  558. package/dist/lib/wrapCallbackForEvent.d.ts +0 -16
  559. package/dist/marketing/index.d.cts +0 -1067
  560. package/dist/marketing/index.d.ts +0 -72
  561. package/dist/providers/CurrentPagePathContext.d.ts +0 -9
  562. package/dist/providers/DesignThemeContext.d.ts +0 -21
  563. package/dist/providers/EntitySchemaContext.d.ts +0 -81
  564. package/dist/providers/EventBusProvider.d.ts +0 -47
  565. package/dist/providers/GameAudioProvider.d.ts +0 -53
  566. package/dist/providers/OfflineModeProvider.d.ts +0 -79
  567. package/dist/providers/OrbitalProvider.d.ts +0 -110
  568. package/dist/providers/OrbitalThemeProvider.d.ts +0 -37
  569. package/dist/providers/SelectionProvider.d.ts +0 -82
  570. package/dist/providers/ServerBridge.d.ts +0 -102
  571. package/dist/providers/ThemeContext.d.ts +0 -104
  572. package/dist/providers/TraitProvider.d.ts +0 -53
  573. package/dist/providers/TraitScopeProvider.d.ts +0 -43
  574. package/dist/providers/UserContext.d.ts +0 -112
  575. package/dist/providers/VerificationProvider.d.ts +0 -64
  576. package/dist/providers/navigation.d.ts +0 -142
  577. package/dist/runtime/BrowserPlayground.d.ts +0 -34
  578. package/dist/runtime/OrbPreview.d.ts +0 -84
  579. package/dist/scripts/audit-tailwind-safelist.d.ts +0 -27
  580. package/dist/scripts/generate-design-system.d.ts +0 -29
  581. package/dist/scripts/generate-theme-from-schema.d.ts +0 -10
  582. package/dist/scripts/generate.d.ts +0 -12
  583. package/dist/scripts/suggest-components.d.ts +0 -31
  584. package/dist/scripts/types.d.ts +0 -129
  585. package/dist/tsup.config.d.ts +0 -3
  586. package/dist/types/renderer-types.d.ts +0 -146
  587. package/dist/types/runtime-types.d.ts +0 -21
  588. package/dist/types/slot-types.d.ts +0 -49
  589. package/dist/vitest.config.d.ts +0 -2
@@ -0,0 +1,1484 @@
1
+ import * as React$1 from 'react';
2
+ import React__default, { Component, ReactNode, ErrorInfo } from 'react';
3
+ import { ScenePos, EventEmit, JsonObject, OrbitalSchema } from '@almadar/core';
4
+ import * as THREE from 'three';
5
+ import { QuadraticBezierCurve3 } from 'three';
6
+ import { D as DrawableNode, I as IsometricTile, a as IsometricUnit, b as IsometricFeature, A as ApplicationLevelData, O as OrbitalLevelData, T as TraitLevelData, c as TransitionLevelData } from '../../../avl-schema-parser-DKRm-nyh.cjs';
7
+ export { U as UnitAnimationState } from '../../../avl-schema-parser-DKRm-nyh.cjs';
8
+ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
9
+
10
+ /**
11
+ * Canvas3DHost — the thin 3D draw-host: the `canvas` host's 3D painter backend
12
+ * (the R3F "vessel" behind the neutral drawables), the exact 3D analogue of the
13
+ * 2D `Painter2D` seam. Reached only via the lazy `@almadar/ui/.../game/three`
14
+ * subpath so three.js never enters a 2D bundle.
15
+ *
16
+ * The 3D twin of Canvas2D: the board authors a `drawables` list (the neutral
17
+ * `draw-*` children) and this host maps each descriptor through `Drawable3D` to a
18
+ * three.js mesh (a raw descriptor NEVER reaches `<group>{children}` — R3F throws).
19
+ * It owns NO game data — tiles, units, features, selection, health bars and labels
20
+ * are all `draw-*` children composed in `.lolo`, not props here. Only view state
21
+ * (camera, error boundary) is local.
22
+ *
23
+ * Camera: `isometric`/`perspective`/`top-down` frame the scene bounds (derived from
24
+ * the drawn descriptors); `follow`/`chase` track the neutral core `Camera.target`
25
+ * (forwarded as `followTarget`), falling back to the scene centre.
26
+ *
27
+ * Interaction: keyboard maps to semantic events (device-agnostic input). Pointer
28
+ * click/hover on neutral drawables needs a per-entity id + a scene-space raycast
29
+ * the descriptors don't yet carry — that hit-test is a tracked fork
30
+ * (docs/Almadar_Std_Game_V2_PLAN.md); the click/hover event props are accepted but
31
+ * not yet emitted from a raycast.
32
+ *
33
+ * @packageDocumentation
34
+ */
35
+
36
+ /** Camera mode for 3D view.
37
+ * - `follow` tracks `followTarget` (the neutral `Camera.target`) from a fixed offset.
38
+ * - `chase` sits behind + above the target. */
39
+ type CameraMode$2 = 'isometric' | 'perspective' | 'top-down' | 'follow' | 'chase';
40
+ /** Map orientation */
41
+ type MapOrientation = 'standard' | 'rotated';
42
+ /** Overlay control */
43
+ type OverlayControl = 'default' | 'hidden' | 'minimap';
44
+ /** Props for GameCanvas3D component */
45
+ interface Canvas3DHostProps {
46
+ /** Additional CSS classes */
47
+ className?: string;
48
+ /** Children to render inside the 3D canvas (e.g., physics objects, custom meshes) */
49
+ children?: React__default.ReactNode;
50
+ /** Neutral drawable descriptors — the same `children` vocabulary as Canvas2D. The
51
+ * host maps each through `Drawable3D` to a mesh. */
52
+ drawables?: DrawableNode[];
53
+ /** Loading state indicator */
54
+ isLoading?: boolean;
55
+ /** Error state */
56
+ error?: string | null;
57
+ /** Fog of war data (accepted for API parity; presentation-only). */
58
+ fogOfWar?: boolean[][];
59
+ /** Map orientation (data attribute). */
60
+ orientation?: MapOrientation;
61
+ /** Camera mode */
62
+ cameraMode?: CameraMode$2;
63
+ /** Follow-camera target in scene space (the neutral core `Camera.target`). */
64
+ followTarget?: ScenePos;
65
+ /** Show grid */
66
+ showGrid?: boolean;
67
+ /** Show coordinates overlay (accepted for API parity). */
68
+ showCoordinates?: boolean;
69
+ /** Show tile information (accepted for API parity). */
70
+ showTileInfo?: boolean;
71
+ /** Overlay control mode (data attribute). */
72
+ overlay?: OverlayControl;
73
+ /** Enable shadows */
74
+ shadows?: boolean;
75
+ /** Background color */
76
+ backgroundColor?: string;
77
+ /** Declarative event: tile click. Emitted from a ground-plane raycast → scene cell
78
+ * `{ x, z }` (the FSM validates the cell). `tileId` is optional — the neutral host
79
+ * has no per-tile id, and the board FSMs key off the coordinate. */
80
+ tileClickEvent?: EventEmit<{
81
+ x: number;
82
+ z: number;
83
+ tileId?: string;
84
+ type?: string;
85
+ terrain?: string;
86
+ elevation?: number;
87
+ }>;
88
+ /** Declarative event: unit click. Emitted `{ unitId, x, z }` when the raycast lands on a
89
+ * cell whose descriptor carries an `id` (a tagged unit sprite). */
90
+ unitClickEvent?: EventEmit<{
91
+ unitId: string;
92
+ x: number;
93
+ z: number;
94
+ unitType?: string;
95
+ name?: string;
96
+ team?: string;
97
+ faction?: string;
98
+ health?: number;
99
+ maxHealth?: number;
100
+ }>;
101
+ /** Declarative event: feature click. Accepted; not yet emitted (see `tileClickEvent`). */
102
+ featureClickEvent?: EventEmit<{
103
+ featureId: string;
104
+ x: number;
105
+ z: number;
106
+ type?: string;
107
+ elevation?: number;
108
+ }>;
109
+ /** Declarative event: canvas (background) click. */
110
+ canvasClickEvent?: EventEmit<{
111
+ clientX: number;
112
+ clientY: number;
113
+ button: number;
114
+ }>;
115
+ /** Declarative event: tile hover. Accepted; not yet emitted (see `tileClickEvent`). */
116
+ tileHoverEvent?: EventEmit<{
117
+ tileId: string;
118
+ x: number;
119
+ z: number;
120
+ type?: string;
121
+ }>;
122
+ /** Declarative event: tile leave. */
123
+ tileLeaveEvent?: EventEmit<Record<string, never>>;
124
+ /** Declarative event: unit animation. */
125
+ unitAnimationEvent?: EventEmit<{
126
+ unitId: string;
127
+ state: string;
128
+ timestamp: number;
129
+ }>;
130
+ /** Declarative event: camera change. */
131
+ cameraChangeEvent?: EventEmit<{
132
+ position: {
133
+ x: number;
134
+ y: number;
135
+ z: number;
136
+ };
137
+ timestamp: number;
138
+ }>;
139
+ /** Loading message */
140
+ loadingMessage?: string;
141
+ /** Unit draw-size multiplier (accepted for API parity; sizing is drawable-authored). */
142
+ unitScale?: number;
143
+ /** Board zoom (accepted for API parity; 3D zoom is camera-driven, not group-scaled). */
144
+ scale?: number;
145
+ /** Maps a keydown `e.code` → the board's SEMANTIC event (device-agnostic input). */
146
+ keyMap?: Record<string, string>;
147
+ /** Maps a keyup `e.code` → the board's SEMANTIC event. */
148
+ keyUpMap?: Record<string, string>;
149
+ /** Side-view world size in pixels (accepted for API parity). */
150
+ worldWidth?: number;
151
+ /** Side-view world size in pixels (accepted for API parity). */
152
+ worldHeight?: number;
153
+ /** Pixel→world-unit divisor for side view (accepted for API parity). */
154
+ pixelsPerUnit?: number;
155
+ }
156
+ /** Imperative handle for GameCanvas3D */
157
+ interface Canvas3DHostHandle {
158
+ /** Get current camera position */
159
+ getCameraPosition: () => THREE.Vector3 | null;
160
+ /** Set camera position */
161
+ setCameraPosition: (x: number, y: number, z: number) => void;
162
+ /** Look at a specific point */
163
+ lookAt: (x: number, y: number, z: number) => void;
164
+ /** Reset camera to default position */
165
+ resetCamera: () => void;
166
+ /** Take a screenshot */
167
+ screenshot: () => string | null;
168
+ }
169
+ /**
170
+ * Canvas3DHost — thin 3D draw-host. Walks `drawables` through `Drawable3D`.
171
+ */
172
+ declare const Canvas3DHost: React__default.ForwardRefExoticComponent<Canvas3DHostProps & React__default.RefAttributes<Canvas3DHostHandle>>;
173
+
174
+ /**
175
+ * Scene3D
176
+ *
177
+ * Three.js scene wrapper component for React Three Fiber.
178
+ * Manages the scene environment, fog, and background.
179
+ *
180
+ * @packageDocumentation
181
+ */
182
+
183
+ interface Scene3DProps {
184
+ /** Background color or URL */
185
+ background?: string;
186
+ /** Fog configuration */
187
+ fog?: {
188
+ color: string;
189
+ near: number;
190
+ far: number;
191
+ };
192
+ /** Children to render in scene */
193
+ children?: React__default.ReactNode;
194
+ }
195
+ /**
196
+ * Scene3D Component
197
+ *
198
+ * Manages Three.js scene settings like background and fog.
199
+ *
200
+ * @example
201
+ * ```tsx
202
+ * <Canvas>
203
+ * <Scene3D background="#1a1a2e" fog={{ color: '#1a1a2e', near: 10, far: 50 }}>
204
+ * <GameObjects />
205
+ * </Scene3D>
206
+ * </Canvas>
207
+ * ```
208
+ */
209
+ declare function Scene3D({ background, fog, children }: Scene3DProps): React__default.JSX.Element;
210
+
211
+ /**
212
+ * Camera3D
213
+ *
214
+ * Three.js camera component with orbit controls.
215
+ * Supports isometric, perspective, and top-down camera modes.
216
+ *
217
+ * @packageDocumentation
218
+ */
219
+
220
+ type CameraMode$1 = 'isometric' | 'perspective' | 'top-down';
221
+ interface Camera3DProps {
222
+ /** Camera mode */
223
+ mode?: CameraMode$1;
224
+ /** Initial camera position */
225
+ position?: [number, number, number];
226
+ /** Target to look at */
227
+ target?: [number, number, number];
228
+ /** Zoom level */
229
+ zoom?: number;
230
+ /** Field of view (perspective mode only) */
231
+ fov?: number;
232
+ /** Enable orbit controls */
233
+ enableOrbit?: boolean;
234
+ /** Minimum zoom distance */
235
+ minDistance?: number;
236
+ /** Maximum zoom distance */
237
+ maxDistance?: number;
238
+ /** Called when camera changes */
239
+ onChange?: (camera: THREE.Camera) => void;
240
+ }
241
+ interface Camera3DHandle {
242
+ /** Get current camera */
243
+ getCamera: () => THREE.Camera;
244
+ /** Set camera position */
245
+ setPosition: (x: number, y: number, z: number) => void;
246
+ /** Look at target */
247
+ lookAt: (x: number, y: number, z: number) => void;
248
+ /** Reset to initial position */
249
+ reset: () => void;
250
+ /** Get current view bounds */
251
+ getViewBounds: () => {
252
+ min: THREE.Vector3;
253
+ max: THREE.Vector3;
254
+ };
255
+ }
256
+ /**
257
+ * Camera3D Component
258
+ *
259
+ * Configurable camera with orbit controls and multiple modes.
260
+ *
261
+ * @example
262
+ * ```tsx
263
+ * <Canvas>
264
+ * <Camera3D mode="isometric" position={[10, 10, 10]} target={[0, 0, 0]} />
265
+ * </Canvas>
266
+ * ```
267
+ */
268
+ declare const Camera3D: React__default.ForwardRefExoticComponent<Camera3DProps & React__default.RefAttributes<Camera3DHandle>>;
269
+
270
+ /**
271
+ * Lighting3D
272
+ *
273
+ * Default lighting setup for 3D game scenes.
274
+ * Includes ambient, directional, and optional point lights.
275
+ *
276
+ * @packageDocumentation
277
+ */
278
+
279
+ interface Lighting3DProps {
280
+ /** Ambient light intensity */
281
+ ambientIntensity?: number;
282
+ /** Ambient light color */
283
+ ambientColor?: string;
284
+ /** Directional light intensity */
285
+ directionalIntensity?: number;
286
+ /** Directional light color */
287
+ directionalColor?: string;
288
+ /** Directional light position */
289
+ directionalPosition?: [number, number, number];
290
+ /** Enable shadows */
291
+ shadows?: boolean;
292
+ /** Shadow map size */
293
+ shadowMapSize?: number;
294
+ /** Shadow camera size (orthographic half-extent) */
295
+ shadowCameraSize?: number;
296
+ /** Shadow depth bias — reduces shadow acne */
297
+ shadowBias?: number;
298
+ /** Shadow normal bias — reduces acne on angled faces (undefined = three.js default 0) */
299
+ shadowNormalBias?: number;
300
+ /** Shadow camera near plane */
301
+ shadowCameraNear?: number;
302
+ /** Shadow camera far plane */
303
+ shadowCameraFar?: number;
304
+ /** Show helper for directional light */
305
+ showHelpers?: boolean;
306
+ }
307
+ /**
308
+ * Lighting3D Component
309
+ *
310
+ * Pre-configured lighting setup for game scenes.
311
+ *
312
+ * @example
313
+ * ```tsx
314
+ * <Canvas>
315
+ * <Lighting3D
316
+ * ambientIntensity={0.6}
317
+ * directionalIntensity={1.0}
318
+ * shadows={true}
319
+ * />
320
+ * </Canvas>
321
+ * ```
322
+ */
323
+ declare function Lighting3D({ ambientIntensity, ambientColor, directionalIntensity, directionalColor, directionalPosition, shadows, shadowMapSize, shadowCameraSize, shadowBias, shadowNormalBias, shadowCameraNear, shadowCameraFar, showHelpers, }: Lighting3DProps): React__default.JSX.Element;
324
+
325
+ /**
326
+ * Canvas3DLoadingState
327
+ *
328
+ * Loading state component for 3D canvas with progress indicator.
329
+ * Displays asset loading progress and estimated time remaining.
330
+ *
331
+ * @packageDocumentation
332
+ */
333
+
334
+ interface Canvas3DLoadingStateProps {
335
+ /** Current loading progress (0-100) */
336
+ progress?: number;
337
+ /** Number of assets loaded */
338
+ loaded?: number;
339
+ /** Total assets to load */
340
+ total?: number;
341
+ /** Loading message */
342
+ message?: string;
343
+ /** Secondary details message */
344
+ details?: string;
345
+ /** Whether to show spinner */
346
+ showSpinner?: boolean;
347
+ /** Custom className */
348
+ className?: string;
349
+ }
350
+ /**
351
+ * Canvas3DLoadingState Component
352
+ *
353
+ * Displays loading progress for 3D assets.
354
+ *
355
+ * @example
356
+ * ```tsx
357
+ * <Canvas3DLoadingState
358
+ * progress={65}
359
+ * loaded={13}
360
+ * total={20}
361
+ * message="Loading 3D models..."
362
+ * details="character-knight.glb"
363
+ * />
364
+ * ```
365
+ */
366
+ declare function Canvas3DLoadingState({ progress, loaded, total, message, details, showSpinner, className, }: Canvas3DLoadingStateProps): React__default.JSX.Element;
367
+
368
+ /**
369
+ * Canvas3DErrorBoundary
370
+ *
371
+ * Error boundary for 3D canvas components.
372
+ * Catches Three.js and React Three Fiber errors gracefully.
373
+ *
374
+ * @packageDocumentation
375
+ */
376
+
377
+ interface Canvas3DErrorBoundaryProps {
378
+ /** Child components */
379
+ children: ReactNode;
380
+ /** Custom fallback component */
381
+ fallback?: ReactNode;
382
+ /** Error callback */
383
+ onError?: (error: Error, errorInfo: ErrorInfo) => void;
384
+ /** Reset callback */
385
+ onReset?: () => void;
386
+ }
387
+ interface Canvas3DErrorBoundaryState {
388
+ /** Whether an error has occurred */
389
+ hasError: boolean;
390
+ /** The error that occurred */
391
+ error: Error | null;
392
+ /** Error info from React */
393
+ errorInfo: ErrorInfo | null;
394
+ }
395
+ /**
396
+ * Canvas3DErrorBoundary Component
397
+ *
398
+ * Catches errors in 3D canvas and displays a user-friendly fallback.
399
+ *
400
+ * @example
401
+ * ```tsx
402
+ * <Canvas3DErrorBoundary
403
+ * onError={(error) => console.error('3D Error:', error)}
404
+ * onReset={() => console.log('Resetting...')}
405
+ * >
406
+ * <GameCanvas3D {...props} />
407
+ * </Canvas3DErrorBoundary>
408
+ * ```
409
+ */
410
+ declare class Canvas3DErrorBoundary extends Component<Canvas3DErrorBoundaryProps, Canvas3DErrorBoundaryState> {
411
+ constructor(props: Canvas3DErrorBoundaryProps);
412
+ static getDerivedStateFromError(error: Error): Canvas3DErrorBoundaryState;
413
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
414
+ handleReset: () => void;
415
+ render(): ReactNode;
416
+ }
417
+
418
+ /**
419
+ * ModelLoader Component
420
+ *
421
+ * React Three Fiber component for loading and displaying GLB/GLTF models from URLs.
422
+ * Handles loading states and errors without requiring React Suspense.
423
+ *
424
+ * @packageDocumentation
425
+ */
426
+
427
+ interface ModelLoaderProps {
428
+ /** URL to the GLB/GLTF model */
429
+ url: string;
430
+ /** Position [x, y, z] */
431
+ position?: [number, number, number];
432
+ /** Scale - either a single number or [x, y, z] */
433
+ scale?: number | [number, number, number];
434
+ /** Rotation in degrees [x, y, z] */
435
+ rotation?: [number, number, number];
436
+ /** Whether the model is selected */
437
+ isSelected?: boolean;
438
+ /** Whether the model is hovered */
439
+ isHovered?: boolean;
440
+ /** Click handler */
441
+ onClick?: () => void;
442
+ /** Hover handler */
443
+ onHover?: (hovered: boolean) => void;
444
+ /** Fallback geometry type */
445
+ fallbackGeometry?: 'box' | 'sphere' | 'cylinder' | 'none';
446
+ /**
447
+ * Named GLB animation clip to play (e.g. "idle", "walk") — the LOLO state machine
448
+ * drives this from the unit's `animation` field. Matched case-insensitively; an
449
+ * unknown or absent name leaves the model static (bind pose).
450
+ */
451
+ animation?: string;
452
+ /** Multiply the model's material colors by this CSS color (per-instance; e.g. team tint). */
453
+ tint?: string;
454
+ /** Enable shadows */
455
+ castShadow?: boolean;
456
+ /** Receive shadows */
457
+ receiveShadow?: boolean;
458
+ /**
459
+ * Base path for shared resources (textures, materials).
460
+ * If not provided, auto-detected from the URL by looking for a `/3d/` segment.
461
+ * E.g. "https://host/3d/" so that "Textures/colormap.png" resolves correctly.
462
+ */
463
+ resourceBasePath?: string;
464
+ }
465
+ /**
466
+ * ModelLoader component for rendering GLB models in React Three Fiber
467
+ */
468
+ declare function ModelLoader({ url, position, scale, rotation, isSelected, isHovered, onClick, onHover, fallbackGeometry, castShadow, receiveShadow, resourceBasePath, animation, tint, }: ModelLoaderProps): React__default.JSX.Element;
469
+
470
+ /**
471
+ * AssetLoader
472
+ *
473
+ * Three.js asset loading manager for 3D models and textures.
474
+ * Supports GLB/GLTF (primary), OBJ (fallback), and texture loading.
475
+ * Implements caching for performance.
476
+ *
477
+ * @packageDocumentation
478
+ */
479
+
480
+ interface LoadedModel {
481
+ scene: THREE.Group;
482
+ animations: THREE.AnimationClip[];
483
+ }
484
+ declare class AssetLoader {
485
+ private objLoader;
486
+ private textureLoader;
487
+ private modelCache;
488
+ private textureCache;
489
+ private loadingPromises;
490
+ constructor();
491
+ /**
492
+ * Load a GLB/GLTF model
493
+ * @param url - URL to the .glb or .gltf file
494
+ * @returns Promise with loaded model scene and animations
495
+ */
496
+ loadModel(url: string): Promise<LoadedModel>;
497
+ /**
498
+ * Load an OBJ model (fallback for non-GLB assets)
499
+ * @param url - URL to the .obj file
500
+ * @returns Promise with loaded object group
501
+ */
502
+ loadOBJ(url: string): Promise<THREE.Group>;
503
+ /**
504
+ * Load a texture
505
+ * @param url - URL to the texture image
506
+ * @returns Promise with loaded texture
507
+ */
508
+ loadTexture(url: string): Promise<THREE.Texture>;
509
+ /**
510
+ * Preload multiple assets
511
+ * @param urls - Array of asset URLs to preload
512
+ * @returns Promise that resolves when all assets are loaded
513
+ */
514
+ preload(urls: string[]): Promise<void>;
515
+ /**
516
+ * Check if a model is cached
517
+ * @param url - Model URL
518
+ */
519
+ hasModel(url: string): boolean;
520
+ /**
521
+ * Check if a texture is cached
522
+ * @param url - Texture URL
523
+ */
524
+ hasTexture(url: string): boolean;
525
+ /**
526
+ * Get cached model (throws if not cached)
527
+ * @param url - Model URL
528
+ */
529
+ getModel(url: string): LoadedModel;
530
+ /**
531
+ * Get cached texture (throws if not cached)
532
+ * @param url - Texture URL
533
+ */
534
+ getTexture(url: string): THREE.Texture;
535
+ /**
536
+ * Clear all caches
537
+ */
538
+ clearCache(): void;
539
+ /**
540
+ * Get cache statistics
541
+ */
542
+ getStats(): {
543
+ models: number;
544
+ textures: number;
545
+ loading: number;
546
+ };
547
+ }
548
+ declare const assetLoader: AssetLoader;
549
+
550
+ type CameraMode = 'isometric' | 'perspective' | 'top-down';
551
+ interface UseThreeOptions {
552
+ /** Camera mode for viewing the scene */
553
+ cameraMode?: CameraMode;
554
+ /** Initial camera position [x, y, z] */
555
+ cameraPosition?: [number, number, number];
556
+ /** Background color */
557
+ backgroundColor?: string;
558
+ /** Enable shadows */
559
+ shadows?: boolean;
560
+ /** Enable grid helper */
561
+ showGrid?: boolean;
562
+ /** Grid size */
563
+ gridSize?: number;
564
+ /** Asset loader instance */
565
+ assetLoader?: AssetLoader;
566
+ }
567
+ interface UseThreeReturn {
568
+ /** Canvas element reference (for React Three Fiber) */
569
+ canvasRef: React.RefObject<HTMLCanvasElement | null>;
570
+ /** Three.js renderer */
571
+ renderer: THREE.WebGLRenderer | null;
572
+ /** Three.js scene */
573
+ scene: THREE.Scene | null;
574
+ /** Three.js camera */
575
+ camera: THREE.Camera | null;
576
+ /** Orbit controls */
577
+ controls: OrbitControls | null;
578
+ /** Is scene ready */
579
+ isReady: boolean;
580
+ /** Canvas dimensions */
581
+ dimensions: {
582
+ width: number;
583
+ height: number;
584
+ };
585
+ /** Set camera position */
586
+ setCameraPosition: (x: number, y: number, z: number) => void;
587
+ /** Look at a specific point */
588
+ lookAt: (x: number, y: number, z: number) => void;
589
+ /** Reset camera to initial position */
590
+ resetCamera: () => void;
591
+ /** Fit view to bounds */
592
+ fitView: (bounds: {
593
+ minX: number;
594
+ maxX: number;
595
+ minZ: number;
596
+ maxZ: number;
597
+ }) => void;
598
+ }
599
+ /**
600
+ * Hook for managing a Three.js scene
601
+ * This is a lower-level hook used by GameCanvas3D
602
+ */
603
+ declare function useThree(options?: UseThreeOptions): UseThreeReturn;
604
+
605
+ interface UseAssetLoaderOptions {
606
+ /** URLs to preload on mount */
607
+ preloadUrls?: string[];
608
+ /** Asset loader instance (uses singleton if not provided) */
609
+ loader?: AssetLoader;
610
+ }
611
+ interface AssetLoadingState {
612
+ /** Whether assets are currently loading */
613
+ isLoading: boolean;
614
+ /** Loading progress (0-100) */
615
+ progress: number;
616
+ /** Number of loaded assets */
617
+ loaded: number;
618
+ /** Total assets to load */
619
+ total: number;
620
+ /** Any loading errors */
621
+ errors: string[];
622
+ }
623
+ interface UseAssetLoaderReturn extends AssetLoadingState {
624
+ /** Load a single model */
625
+ loadModel: (url: string) => Promise<LoadedModel>;
626
+ /** Load a single OBJ model */
627
+ loadOBJ: (url: string) => Promise<THREE.Group>;
628
+ /** Load a single texture */
629
+ loadTexture: (url: string) => Promise<THREE.Texture>;
630
+ /** Preload multiple assets */
631
+ preload: (urls: string[]) => Promise<void>;
632
+ /** Check if model is cached */
633
+ hasModel: (url: string) => boolean;
634
+ /** Check if texture is cached */
635
+ hasTexture: (url: string) => boolean;
636
+ /** Get cached model */
637
+ getModel: (url: string) => LoadedModel | undefined;
638
+ /** Get cached texture */
639
+ getTexture: (url: string) => THREE.Texture | undefined;
640
+ /** Clear all caches */
641
+ clearCache: () => void;
642
+ }
643
+ /**
644
+ * Hook for managing 3D asset loading in React components
645
+ *
646
+ * @example
647
+ * ```tsx
648
+ * const { loadModel, isLoading, progress } = useAssetLoader({
649
+ * preloadUrls: ['/assets/model.glb']
650
+ * });
651
+ *
652
+ * useEffect(() => {
653
+ * loadModel('/assets/character.glb').then((model) => {
654
+ * scene.add(model.scene);
655
+ * });
656
+ * }, []);
657
+ * ```
658
+ */
659
+ declare function useAssetLoader(options?: UseAssetLoaderOptions): UseAssetLoaderReturn;
660
+
661
+ type NodeType = 'tile' | 'unit' | 'feature' | 'highlight' | 'effect';
662
+ interface SceneGraphNode {
663
+ /** Unique node identifier */
664
+ id: string;
665
+ /** Node type classification */
666
+ type: NodeType;
667
+ /** Three.js object */
668
+ mesh: THREE.Object3D;
669
+ /** World position */
670
+ position: {
671
+ x: number;
672
+ y: number;
673
+ z: number;
674
+ };
675
+ /** Grid position */
676
+ gridPosition: {
677
+ x: number;
678
+ z: number;
679
+ };
680
+ /** Optional metadata */
681
+ metadata?: JsonObject;
682
+ }
683
+ interface UseSceneGraphReturn {
684
+ /** Reference to the nodes map */
685
+ nodesRef: React.MutableRefObject<Map<string, SceneGraphNode>>;
686
+ /** Add a node to the scene */
687
+ addNode: (node: SceneGraphNode) => void;
688
+ /** Remove a node from the scene */
689
+ removeNode: (id: string) => void;
690
+ /** Get a node by ID */
691
+ getNode: (id: string) => SceneGraphNode | undefined;
692
+ /** Update node position */
693
+ updateNodePosition: (id: string, x: number, y: number, z: number) => void;
694
+ /** Update node grid position */
695
+ updateNodeGridPosition: (id: string, gridX: number, gridZ: number) => void;
696
+ /** Get node at grid position */
697
+ getNodeAtGrid: (x: number, z: number, type?: NodeType) => SceneGraphNode | undefined;
698
+ /** Get all nodes of a specific type */
699
+ getNodesByType: (type: NodeType) => SceneGraphNode[];
700
+ /** Get all nodes within a bounding box */
701
+ getNodesInBounds: (minX: number, maxX: number, minZ: number, maxZ: number) => SceneGraphNode[];
702
+ /** Clear all nodes */
703
+ clearNodes: () => void;
704
+ /** Count nodes by type */
705
+ countNodes: (type?: NodeType) => number;
706
+ }
707
+ /**
708
+ * Hook for managing the 3D scene graph
709
+ *
710
+ * @example
711
+ * ```tsx
712
+ * const { addNode, removeNode, getNodeAtGrid } = useSceneGraph();
713
+ *
714
+ * // Add a tile
715
+ * addNode({
716
+ * id: 'tile-0-0',
717
+ * type: 'tile',
718
+ * mesh: tileMesh,
719
+ * position: { x: 0, y: 0, z: 0 },
720
+ * gridPosition: { x: 0, z: 0 }
721
+ * });
722
+ * ```
723
+ */
724
+ declare function useSceneGraph(): UseSceneGraphReturn;
725
+
726
+ interface RaycastHit {
727
+ /** Intersected object */
728
+ object: THREE.Object3D;
729
+ /** Intersection point */
730
+ point: THREE.Vector3;
731
+ /** Distance from camera */
732
+ distance: number;
733
+ /** UV coordinates (if available) */
734
+ uv?: THREE.Vector2;
735
+ /** Face normal */
736
+ face?: THREE.Face;
737
+ /** Face index */
738
+ faceIndex?: number;
739
+ /** Instance ID (for instanced meshes) */
740
+ instanceId?: number;
741
+ }
742
+ interface GridHit {
743
+ /** Grid X coordinate */
744
+ gridX: number;
745
+ /** Grid Z coordinate */
746
+ gridZ: number;
747
+ /** World position */
748
+ worldPosition: THREE.Vector3;
749
+ /** Intersected object type */
750
+ objectType?: 'tile' | 'unit' | 'feature';
751
+ /** Object ID if available */
752
+ objectId?: string;
753
+ }
754
+ interface UseRaycasterOptions {
755
+ /** Camera reference */
756
+ camera: THREE.Camera | null;
757
+ /** Canvas element for coordinate conversion */
758
+ canvas: HTMLCanvasElement | null;
759
+ /** Grid cell size */
760
+ cellSize?: number;
761
+ /** Grid offset X */
762
+ offsetX?: number;
763
+ /** Grid offset Z */
764
+ offsetZ?: number;
765
+ }
766
+ interface UseRaycasterReturn {
767
+ /** Raycaster instance */
768
+ raycaster: React.MutableRefObject<THREE.Raycaster>;
769
+ /** Mouse vector instance */
770
+ mouse: React.MutableRefObject<THREE.Vector2>;
771
+ /** Get intersection at client coordinates */
772
+ getIntersection: (clientX: number, clientY: number, objects: THREE.Object3D[]) => RaycastHit | null;
773
+ /** Get all intersections at client coordinates */
774
+ getAllIntersections: (clientX: number, clientY: number, objects: THREE.Object3D[]) => RaycastHit[];
775
+ /** Get grid coordinates at client position */
776
+ getGridCoordinates: (clientX: number, clientY: number) => {
777
+ x: number;
778
+ z: number;
779
+ } | null;
780
+ /** Get tile at client position from scene */
781
+ getTileAtPosition: (clientX: number, clientY: number, scene: THREE.Scene) => GridHit | null;
782
+ /** Convert client coordinates to normalized device coordinates */
783
+ clientToNDC: (clientX: number, clientY: number) => {
784
+ x: number;
785
+ y: number;
786
+ };
787
+ /** Check if point is within canvas bounds */
788
+ isWithinCanvas: (clientX: number, clientY: number) => boolean;
789
+ }
790
+ /**
791
+ * Hook for 3D raycasting operations
792
+ *
793
+ * @example
794
+ * ```tsx
795
+ * const { getIntersection, getGridCoordinates } = useRaycaster({
796
+ * camera,
797
+ * canvas: canvasRef.current
798
+ * });
799
+ *
800
+ * const handleClick = (e: MouseEvent) => {
801
+ * const hit = getIntersection(e.clientX, e.clientY, tileMeshes);
802
+ * if (hit) {
803
+ * const grid = getGridCoordinates(e.clientX, e.clientY);
804
+ * console.log('Clicked grid:', grid);
805
+ * }
806
+ * };
807
+ * ```
808
+ */
809
+ declare function useRaycaster(options: UseRaycasterOptions): UseRaycasterReturn;
810
+
811
+ interface GameCanvas3DEventConfig {
812
+ /** Event name for tile clicks. `tileId` is optional — the neutral draw-host emits
813
+ * only the scene coordinate `{ x, z }` (the FSM keys off the cell, not an id). */
814
+ tileClickEvent?: EventEmit<{
815
+ x: number;
816
+ z: number;
817
+ tileId?: string;
818
+ type?: string;
819
+ terrain?: string;
820
+ elevation?: number;
821
+ }>;
822
+ /** Event name for unit clicks */
823
+ unitClickEvent?: EventEmit<{
824
+ unitId: string;
825
+ x: number;
826
+ z: number;
827
+ unitType?: string;
828
+ name?: string;
829
+ team?: string;
830
+ faction?: string;
831
+ health?: number;
832
+ maxHealth?: number;
833
+ }>;
834
+ /** Event name for feature clicks */
835
+ featureClickEvent?: EventEmit<{
836
+ featureId: string;
837
+ x: number;
838
+ z: number;
839
+ type?: string;
840
+ elevation?: number;
841
+ }>;
842
+ /** Event name for canvas clicks */
843
+ canvasClickEvent?: EventEmit<{
844
+ clientX: number;
845
+ clientY: number;
846
+ button: number;
847
+ }>;
848
+ /** Event name for tile hover */
849
+ tileHoverEvent?: EventEmit<{
850
+ tileId: string;
851
+ x: number;
852
+ z: number;
853
+ type?: string;
854
+ }>;
855
+ /** Event name for tile leave */
856
+ tileLeaveEvent?: EventEmit<Record<string, never>>;
857
+ /** Event name for unit animation changes */
858
+ unitAnimationEvent?: EventEmit<{
859
+ unitId: string;
860
+ state: string;
861
+ timestamp: number;
862
+ }>;
863
+ /** Event name for camera changes */
864
+ cameraChangeEvent?: EventEmit<{
865
+ position: {
866
+ x: number;
867
+ y: number;
868
+ z: number;
869
+ };
870
+ timestamp: number;
871
+ }>;
872
+ }
873
+ /** Minimal mouse event interface — satisfied by both React.MouseEvent and ThreeEvent<MouseEvent> */
874
+ interface MinimalMouseEvent {
875
+ clientX: number;
876
+ clientY: number;
877
+ button: number;
878
+ }
879
+ interface UseGameCanvas3DEventsOptions extends GameCanvas3DEventConfig {
880
+ /** Callback for tile clicks (direct) */
881
+ onTileClick?: (tile: IsometricTile, event: MinimalMouseEvent) => void;
882
+ /** Callback for unit clicks (direct) */
883
+ onUnitClick?: (unit: IsometricUnit, event: MinimalMouseEvent) => void;
884
+ /** Callback for feature clicks (direct) */
885
+ onFeatureClick?: (feature: IsometricFeature, event: MinimalMouseEvent) => void;
886
+ /** Callback for canvas clicks (direct) */
887
+ onCanvasClick?: (event: MinimalMouseEvent) => void;
888
+ /** Callback for tile hover (direct) */
889
+ onTileHover?: (tile: IsometricTile | null, event: MinimalMouseEvent) => void;
890
+ /** Callback for unit animation changes (direct) */
891
+ onUnitAnimation?: (unitId: string, state: string) => void;
892
+ }
893
+ interface UseGameCanvas3DEventsReturn {
894
+ /** Handle tile click - emits event and calls callback */
895
+ handleTileClick: (tile: IsometricTile, event: MinimalMouseEvent) => void;
896
+ /** Handle unit click - emits event and calls callback */
897
+ handleUnitClick: (unit: IsometricUnit, event: MinimalMouseEvent) => void;
898
+ /** Handle feature click - emits event and calls callback */
899
+ handleFeatureClick: (feature: IsometricFeature, event: MinimalMouseEvent) => void;
900
+ /** Handle canvas click - emits event and calls callback */
901
+ handleCanvasClick: (event: MinimalMouseEvent) => void;
902
+ /** Handle tile hover - emits event and calls callback */
903
+ handleTileHover: (tile: IsometricTile | null, event: MinimalMouseEvent) => void;
904
+ /** Handle unit animation - emits event and calls callback */
905
+ handleUnitAnimation: (unitId: string, state: string) => void;
906
+ /** Handle camera change - emits event */
907
+ handleCameraChange: (position: {
908
+ x: number;
909
+ y: number;
910
+ z: number;
911
+ }) => void;
912
+ }
913
+ /**
914
+ * Hook for integrating GameCanvas3D with the event bus
915
+ *
916
+ * Supports both declarative event props (tileClickEvent) and
917
+ * direct callback props (onTileClick).
918
+ *
919
+ * @example
920
+ * ```tsx
921
+ * const events = useGameCanvas3DEvents({
922
+ * tileClickEvent: 'TILE_SELECTED',
923
+ * unitClickEvent: 'UNIT_SELECTED',
924
+ * onTileClick: (tile) => console.log('Tile:', tile)
925
+ * });
926
+ *
927
+ * // In component:
928
+ * <TileRenderer onTileClick={events.handleTileClick} />
929
+ * ```
930
+ */
931
+ declare function useGameCanvas3DEvents(options: UseGameCanvas3DEventsOptions): UseGameCanvas3DEventsReturn;
932
+
933
+ /**
934
+ * Grid 3D Utilities
935
+ *
936
+ * Utility functions for 3D grid coordinate transformations,
937
+ * raycasting, and spatial calculations for GameCanvas3D.
938
+ *
939
+ * @packageDocumentation
940
+ */
941
+
942
+ interface Grid3DConfig {
943
+ /** Size of each grid cell */
944
+ cellSize: number;
945
+ /** Grid offset X */
946
+ offsetX?: number;
947
+ /** Grid offset Z */
948
+ offsetZ?: number;
949
+ /** Grid Y height (elevation) */
950
+ elevation?: number;
951
+ }
952
+ interface GridCoordinate {
953
+ x: number;
954
+ y: number;
955
+ z: number;
956
+ }
957
+ /**
958
+ * Convert grid coordinates to world position
959
+ * @param gridX - Grid X coordinate
960
+ * @param gridZ - Grid Z coordinate
961
+ * @param config - Grid configuration
962
+ * @returns World position vector
963
+ */
964
+ declare function gridToWorld(gridX: number, gridZ: number, config?: Grid3DConfig): THREE.Vector3;
965
+ /**
966
+ * Convert world position to grid coordinates
967
+ * @param worldX - World X position
968
+ * @param worldZ - World Z position
969
+ * @param config - Grid configuration
970
+ * @returns Grid coordinates
971
+ */
972
+ declare function worldToGrid(worldX: number, worldZ: number, config?: Grid3DConfig): {
973
+ x: number;
974
+ z: number;
975
+ };
976
+ /**
977
+ * Raycast from camera through mouse position to find grid intersection
978
+ * @param camera - Three.js camera
979
+ * @param mouseX - Mouse X position (normalized -1 to 1)
980
+ * @param mouseY - Mouse Y position (normalized -1 to 1)
981
+ * @param planeY - Y height of the intersection plane (default: 0)
982
+ * @returns Intersection point or null
983
+ */
984
+ declare function raycastToPlane(camera: THREE.Camera, mouseX: number, mouseY: number, planeY?: number): THREE.Vector3 | null;
985
+ /**
986
+ * Raycast from camera through mouse position against a set of objects
987
+ * @param camera - Three.js camera
988
+ * @param mouseX - Mouse X position (normalized -1 to 1)
989
+ * @param mouseY - Mouse Y position (normalized -1 to 1)
990
+ * @param objects - Array of objects to test
991
+ * @returns First intersection or null
992
+ */
993
+ declare function raycastToObjects(camera: THREE.Camera, mouseX: number, mouseY: number, objects: THREE.Object3D[]): THREE.Intersection | null;
994
+ /**
995
+ * Calculate distance between two grid coordinates
996
+ * @param a - First grid coordinate
997
+ * @param b - Second grid coordinate
998
+ * @returns Distance in grid units
999
+ */
1000
+ declare function gridDistance(a: {
1001
+ x: number;
1002
+ z: number;
1003
+ }, b: {
1004
+ x: number;
1005
+ z: number;
1006
+ }): number;
1007
+ /**
1008
+ * Calculate Manhattan distance between two grid coordinates
1009
+ * @param a - First grid coordinate
1010
+ * @param b - Second grid coordinate
1011
+ * @returns Manhattan distance
1012
+ */
1013
+ declare function gridManhattanDistance(a: {
1014
+ x: number;
1015
+ z: number;
1016
+ }, b: {
1017
+ x: number;
1018
+ z: number;
1019
+ }): number;
1020
+ /**
1021
+ * Get neighboring grid cells
1022
+ * @param x - Center X coordinate
1023
+ * @param z - Center Z coordinate
1024
+ * @param includeDiagonal - Whether to include diagonal neighbors
1025
+ * @returns Array of neighbor coordinates
1026
+ */
1027
+ declare function getNeighbors(x: number, z: number, includeDiagonal?: boolean): {
1028
+ x: number;
1029
+ z: number;
1030
+ }[];
1031
+ /**
1032
+ * Check if a grid coordinate is within bounds
1033
+ * @param x - X coordinate
1034
+ * @param z - Z coordinate
1035
+ * @param bounds - Bounds object
1036
+ * @returns Whether the coordinate is within bounds
1037
+ */
1038
+ declare function isInBounds(x: number, z: number, bounds: {
1039
+ minX: number;
1040
+ maxX: number;
1041
+ minZ: number;
1042
+ maxZ: number;
1043
+ }): boolean;
1044
+ /**
1045
+ * Get all grid cells within a circular radius
1046
+ * @param centerX - Center X coordinate
1047
+ * @param centerZ - Center Z coordinate
1048
+ * @param radius - Radius in grid units
1049
+ * @returns Array of coordinates within radius
1050
+ */
1051
+ declare function getCellsInRadius(centerX: number, centerZ: number, radius: number): {
1052
+ x: number;
1053
+ z: number;
1054
+ }[];
1055
+ /**
1056
+ * Create a highlight mesh for grid cells
1057
+ * @param color - Highlight color
1058
+ * @param opacity - Opacity (0-1)
1059
+ * @returns Mesh that can be positioned at grid cells
1060
+ */
1061
+ declare function createGridHighlight(color?: number, opacity?: number): THREE.Mesh;
1062
+ /**
1063
+ * Normalize mouse coordinates to NDC (-1 to 1)
1064
+ * @param clientX - Mouse client X
1065
+ * @param clientY - Mouse client Y
1066
+ * @param element - Canvas element
1067
+ * @returns Normalized coordinates
1068
+ */
1069
+ declare function normalizeMouseCoordinates(clientX: number, clientY: number, element: HTMLElement): {
1070
+ x: number;
1071
+ y: number;
1072
+ };
1073
+
1074
+ /**
1075
+ * Culling Utilities
1076
+ *
1077
+ * Frustum culling and LOD (Level of Detail) management for 3D scene optimization.
1078
+ *
1079
+ * @packageDocumentation
1080
+ */
1081
+
1082
+ interface CullingOptions {
1083
+ /** Camera frustum for culling */
1084
+ camera: THREE.Camera;
1085
+ /** Optional padding around frustum */
1086
+ padding?: number;
1087
+ }
1088
+ interface LODLevel {
1089
+ /** Distance threshold for this LOD level */
1090
+ distance: number;
1091
+ /** Geometry or mesh for this level */
1092
+ geometry?: THREE.BufferGeometry;
1093
+ /** Scale multiplier for this level */
1094
+ scale?: number;
1095
+ /** Whether to use simplified material */
1096
+ simpleMaterial?: boolean;
1097
+ }
1098
+ interface LODConfig {
1099
+ /** LOD levels from closest to farthest */
1100
+ levels: LODLevel[];
1101
+ /** Transition smoothness (0-1) */
1102
+ transitionSmoothness?: number;
1103
+ }
1104
+ /**
1105
+ * Frustum culling check for a position
1106
+ * @param position - World position to check
1107
+ * @param camera - Camera to check against
1108
+ * @param padding - Optional padding in world units
1109
+ * @returns Whether the position is within the frustum
1110
+ */
1111
+ declare function isInFrustum(position: THREE.Vector3, camera: THREE.Camera, padding?: number): boolean;
1112
+ /**
1113
+ * Filter an array of positions to only those within the frustum
1114
+ * @param positions - Array of world positions
1115
+ * @param camera - Camera to check against
1116
+ * @param padding - Optional padding in world units
1117
+ * @returns Array of positions within frustum
1118
+ */
1119
+ declare function filterByFrustum(positions: THREE.Vector3[], camera: THREE.Camera, padding?: number): THREE.Vector3[];
1120
+ /**
1121
+ * Get indices of visible items from an array
1122
+ * @param positions - Array of world positions
1123
+ * @param camera - Camera to check against
1124
+ * @param padding - Optional padding in world units
1125
+ * @returns Set of visible indices
1126
+ */
1127
+ declare function getVisibleIndices(positions: THREE.Vector3[], camera: THREE.Camera, padding?: number): Set<number>;
1128
+ /**
1129
+ * Calculate LOD level based on distance from camera
1130
+ * @param position - Object position
1131
+ * @param camera - Camera position
1132
+ * @param lodLevels - Array of distance thresholds (sorted closest to farthest)
1133
+ * @returns Index of the LOD level to use
1134
+ */
1135
+ declare function calculateLODLevel(position: THREE.Vector3, camera: THREE.Camera, lodLevels: number[]): number;
1136
+ /**
1137
+ * Create a distance-based LOD system for an instanced mesh
1138
+ * @param instancedMesh - The instanced mesh to manage
1139
+ * @param positions - Array of instance positions
1140
+ * @param camera - Camera to calculate distances from
1141
+ * @param lodDistances - Distance thresholds for LOD levels
1142
+ * @returns Array of LOD indices for each instance
1143
+ */
1144
+ declare function updateInstanceLOD(instancedMesh: THREE.InstancedMesh, positions: THREE.Vector3[], camera: THREE.Camera, lodDistances: number[]): Uint8Array;
1145
+ /**
1146
+ * Create visibility data for instanced mesh culling
1147
+ * Updates the instance matrix to hide/show instances
1148
+ * @param instancedMesh - The instanced mesh
1149
+ * @param positions - Array of instance positions
1150
+ * @param visibleIndices - Set of visible indices
1151
+ * @returns Updated count of visible instances
1152
+ */
1153
+ declare function cullInstancedMesh(instancedMesh: THREE.InstancedMesh, positions: THREE.Vector3[], visibleIndices: Set<number>): number;
1154
+ /**
1155
+ * Spatial hash grid for efficient object queries
1156
+ */
1157
+ declare class SpatialHashGrid {
1158
+ private cellSize;
1159
+ private cells;
1160
+ private objectPositions;
1161
+ constructor(cellSize?: number);
1162
+ /**
1163
+ * Get cell key for a position
1164
+ */
1165
+ private getCellKey;
1166
+ /**
1167
+ * Insert an object into the grid
1168
+ */
1169
+ insert(id: string, position: THREE.Vector3): void;
1170
+ /**
1171
+ * Remove an object from the grid
1172
+ */
1173
+ remove(id: string): void;
1174
+ /**
1175
+ * Update an object's position
1176
+ */
1177
+ update(id: string, newPosition: THREE.Vector3): void;
1178
+ /**
1179
+ * Query objects within a radius of a position
1180
+ */
1181
+ queryRadius(center: THREE.Vector3, radius: number): string[];
1182
+ /**
1183
+ * Query objects within a bounding box
1184
+ */
1185
+ queryBox(minX: number, maxX: number, minZ: number, maxZ: number): string[];
1186
+ /**
1187
+ * Clear all objects from the grid
1188
+ */
1189
+ clear(): void;
1190
+ /**
1191
+ * Get statistics about the grid
1192
+ */
1193
+ getStats(): {
1194
+ objects: number;
1195
+ cells: number;
1196
+ };
1197
+ }
1198
+
1199
+ /**
1200
+ * AVL Cosmic Zoom State Machine
1201
+ *
1202
+ * useReducer-based state machine managing which zoom level is displayed,
1203
+ * what is selected, and animation state.
1204
+ *
1205
+ * Shared by AvlOrbitalsCosmicZoom (2D) and Avl3DViewer (3D). The 3D
1206
+ * viewer drills through every level (`application → orbital → trait →
1207
+ * transition`); the 2D cosmic view skips the `'orbital'` level after
1208
+ * COSMIC-1 (no Orbital-View screen) by dispatching `JUMP_TO_TRAIT_CIRCUIT`
1209
+ * to land directly at `'trait'`.
1210
+ *
1211
+ * @packageDocumentation
1212
+ */
1213
+ type ZoomLevel = 'application' | 'orbital' | 'trait' | 'transition';
1214
+
1215
+ /**
1216
+ * avl-3d-context.ts
1217
+ *
1218
+ * React context for AVL 3D model overrides and configuration.
1219
+ * Allows replacing primitive geometry with custom GLB/GLTF models.
1220
+ *
1221
+ * @packageDocumentation
1222
+ */
1223
+ interface Avl3DModelOverrides {
1224
+ /** GLB URL for orbital nodes (replaces sphere) */
1225
+ orbital?: string;
1226
+ /** GLB URL for entity core (replaces icosahedron) */
1227
+ entity?: string;
1228
+ /** GLB URL for state nodes (replaces sphere) */
1229
+ state?: string;
1230
+ /** GLB URL for guard gates (replaces octahedron) */
1231
+ guard?: string;
1232
+ /** GLB URL for page portals (replaces plane) */
1233
+ page?: string;
1234
+ }
1235
+ interface Avl3DConfig {
1236
+ /** Custom 3D model URLs to replace default primitive geometry */
1237
+ modelOverrides: Avl3DModelOverrides;
1238
+ /** Whether postprocessing effects are enabled */
1239
+ effectsEnabled: boolean;
1240
+ }
1241
+ declare const Avl3DContext: React$1.Context<Avl3DConfig>;
1242
+ /**
1243
+ * Access the current AVL 3D configuration.
1244
+ * Returns model overrides and effect settings.
1245
+ */
1246
+ declare function useAvl3DConfig(): Avl3DConfig;
1247
+
1248
+ /**
1249
+ * Avl3DViewer - Interactive 3D Orbital Visualization
1250
+ *
1251
+ * The host organism that owns the R3F Canvas and delegates to 3D scene
1252
+ * renderers at each zoom level. The 3D equivalent of AvlCosmicZoom.
1253
+ *
1254
+ * Reuses avl-schema-parser.ts and avl-zoom-state.ts directly.
1255
+ *
1256
+ * @packageDocumentation
1257
+ */
1258
+
1259
+ interface Avl3DViewerProps {
1260
+ /** The orbital schema (parsed object or JSON string) */
1261
+ schema: OrbitalSchema | string;
1262
+ /** CSS class for the outer container */
1263
+ className?: string;
1264
+ /** Enable animations (default: true) */
1265
+ animated?: boolean;
1266
+ /** Pre-select an orbital on mount */
1267
+ initialOrbital?: string;
1268
+ /** Pre-select a trait on mount */
1269
+ initialTrait?: string;
1270
+ /** Callback when zoom level changes */
1271
+ onZoomChange?: (level: ZoomLevel, context: {
1272
+ orbital?: string;
1273
+ trait?: string;
1274
+ }) => void;
1275
+ /** Container width */
1276
+ width?: number | string;
1277
+ /** Container height */
1278
+ height?: number | string;
1279
+ /** Enable postprocessing effects (bloom, DOF, vignette). Default: true */
1280
+ effects?: boolean;
1281
+ /** Custom 3D model URLs to replace default primitive geometry */
1282
+ modelOverrides?: Avl3DModelOverrides;
1283
+ }
1284
+ declare const Avl3DViewer: React__default.FC<Avl3DViewerProps>;
1285
+
1286
+ /**
1287
+ * Avl3DApplicationScene - Galaxy view of all orbitals.
1288
+ *
1289
+ * Positions orbitals on a golden-ratio spiral and renders cross-orbital
1290
+ * event wires between them. The 3D equivalent of AvlApplicationScene.
1291
+ *
1292
+ * @packageDocumentation
1293
+ */
1294
+
1295
+ interface Avl3DApplicationSceneProps {
1296
+ /** Parsed application-level data */
1297
+ data: ApplicationLevelData;
1298
+ /** Click handler for an orbital */
1299
+ onOrbitalClick?: (orbitalName: string) => void;
1300
+ /** Primary color */
1301
+ color?: string;
1302
+ }
1303
+ declare const Avl3DApplicationScene: React__default.FC<Avl3DApplicationSceneProps>;
1304
+
1305
+ /**
1306
+ * Avl3DOrbitalScene - Solar system view of a single orbital.
1307
+ *
1308
+ * Renders entity core at center, trait orbit rings, and page portals.
1309
+ * The 3D equivalent of AvlOrbitalScene.
1310
+ *
1311
+ * @packageDocumentation
1312
+ */
1313
+
1314
+ interface Avl3DOrbitalSceneProps {
1315
+ /** Parsed orbital-level data */
1316
+ data: OrbitalLevelData;
1317
+ /** Click handler for a trait */
1318
+ onTraitClick?: (traitName: string) => void;
1319
+ /** Currently highlighted trait */
1320
+ highlightedTrait?: string | null;
1321
+ /** Highlight change handler */
1322
+ onTraitHighlight?: (traitName: string | null) => void;
1323
+ /** Primary color */
1324
+ color?: string;
1325
+ }
1326
+ declare const Avl3DOrbitalScene: React__default.FC<Avl3DOrbitalSceneProps>;
1327
+
1328
+ /**
1329
+ * Avl3DTraitScene - 3D state machine view for a single trait.
1330
+ *
1331
+ * Positions states on a fibonacci sphere and renders transition arcs
1332
+ * between them. The 3D equivalent of AvlTraitScene.
1333
+ *
1334
+ * @packageDocumentation
1335
+ */
1336
+
1337
+ interface Avl3DTraitSceneProps {
1338
+ /** Parsed trait-level data */
1339
+ data: TraitLevelData;
1340
+ /** Click handler for a transition */
1341
+ onTransitionClick?: (transitionIndex: number) => void;
1342
+ /** Primary color */
1343
+ color?: string;
1344
+ }
1345
+ declare const Avl3DTraitScene: React__default.FC<Avl3DTraitSceneProps>;
1346
+
1347
+ /**
1348
+ * Avl3DTransitionScene - 3D expression tree and effect chain view.
1349
+ *
1350
+ * Renders a detailed view of a single transition with its guard
1351
+ * expression tree and effect chain. The 3D equivalent of AvlTransitionScene.
1352
+ *
1353
+ * @packageDocumentation
1354
+ */
1355
+
1356
+ interface Avl3DTransitionSceneProps {
1357
+ /** Parsed transition-level data */
1358
+ data: TransitionLevelData;
1359
+ /** Primary color */
1360
+ color?: string;
1361
+ }
1362
+ declare const Avl3DTransitionScene: React__default.FC<Avl3DTransitionSceneProps>;
1363
+
1364
+ /**
1365
+ * Avl3DEffects - Postprocessing effects and ambient visuals for AVL 3D.
1366
+ *
1367
+ * Two layers:
1368
+ * 1. Ambient visuals (sparkles, starfield) - always rendered via drei
1369
+ * 2. Postprocessing (bloom, DOF, vignette) - rendered via @react-three/postprocessing
1370
+ *
1371
+ * @packageDocumentation
1372
+ */
1373
+
1374
+ interface Avl3DEffectsProps {
1375
+ /** Current zoom level (effects vary by level) */
1376
+ level: ZoomLevel;
1377
+ /** Enable/disable all effects */
1378
+ enabled?: boolean;
1379
+ }
1380
+ declare const Avl3DEffects: React__default.FC<Avl3DEffectsProps>;
1381
+
1382
+ /**
1383
+ * avl-3d-layout.ts
1384
+ *
1385
+ * Pure math utilities for 3D positioning of AVL visualization nodes.
1386
+ * The 3D equivalent of avl-layout.ts (2D positioning helpers).
1387
+ *
1388
+ * @packageDocumentation
1389
+ */
1390
+
1391
+ interface Position3D {
1392
+ x: number;
1393
+ y: number;
1394
+ z: number;
1395
+ }
1396
+ interface ExprTreeNode3D {
1397
+ label: string;
1398
+ type: 'operator' | 'literal' | 'binding';
1399
+ children?: ExprTreeNode3D[];
1400
+ }
1401
+ interface TreeLayoutResult {
1402
+ node: ExprTreeNode3D;
1403
+ position: Position3D;
1404
+ }
1405
+ /**
1406
+ * Refined palette following Almadar UI Beauty principles:
1407
+ * - No pure black: deep navy tint (#0c1222) instead of #0A0A1A
1408
+ * - 60-30-10 rule: 60% deep background, 30% muted blues/grays, 10% bright accents
1409
+ * - Desaturated for dark backgrounds: softer blues, warmer golds
1410
+ * - Depth through color layering: surfaces get progressively lighter
1411
+ */
1412
+ declare const AVL_3D_COLORS: {
1413
+ readonly orbitalSphere: "#161b2e";
1414
+ readonly orbitalRim: "#5b9bd5";
1415
+ readonly entityCore: "#f0c040";
1416
+ readonly entityCoreGlow: "#ffd866";
1417
+ readonly traitOrbit: "#5b9bd5";
1418
+ readonly traitOrbitHighlight: "#7ab8f5";
1419
+ readonly stateIdle: "#1e2a3a";
1420
+ readonly stateEdge: "#5b9bd5";
1421
+ readonly stateActive: "#4ecb71";
1422
+ readonly transitionArc: "#e0944a";
1423
+ readonly transitionArcHover: "#f0a860";
1424
+ readonly guardPass: "#4ecb71";
1425
+ readonly guardFail: "#f06060";
1426
+ readonly crossWire: "#a78bda";
1427
+ readonly crossWireGlow: "#c4a8f0";
1428
+ readonly pagePortal: "#40c8aa";
1429
+ readonly background: "#0c1222";
1430
+ readonly backgroundSurface: "#111a2e";
1431
+ readonly fog: "#0c1222";
1432
+ readonly sparkle: "#7ab8f5";
1433
+ readonly sparkleWarm: "#f0c040";
1434
+ };
1435
+ /**
1436
+ * Positions N nodes on a golden-ratio spiral in the XZ plane (y=0).
1437
+ * Used as initial positions for the force-directed layout.
1438
+ */
1439
+ declare function goldenSpiralPositions(count: number, baseRadius: number): Position3D[];
1440
+ /**
1441
+ * Distributes N points on a sphere surface using Fibonacci lattice.
1442
+ * Produces near-uniform spacing regardless of count.
1443
+ */
1444
+ declare function fibonacciSpherePositions(count: number, radius: number): Position3D[];
1445
+ /**
1446
+ * Evenly spaces N points on a tilted ring (elliptical orbit).
1447
+ * `tilt` is the ring's inclination in radians relative to the XZ plane.
1448
+ */
1449
+ declare function orbitRingPositions(count: number, radius: number, tilt: number): Position3D[];
1450
+ /**
1451
+ * Creates a QuadraticBezierCurve3 between two 3D points with a control
1452
+ * point offset perpendicular to the from-to line. The offset direction
1453
+ * is computed in 3D using a cross product with the up vector.
1454
+ */
1455
+ declare function arcCurve3D(from: [number, number, number], to: [number, number, number], offset: number): QuadraticBezierCurve3;
1456
+ /**
1457
+ * Creates a loop curve above a point for self-transitions.
1458
+ */
1459
+ declare function selfLoopCurve3D(position: [number, number, number], loopRadius: number): QuadraticBezierCurve3;
1460
+ /**
1461
+ * Recursively positions an expression tree in 3D space.
1462
+ * Root at origin, children spread horizontally, depth goes downward (negative Y).
1463
+ */
1464
+ declare function treeLayout3D(node: ExprTreeNode3D, origin: Position3D, horizontalSpacing: number, verticalSpacing?: number): TreeLayoutResult[];
1465
+ declare const CAMERA_POSITIONS: {
1466
+ readonly application: {
1467
+ readonly position: [number, number, number];
1468
+ readonly target: [number, number, number];
1469
+ };
1470
+ readonly orbital: {
1471
+ readonly position: [number, number, number];
1472
+ readonly target: [number, number, number];
1473
+ };
1474
+ readonly trait: {
1475
+ readonly position: [number, number, number];
1476
+ readonly target: [number, number, number];
1477
+ };
1478
+ readonly transition: {
1479
+ readonly position: [number, number, number];
1480
+ readonly target: [number, number, number];
1481
+ };
1482
+ };
1483
+
1484
+ export { AVL_3D_COLORS, AssetLoader, type AssetLoadingState, Avl3DApplicationScene, type Avl3DApplicationSceneProps, type Avl3DConfig, Avl3DContext, Avl3DEffects, type Avl3DEffectsProps, type Avl3DModelOverrides, Avl3DOrbitalScene, type Avl3DOrbitalSceneProps, Avl3DTraitScene, type Avl3DTraitSceneProps, Avl3DTransitionScene, type Avl3DTransitionSceneProps, Avl3DViewer, type Avl3DViewerProps, CAMERA_POSITIONS, Camera3D, type Camera3DHandle, type Camera3DProps, type CameraMode$1 as CameraMode, Canvas3DErrorBoundary, type Canvas3DErrorBoundaryProps, type Canvas3DErrorBoundaryState, Canvas3DHost, type Canvas3DHostHandle, type Canvas3DHostProps, Canvas3DLoadingState, type Canvas3DLoadingStateProps, type CullingOptions, Canvas3DHost as GameCanvas3D, type GameCanvas3DEventConfig, type Grid3DConfig, type GridCoordinate, type GridHit, type LODConfig, type LODLevel, Lighting3D, type Lighting3DProps, type LoadedModel, ModelLoader, type ModelLoaderProps, type NodeType, type Position3D, type RaycastHit, Scene3D, type Scene3DProps, type SceneGraphNode, SpatialHashGrid, type UseAssetLoaderOptions, type UseAssetLoaderReturn, type UseGameCanvas3DEventsOptions, type UseGameCanvas3DEventsReturn, type UseRaycasterOptions, type UseRaycasterReturn, type UseSceneGraphReturn, type UseThreeOptions, type UseThreeReturn, arcCurve3D, assetLoader, calculateLODLevel, createGridHighlight, cullInstancedMesh, fibonacciSpherePositions, filterByFrustum, getCellsInRadius, getNeighbors, getVisibleIndices, goldenSpiralPositions, gridDistance, gridManhattanDistance, gridToWorld, isInBounds, isInFrustum, normalizeMouseCoordinates, orbitRingPositions, raycastToObjects, raycastToPlane, selfLoopCurve3D, treeLayout3D, updateInstanceLOD, useAssetLoader, useAvl3DConfig, useGameCanvas3DEvents, useRaycaster, useSceneGraph, useThree, worldToGrid };