@excalidraw/math 0.18.0-d2463f87d

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 (368) hide show
  1. package/README.md +19 -0
  2. package/dist/dev/index.js +907 -0
  3. package/dist/dev/index.js.map +7 -0
  4. package/dist/prod/index.js +1 -0
  5. package/dist/types/common/src/binary-heap.d.ts +12 -0
  6. package/dist/types/common/src/colors.d.ts +62 -0
  7. package/dist/types/common/src/constants.d.ts +343 -0
  8. package/dist/types/common/src/emitter.d.ts +16 -0
  9. package/dist/types/common/src/font-metadata.d.ts +48 -0
  10. package/dist/types/common/src/index.d.ts +12 -0
  11. package/dist/types/common/src/keys.d.ts +189 -0
  12. package/dist/types/common/src/points.d.ts +9 -0
  13. package/dist/types/common/src/promise-pool.d.ts +6 -0
  14. package/dist/types/common/src/queue.d.ts +9 -0
  15. package/dist/types/common/src/random.d.ts +3 -0
  16. package/dist/types/common/src/url.d.ts +7 -0
  17. package/dist/types/common/src/utility-types.d.ts +38 -0
  18. package/dist/types/common/src/utils.d.ts +267 -0
  19. package/dist/types/element/src/Scene.d.ts +76 -0
  20. package/dist/types/element/src/align.d.ts +7 -0
  21. package/dist/types/element/src/binding.d.ts +110 -0
  22. package/dist/types/element/src/bounds.d.ts +89 -0
  23. package/dist/types/element/src/collision.d.ts +32 -0
  24. package/dist/types/element/src/comparisons.d.ts +8 -0
  25. package/dist/types/element/src/containerCache.d.ts +11 -0
  26. package/dist/types/element/src/cropElement.d.ts +19 -0
  27. package/dist/types/element/src/delta.d.ts +216 -0
  28. package/dist/types/element/src/distance.d.ts +3 -0
  29. package/dist/types/element/src/distribute.d.ts +6 -0
  30. package/dist/types/element/src/dragElements.d.ts +33 -0
  31. package/dist/types/element/src/duplicate.d.ts +63 -0
  32. package/dist/types/element/src/elbowArrow.d.ts +17 -0
  33. package/dist/types/element/src/elementLink.d.ts +13 -0
  34. package/dist/types/element/src/embeddable.d.ts +10 -0
  35. package/dist/types/element/src/flowchart.d.ts +26 -0
  36. package/dist/types/element/src/fractionalIndex.d.ts +57 -0
  37. package/dist/types/element/src/frame.d.ts +70 -0
  38. package/dist/types/element/src/groups.d.ts +33 -0
  39. package/dist/types/element/src/heading.d.ts +15 -0
  40. package/dist/types/element/src/image.d.ts +32 -0
  41. package/dist/types/element/src/index.d.ts +57 -0
  42. package/dist/types/element/src/linearElementEditor.d.ts +116 -0
  43. package/dist/types/element/src/mutateElement.d.ts +21 -0
  44. package/dist/types/element/src/newElement.d.ts +62 -0
  45. package/dist/types/element/src/renderElement.d.ts +28 -0
  46. package/dist/types/element/src/resizeElements.d.ts +32 -0
  47. package/dist/types/element/src/resizeTest.d.ts +15 -0
  48. package/dist/types/element/src/selection.d.ts +38 -0
  49. package/dist/types/element/src/shape.d.ts +42 -0
  50. package/dist/types/element/src/showSelectedShapeActions.d.ts +3 -0
  51. package/dist/types/element/src/sizeHelpers.d.ts +35 -0
  52. package/dist/types/element/src/sortElements.d.ts +2 -0
  53. package/dist/types/element/src/store.d.ts +231 -0
  54. package/dist/types/element/src/textElement.d.ts +40 -0
  55. package/dist/types/element/src/textMeasurements.d.ts +41 -0
  56. package/dist/types/element/src/textWrapping.d.ts +13 -0
  57. package/dist/types/element/src/transformHandles.d.ts +55 -0
  58. package/dist/types/element/src/typeChecks.d.ts +57 -0
  59. package/dist/types/element/src/types.d.ts +295 -0
  60. package/dist/types/element/src/utils.d.ts +31 -0
  61. package/dist/types/element/src/zindex.d.ts +7 -0
  62. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +528 -0
  63. package/dist/types/excalidraw/actions/actionAlign.d.ts +110 -0
  64. package/dist/types/excalidraw/actions/actionBoundText.d.ts +389 -0
  65. package/dist/types/excalidraw/actions/actionCanvas.d.ts +2416 -0
  66. package/dist/types/excalidraw/actions/actionClipboard.d.ts +1172 -0
  67. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +189 -0
  68. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +568 -0
  69. package/dist/types/excalidraw/actions/actionDistribute.d.ts +35 -0
  70. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +18 -0
  71. package/dist/types/excalidraw/actions/actionElementLink.d.ts +211 -0
  72. package/dist/types/excalidraw/actions/actionElementLock.d.ts +375 -0
  73. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +186 -0
  74. package/dist/types/excalidraw/actions/actionExport.d.ts +1648 -0
  75. package/dist/types/excalidraw/actions/actionFinalize.d.ts +398 -0
  76. package/dist/types/excalidraw/actions/actionFlip.d.ts +35 -0
  77. package/dist/types/excalidraw/actions/actionFrame.d.ts +1245 -0
  78. package/dist/types/excalidraw/actions/actionGroup.d.ts +387 -0
  79. package/dist/types/excalidraw/actions/actionHistory.d.ts +6 -0
  80. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +683 -0
  81. package/dist/types/excalidraw/actions/actionLink.d.ts +190 -0
  82. package/dist/types/excalidraw/actions/actionMenu.d.ts +548 -0
  83. package/dist/types/excalidraw/actions/actionNavigate.d.ts +363 -0
  84. package/dist/types/excalidraw/actions/actionProperties.d.ts +2774 -0
  85. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +189 -0
  86. package/dist/types/excalidraw/actions/actionStyles.d.ts +203 -0
  87. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
  88. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +192 -0
  89. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +190 -0
  90. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +183 -0
  91. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  92. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +189 -0
  93. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +190 -0
  94. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +190 -0
  95. package/dist/types/excalidraw/actions/actionZindex.d.ts +75 -0
  96. package/dist/types/excalidraw/actions/index.d.ts +28 -0
  97. package/dist/types/excalidraw/actions/manager.d.ts +21 -0
  98. package/dist/types/excalidraw/actions/register.d.ts +5 -0
  99. package/dist/types/excalidraw/actions/shortcuts.d.ts +4 -0
  100. package/dist/types/excalidraw/actions/types.d.ts +47 -0
  101. package/dist/types/excalidraw/analytics.d.ts +1 -0
  102. package/dist/types/excalidraw/animated-trail.d.ts +39 -0
  103. package/dist/types/excalidraw/animation-frame-handler.d.ts +16 -0
  104. package/dist/types/excalidraw/appState.d.ts +96 -0
  105. package/dist/types/excalidraw/charts.d.ts +27 -0
  106. package/dist/types/excalidraw/clients.d.ts +14 -0
  107. package/dist/types/excalidraw/clipboard.d.ts +66 -0
  108. package/dist/types/excalidraw/components/Actions.d.ts +34 -0
  109. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -0
  110. package/dist/types/excalidraw/components/App.d.ts +559 -0
  111. package/dist/types/excalidraw/components/Avatar.d.ts +11 -0
  112. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -0
  113. package/dist/types/excalidraw/components/Button.d.ts +17 -0
  114. package/dist/types/excalidraw/components/ButtonIcon.d.ts +16 -0
  115. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -0
  116. package/dist/types/excalidraw/components/Card.d.ts +7 -0
  117. package/dist/types/excalidraw/components/CheckboxItem.d.ts +8 -0
  118. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -0
  119. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -0
  120. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -0
  121. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -0
  122. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +17 -0
  123. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -0
  124. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -0
  125. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -0
  126. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -0
  127. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -0
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +21 -0
  129. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -0
  130. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -0
  131. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +26 -0
  132. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +10 -0
  133. package/dist/types/excalidraw/components/ContextMenu.d.ts +16 -0
  134. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  135. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +7 -0
  136. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +31 -0
  137. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -0
  138. package/dist/types/excalidraw/components/Dialog.d.ts +13 -0
  139. package/dist/types/excalidraw/components/DialogActionButton.d.ts +10 -0
  140. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -0
  141. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +12 -0
  142. package/dist/types/excalidraw/components/ErrorDialog.d.ts +5 -0
  143. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +16 -0
  144. package/dist/types/excalidraw/components/EyeDropper.d.ts +28 -0
  145. package/dist/types/excalidraw/components/FilledButton.d.ts +18 -0
  146. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +9 -0
  147. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -0
  148. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -0
  149. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -0
  150. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -0
  151. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +14 -0
  152. package/dist/types/excalidraw/components/HandButton.d.ts +10 -0
  153. package/dist/types/excalidraw/components/HelpButton.d.ts +7 -0
  154. package/dist/types/excalidraw/components/HelpDialog.d.ts +4 -0
  155. package/dist/types/excalidraw/components/HintViewer.d.ts +10 -0
  156. package/dist/types/excalidraw/components/IconPicker.d.ts +15 -0
  157. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +14 -0
  158. package/dist/types/excalidraw/components/InitializeApp.d.ts +10 -0
  159. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -0
  160. package/dist/types/excalidraw/components/Island.d.ts +10 -0
  161. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +15 -0
  162. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +10 -0
  163. package/dist/types/excalidraw/components/LayerUI.d.ts +31 -0
  164. package/dist/types/excalidraw/components/LibraryMenu.d.ts +10 -0
  165. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -0
  166. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -0
  167. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +18 -0
  168. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +14 -0
  169. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +23 -0
  170. package/dist/types/excalidraw/components/LibraryUnit.d.ts +15 -0
  171. package/dist/types/excalidraw/components/LoadingMessage.d.ts +6 -0
  172. package/dist/types/excalidraw/components/LockButton.d.ts +10 -0
  173. package/dist/types/excalidraw/components/MagicButton.d.ts +10 -0
  174. package/dist/types/excalidraw/components/MobileMenu.d.ts +25 -0
  175. package/dist/types/excalidraw/components/Modal.d.ts +12 -0
  176. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
  177. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
  178. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
  179. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +8 -0
  180. package/dist/types/excalidraw/components/PenModeButton.d.ts +12 -0
  181. package/dist/types/excalidraw/components/Popover.d.ts +15 -0
  182. package/dist/types/excalidraw/components/ProjectName.d.ts +10 -0
  183. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +15 -0
  184. package/dist/types/excalidraw/components/PublishLibrary.d.ts +16 -0
  185. package/dist/types/excalidraw/components/QuickSearch.d.ts +9 -0
  186. package/dist/types/excalidraw/components/RadioGroup.d.ts +14 -0
  187. package/dist/types/excalidraw/components/RadioSelection.d.ts +20 -0
  188. package/dist/types/excalidraw/components/Range.d.ts +8 -0
  189. package/dist/types/excalidraw/components/SVGLayer.d.ts +7 -0
  190. package/dist/types/excalidraw/components/ScrollableList.d.ts +9 -0
  191. package/dist/types/excalidraw/components/SearchMenu.d.ts +5 -0
  192. package/dist/types/excalidraw/components/Section.d.ts +6 -0
  193. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -0
  194. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -0
  195. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +9 -0
  196. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +10 -0
  197. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +7 -0
  198. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +7 -0
  199. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -0
  200. package/dist/types/excalidraw/components/Sidebar/common.d.ts +34 -0
  201. package/dist/types/excalidraw/components/Spinner.d.ts +8 -0
  202. package/dist/types/excalidraw/components/Stack.d.ts +15 -0
  203. package/dist/types/excalidraw/components/Stats/Angle.d.ts +11 -0
  204. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +11 -0
  205. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +11 -0
  206. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +11 -0
  207. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +45 -0
  208. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +11 -0
  209. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -0
  210. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -0
  211. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -0
  212. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -0
  213. package/dist/types/excalidraw/components/Stats/Position.d.ts +12 -0
  214. package/dist/types/excalidraw/components/Stats/index.d.ts +36 -0
  215. package/dist/types/excalidraw/components/Stats/utils.d.ts +19 -0
  216. package/dist/types/excalidraw/components/Switch.d.ts +9 -0
  217. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +6 -0
  218. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +30 -0
  219. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  220. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -0
  221. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -0
  222. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  223. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -0
  224. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +8 -0
  225. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +9 -0
  226. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +7 -0
  227. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -0
  228. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +9 -0
  229. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +33 -0
  230. package/dist/types/excalidraw/components/TextField.d.ts +21 -0
  231. package/dist/types/excalidraw/components/Toast.d.ts +9 -0
  232. package/dist/types/excalidraw/components/ToolButton.d.ts +49 -0
  233. package/dist/types/excalidraw/components/Tooltip.d.ts +18 -0
  234. package/dist/types/excalidraw/components/Trans.d.ts +9 -0
  235. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  236. package/dist/types/excalidraw/components/UserList.d.ts +18 -0
  237. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +30 -0
  238. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -0
  239. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -0
  240. package/dist/types/excalidraw/components/canvases/index.d.ts +3 -0
  241. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -0
  242. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -0
  243. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
  244. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +46 -0
  245. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -0
  246. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +18 -0
  247. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -0
  248. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -0
  249. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
  250. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +11 -0
  251. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +6 -0
  252. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
  253. package/dist/types/excalidraw/components/footer/Footer.d.ts +12 -0
  254. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +8 -0
  255. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -0
  256. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -0
  257. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +10 -0
  258. package/dist/types/excalidraw/components/icons.d.ts +225 -0
  259. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -0
  260. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -0
  261. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +83 -0
  262. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  263. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
  264. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
  265. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +85 -0
  266. package/dist/types/excalidraw/context/tunnels.d.ts +21 -0
  267. package/dist/types/excalidraw/context/ui-appState.d.ts +4 -0
  268. package/dist/types/excalidraw/cursor.d.ts +5 -0
  269. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +8 -0
  270. package/dist/types/excalidraw/data/blob.d.ts +53 -0
  271. package/dist/types/excalidraw/data/encode.d.ts +55 -0
  272. package/dist/types/excalidraw/data/encryption.d.ts +9 -0
  273. package/dist/types/excalidraw/data/filesystem.d.ts +21 -0
  274. package/dist/types/excalidraw/data/image.d.ts +9 -0
  275. package/dist/types/excalidraw/data/index.d.ts +22 -0
  276. package/dist/types/excalidraw/data/json.d.ts +16 -0
  277. package/dist/types/excalidraw/data/library.d.ts +112 -0
  278. package/dist/types/excalidraw/data/reconcile.d.ts +6 -0
  279. package/dist/types/excalidraw/data/resave.d.ts +5 -0
  280. package/dist/types/excalidraw/data/restore.d.ts +21 -0
  281. package/dist/types/excalidraw/data/transform.d.ts +81 -0
  282. package/dist/types/excalidraw/data/types.d.ts +45 -0
  283. package/dist/types/excalidraw/deburr.d.ts +1 -0
  284. package/dist/types/excalidraw/editor-jotai.d.ts +56 -0
  285. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  286. package/dist/types/excalidraw/errors.d.ts +29 -0
  287. package/dist/types/excalidraw/fonts/Cascadia/index.d.ts +2 -0
  288. package/dist/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -0
  289. package/dist/types/excalidraw/fonts/Emoji/index.d.ts +2 -0
  290. package/dist/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +25 -0
  291. package/dist/types/excalidraw/fonts/Excalifont/index.d.ts +2 -0
  292. package/dist/types/excalidraw/fonts/Fonts.d.ts +79 -0
  293. package/dist/types/excalidraw/fonts/Helvetica/index.d.ts +2 -0
  294. package/dist/types/excalidraw/fonts/Liberation/index.d.ts +2 -0
  295. package/dist/types/excalidraw/fonts/Lilita/index.d.ts +2 -0
  296. package/dist/types/excalidraw/fonts/Nunito/index.d.ts +2 -0
  297. package/dist/types/excalidraw/fonts/Virgil/index.d.ts +2 -0
  298. package/dist/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -0
  299. package/dist/types/excalidraw/fonts/index.d.ts +1 -0
  300. package/dist/types/excalidraw/gesture.d.ts +6 -0
  301. package/dist/types/excalidraw/history.d.ts +48 -0
  302. package/dist/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -0
  303. package/dist/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -0
  304. package/dist/types/excalidraw/hooks/useCreatePortalContainer.d.ts +4 -0
  305. package/dist/types/excalidraw/hooks/useEmitter.d.ts +2 -0
  306. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -0
  307. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +20 -0
  308. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +2 -0
  309. package/dist/types/excalidraw/hooks/useStable.d.ts +1 -0
  310. package/dist/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
  311. package/dist/types/excalidraw/hooks/useTransition.d.ts +2 -0
  312. package/dist/types/excalidraw/i18n.d.ts +24 -0
  313. package/dist/types/excalidraw/index.d.ts +46 -0
  314. package/dist/types/excalidraw/laser-trails.d.ts +20 -0
  315. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  316. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  317. package/dist/types/excalidraw/mermaid.d.ts +2 -0
  318. package/dist/types/excalidraw/polyfill.d.ts +2 -0
  319. package/dist/types/excalidraw/reactUtils.d.ts +14 -0
  320. package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
  321. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +20 -0
  322. package/dist/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -0
  323. package/dist/types/excalidraw/renderer/renderSnaps.d.ts +2 -0
  324. package/dist/types/excalidraw/renderer/roundRect.d.ts +11 -0
  325. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -0
  326. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +5 -0
  327. package/dist/types/excalidraw/scene/Renderer.d.ts +27 -0
  328. package/dist/types/excalidraw/scene/export.d.ts +36 -0
  329. package/dist/types/excalidraw/scene/index.d.ts +4 -0
  330. package/dist/types/excalidraw/scene/normalize.d.ts +4 -0
  331. package/dist/types/excalidraw/scene/scroll.d.ts +23 -0
  332. package/dist/types/excalidraw/scene/scrollbars.d.ts +11 -0
  333. package/dist/types/excalidraw/scene/types.d.ts +120 -0
  334. package/dist/types/excalidraw/scene/zoom.d.ts +12 -0
  335. package/dist/types/excalidraw/snapping.d.ts +111 -0
  336. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -0
  337. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -0
  338. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -0
  339. package/dist/types/excalidraw/subset/subset-main.d.ts +12 -0
  340. package/dist/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -0
  341. package/dist/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -0
  342. package/dist/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -0
  343. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -0
  344. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -0
  345. package/dist/types/excalidraw/types.d.ts +706 -0
  346. package/dist/types/excalidraw/workers.d.ts +36 -0
  347. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -0
  348. package/dist/types/math/src/angle.d.ts +19 -0
  349. package/dist/types/math/src/constants.d.ts +3 -0
  350. package/dist/types/math/src/curve.d.ts +74 -0
  351. package/dist/types/math/src/ellipse.d.ts +44 -0
  352. package/dist/types/math/src/index.d.ts +13 -0
  353. package/dist/types/math/src/line.d.ts +17 -0
  354. package/dist/types/math/src/point.d.ts +122 -0
  355. package/dist/types/math/src/polygon.d.ts +6 -0
  356. package/dist/types/math/src/range.d.ts +44 -0
  357. package/dist/types/math/src/rectangle.d.ts +5 -0
  358. package/dist/types/math/src/segment.d.ts +39 -0
  359. package/dist/types/math/src/triangle.d.ts +11 -0
  360. package/dist/types/math/src/types.d.ts +106 -0
  361. package/dist/types/math/src/utils.d.ts +7 -0
  362. package/dist/types/math/src/vector.d.ts +94 -0
  363. package/dist/types/utils/src/bbox.d.ts +9 -0
  364. package/dist/types/utils/src/export.d.ts +35 -0
  365. package/dist/types/utils/src/index.d.ts +4 -0
  366. package/dist/types/utils/src/shape.d.ts +58 -0
  367. package/dist/types/utils/src/withinBounds.d.ts +19 -0
  368. package/package.json +66 -0
@@ -0,0 +1,1648 @@
1
+ /// <reference types="react" />
2
+ import type { Theme } from "@excalidraw/element/types";
3
+ import "../components/ToolIcon.scss";
4
+ export declare const actionChangeProjectName: {
5
+ name: "changeProjectName";
6
+ label: string;
7
+ trackEvent: false;
8
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
+ appState: {
10
+ name: any;
11
+ contextMenu: {
12
+ items: import("../components/ContextMenu").ContextMenuItems;
13
+ top: number;
14
+ left: number;
15
+ } | null;
16
+ showWelcomeScreen: boolean;
17
+ isLoading: boolean;
18
+ errorMessage: import("react").ReactNode;
19
+ activeEmbeddable: {
20
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
+ state: "active" | "hover";
22
+ } | null;
23
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ isBindingEnabled: boolean;
28
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
+ frameRendering: {
32
+ enabled: boolean;
33
+ name: boolean;
34
+ outline: boolean;
35
+ clip: boolean;
36
+ };
37
+ editingFrame: string | null;
38
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
+ activeTool: {
42
+ lastActiveTool: import("../types").ActiveTool | null;
43
+ locked: boolean;
44
+ fromSelection: boolean;
45
+ } & import("../types").ActiveTool;
46
+ penMode: boolean;
47
+ penDetected: boolean;
48
+ exportBackground: boolean;
49
+ exportEmbedScene: boolean;
50
+ exportWithDarkMode: boolean;
51
+ exportScale: number;
52
+ currentItemStrokeColor: string;
53
+ currentItemBackgroundColor: string;
54
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
+ currentItemStrokeWidth: number;
56
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
+ currentItemRoughness: number;
58
+ currentItemOpacity: number;
59
+ currentItemFontFamily: number;
60
+ currentItemFontSize: number;
61
+ currentItemTextAlign: string;
62
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
+ currentHoveredFontFamily: number | null;
65
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
+ currentItemArrowType: "round" | "sharp" | "elbow";
67
+ viewBackgroundColor: string;
68
+ scrollX: number;
69
+ scrollY: number;
70
+ cursorButton: "up" | "down";
71
+ scrolledOutside: boolean;
72
+ isResizing: boolean;
73
+ isRotating: boolean;
74
+ zoom: Readonly<{
75
+ value: import("../types").NormalizedZoomValue;
76
+ }>;
77
+ openMenu: "canvas" | "shape" | null;
78
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
+ openSidebar: {
80
+ name: string;
81
+ tab?: string | undefined;
82
+ } | null;
83
+ openDialog: {
84
+ name: "imageExport" | "help" | "jsonExport";
85
+ } | {
86
+ name: "ttd";
87
+ tab: "mermaid" | "text-to-diagram";
88
+ } | {
89
+ name: "commandPalette";
90
+ } | {
91
+ name: "elementLinkSelector";
92
+ sourceElementId: string;
93
+ } | null;
94
+ defaultSidebarDockedPreference: boolean;
95
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
96
+ selectedElementIds: Readonly<{
97
+ [id: string]: true;
98
+ }>;
99
+ hoveredElementIds: Readonly<{
100
+ [id: string]: true;
101
+ }>;
102
+ previousSelectedElementIds: {
103
+ [id: string]: true;
104
+ };
105
+ selectedElementsAreBeingDragged: boolean;
106
+ shouldCacheIgnoreZoom: boolean;
107
+ toast: {
108
+ message: string;
109
+ closable?: boolean | undefined;
110
+ duration?: number | undefined;
111
+ } | null;
112
+ zenModeEnabled: boolean;
113
+ theme: Theme;
114
+ gridSize: number;
115
+ gridStep: number;
116
+ gridModeEnabled: boolean;
117
+ viewModeEnabled: boolean;
118
+ selectedGroupIds: {
119
+ [groupId: string]: boolean;
120
+ };
121
+ editingGroupId: string | null;
122
+ width: number;
123
+ height: number;
124
+ offsetTop: number;
125
+ offsetLeft: number;
126
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
+ collaborators: Map<import("../types").SocketId, Readonly<{
128
+ pointer?: import("../types").CollaboratorPointer | undefined;
129
+ button?: "up" | "down" | undefined;
130
+ selectedElementIds?: Readonly<{
131
+ [id: string]: true;
132
+ }> | undefined;
133
+ username?: string | null | undefined;
134
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
135
+ color?: {
136
+ background: string;
137
+ stroke: string;
138
+ } | undefined;
139
+ avatarUrl?: string | undefined;
140
+ id?: string | undefined;
141
+ socketId?: import("../types").SocketId | undefined;
142
+ isCurrentUser?: boolean | undefined;
143
+ isInCall?: boolean | undefined;
144
+ isSpeaking?: boolean | undefined;
145
+ isMuted?: boolean | undefined;
146
+ }>>;
147
+ stats: {
148
+ open: boolean;
149
+ panels: number;
150
+ };
151
+ currentChartType: import("@excalidraw/element/types").ChartType;
152
+ pasteDialog: {
153
+ shown: false;
154
+ data: null;
155
+ } | {
156
+ shown: true;
157
+ data: import("../charts").Spreadsheet;
158
+ };
159
+ showHyperlinkPopup: false | "editor" | "info";
160
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
+ snapLines: readonly import("../snapping").SnapLine[];
162
+ originSnapOffset: {
163
+ x: number;
164
+ y: number;
165
+ } | null;
166
+ objectsSnapModeEnabled: boolean;
167
+ userToFollow: import("../types").UserToFollow | null;
168
+ followedBy: Set<import("../types").SocketId>;
169
+ isCropping: boolean;
170
+ croppingElementId: string | null;
171
+ searchMatches: Readonly<{
172
+ focusedId: string | null;
173
+ matches: readonly import("../types").SearchMatch[];
174
+ }> | null;
175
+ activeLockedId: string | null;
176
+ lockedMultiSelections: {
177
+ [groupId: string]: true;
178
+ };
179
+ };
180
+ captureUpdate: "EVENTUALLY";
181
+ };
182
+ PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
183
+ } & {
184
+ keyTest?: undefined;
185
+ };
186
+ export declare const actionChangeExportScale: {
187
+ name: "changeExportScale";
188
+ label: string;
189
+ trackEvent: {
190
+ category: "export";
191
+ action: string;
192
+ };
193
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
194
+ appState: {
195
+ exportScale: any;
196
+ contextMenu: {
197
+ items: import("../components/ContextMenu").ContextMenuItems;
198
+ top: number;
199
+ left: number;
200
+ } | null;
201
+ showWelcomeScreen: boolean;
202
+ isLoading: boolean;
203
+ errorMessage: import("react").ReactNode;
204
+ activeEmbeddable: {
205
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
206
+ state: "active" | "hover";
207
+ } | null;
208
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
209
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
211
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
212
+ isBindingEnabled: boolean;
213
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
214
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
215
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
216
+ frameRendering: {
217
+ enabled: boolean;
218
+ name: boolean;
219
+ outline: boolean;
220
+ clip: boolean;
221
+ };
222
+ editingFrame: string | null;
223
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
224
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
226
+ activeTool: {
227
+ lastActiveTool: import("../types").ActiveTool | null;
228
+ locked: boolean;
229
+ fromSelection: boolean;
230
+ } & import("../types").ActiveTool;
231
+ penMode: boolean;
232
+ penDetected: boolean;
233
+ exportBackground: boolean;
234
+ exportEmbedScene: boolean;
235
+ exportWithDarkMode: boolean;
236
+ currentItemStrokeColor: string;
237
+ currentItemBackgroundColor: string;
238
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
239
+ currentItemStrokeWidth: number;
240
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
+ currentItemRoughness: number;
242
+ currentItemOpacity: number;
243
+ currentItemFontFamily: number;
244
+ currentItemFontSize: number;
245
+ currentItemTextAlign: string;
246
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
247
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
248
+ currentHoveredFontFamily: number | null;
249
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
250
+ currentItemArrowType: "round" | "sharp" | "elbow";
251
+ viewBackgroundColor: string;
252
+ scrollX: number;
253
+ scrollY: number;
254
+ cursorButton: "up" | "down";
255
+ scrolledOutside: boolean;
256
+ name: string | null;
257
+ isResizing: boolean;
258
+ isRotating: boolean;
259
+ zoom: Readonly<{
260
+ value: import("../types").NormalizedZoomValue;
261
+ }>;
262
+ openMenu: "canvas" | "shape" | null;
263
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
264
+ openSidebar: {
265
+ name: string;
266
+ tab?: string | undefined;
267
+ } | null;
268
+ openDialog: {
269
+ name: "imageExport" | "help" | "jsonExport";
270
+ } | {
271
+ name: "ttd";
272
+ tab: "mermaid" | "text-to-diagram";
273
+ } | {
274
+ name: "commandPalette";
275
+ } | {
276
+ name: "elementLinkSelector";
277
+ sourceElementId: string;
278
+ } | null;
279
+ defaultSidebarDockedPreference: boolean;
280
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
281
+ selectedElementIds: Readonly<{
282
+ [id: string]: true;
283
+ }>;
284
+ hoveredElementIds: Readonly<{
285
+ [id: string]: true;
286
+ }>;
287
+ previousSelectedElementIds: {
288
+ [id: string]: true;
289
+ };
290
+ selectedElementsAreBeingDragged: boolean;
291
+ shouldCacheIgnoreZoom: boolean;
292
+ toast: {
293
+ message: string;
294
+ closable?: boolean | undefined;
295
+ duration?: number | undefined;
296
+ } | null;
297
+ zenModeEnabled: boolean;
298
+ theme: Theme;
299
+ gridSize: number;
300
+ gridStep: number;
301
+ gridModeEnabled: boolean;
302
+ viewModeEnabled: boolean;
303
+ selectedGroupIds: {
304
+ [groupId: string]: boolean;
305
+ };
306
+ editingGroupId: string | null;
307
+ width: number;
308
+ height: number;
309
+ offsetTop: number;
310
+ offsetLeft: number;
311
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
312
+ collaborators: Map<import("../types").SocketId, Readonly<{
313
+ pointer?: import("../types").CollaboratorPointer | undefined;
314
+ button?: "up" | "down" | undefined;
315
+ selectedElementIds?: Readonly<{
316
+ [id: string]: true;
317
+ }> | undefined;
318
+ username?: string | null | undefined;
319
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
320
+ color?: {
321
+ background: string;
322
+ stroke: string;
323
+ } | undefined;
324
+ avatarUrl?: string | undefined;
325
+ id?: string | undefined;
326
+ socketId?: import("../types").SocketId | undefined;
327
+ isCurrentUser?: boolean | undefined;
328
+ isInCall?: boolean | undefined;
329
+ isSpeaking?: boolean | undefined;
330
+ isMuted?: boolean | undefined;
331
+ }>>;
332
+ stats: {
333
+ open: boolean;
334
+ panels: number;
335
+ };
336
+ currentChartType: import("@excalidraw/element/types").ChartType;
337
+ pasteDialog: {
338
+ shown: false;
339
+ data: null;
340
+ } | {
341
+ shown: true;
342
+ data: import("../charts").Spreadsheet;
343
+ };
344
+ showHyperlinkPopup: false | "editor" | "info";
345
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
346
+ snapLines: readonly import("../snapping").SnapLine[];
347
+ originSnapOffset: {
348
+ x: number;
349
+ y: number;
350
+ } | null;
351
+ objectsSnapModeEnabled: boolean;
352
+ userToFollow: import("../types").UserToFollow | null;
353
+ followedBy: Set<import("../types").SocketId>;
354
+ isCropping: boolean;
355
+ croppingElementId: string | null;
356
+ searchMatches: Readonly<{
357
+ focusedId: string | null;
358
+ matches: readonly import("../types").SearchMatch[];
359
+ }> | null;
360
+ activeLockedId: string | null;
361
+ lockedMultiSelections: {
362
+ [groupId: string]: true;
363
+ };
364
+ };
365
+ captureUpdate: "EVENTUALLY";
366
+ };
367
+ PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
368
+ } & {
369
+ keyTest?: undefined;
370
+ };
371
+ export declare const actionChangeExportBackground: {
372
+ name: "changeExportBackground";
373
+ label: string;
374
+ trackEvent: {
375
+ category: "export";
376
+ action: string;
377
+ };
378
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
379
+ appState: {
380
+ exportBackground: any;
381
+ contextMenu: {
382
+ items: import("../components/ContextMenu").ContextMenuItems;
383
+ top: number;
384
+ left: number;
385
+ } | null;
386
+ showWelcomeScreen: boolean;
387
+ isLoading: boolean;
388
+ errorMessage: import("react").ReactNode;
389
+ activeEmbeddable: {
390
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
391
+ state: "active" | "hover";
392
+ } | null;
393
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
394
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
395
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
396
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
397
+ isBindingEnabled: boolean;
398
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
399
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
400
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
401
+ frameRendering: {
402
+ enabled: boolean;
403
+ name: boolean;
404
+ outline: boolean;
405
+ clip: boolean;
406
+ };
407
+ editingFrame: string | null;
408
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
409
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
411
+ activeTool: {
412
+ lastActiveTool: import("../types").ActiveTool | null;
413
+ locked: boolean;
414
+ fromSelection: boolean;
415
+ } & import("../types").ActiveTool;
416
+ penMode: boolean;
417
+ penDetected: boolean;
418
+ exportEmbedScene: boolean;
419
+ exportWithDarkMode: boolean;
420
+ exportScale: number;
421
+ currentItemStrokeColor: string;
422
+ currentItemBackgroundColor: string;
423
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
424
+ currentItemStrokeWidth: number;
425
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
426
+ currentItemRoughness: number;
427
+ currentItemOpacity: number;
428
+ currentItemFontFamily: number;
429
+ currentItemFontSize: number;
430
+ currentItemTextAlign: string;
431
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
432
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
433
+ currentHoveredFontFamily: number | null;
434
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
435
+ currentItemArrowType: "round" | "sharp" | "elbow";
436
+ viewBackgroundColor: string;
437
+ scrollX: number;
438
+ scrollY: number;
439
+ cursorButton: "up" | "down";
440
+ scrolledOutside: boolean;
441
+ name: string | null;
442
+ isResizing: boolean;
443
+ isRotating: boolean;
444
+ zoom: Readonly<{
445
+ value: import("../types").NormalizedZoomValue;
446
+ }>;
447
+ openMenu: "canvas" | "shape" | null;
448
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
449
+ openSidebar: {
450
+ name: string;
451
+ tab?: string | undefined;
452
+ } | null;
453
+ openDialog: {
454
+ name: "imageExport" | "help" | "jsonExport";
455
+ } | {
456
+ name: "ttd";
457
+ tab: "mermaid" | "text-to-diagram";
458
+ } | {
459
+ name: "commandPalette";
460
+ } | {
461
+ name: "elementLinkSelector";
462
+ sourceElementId: string;
463
+ } | null;
464
+ defaultSidebarDockedPreference: boolean;
465
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
466
+ selectedElementIds: Readonly<{
467
+ [id: string]: true;
468
+ }>;
469
+ hoveredElementIds: Readonly<{
470
+ [id: string]: true;
471
+ }>;
472
+ previousSelectedElementIds: {
473
+ [id: string]: true;
474
+ };
475
+ selectedElementsAreBeingDragged: boolean;
476
+ shouldCacheIgnoreZoom: boolean;
477
+ toast: {
478
+ message: string;
479
+ closable?: boolean | undefined;
480
+ duration?: number | undefined;
481
+ } | null;
482
+ zenModeEnabled: boolean;
483
+ theme: Theme;
484
+ gridSize: number;
485
+ gridStep: number;
486
+ gridModeEnabled: boolean;
487
+ viewModeEnabled: boolean;
488
+ selectedGroupIds: {
489
+ [groupId: string]: boolean;
490
+ };
491
+ editingGroupId: string | null;
492
+ width: number;
493
+ height: number;
494
+ offsetTop: number;
495
+ offsetLeft: number;
496
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
497
+ collaborators: Map<import("../types").SocketId, Readonly<{
498
+ pointer?: import("../types").CollaboratorPointer | undefined;
499
+ button?: "up" | "down" | undefined;
500
+ selectedElementIds?: Readonly<{
501
+ [id: string]: true;
502
+ }> | undefined;
503
+ username?: string | null | undefined;
504
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
505
+ color?: {
506
+ background: string;
507
+ stroke: string;
508
+ } | undefined;
509
+ avatarUrl?: string | undefined;
510
+ id?: string | undefined;
511
+ socketId?: import("../types").SocketId | undefined;
512
+ isCurrentUser?: boolean | undefined;
513
+ isInCall?: boolean | undefined;
514
+ isSpeaking?: boolean | undefined;
515
+ isMuted?: boolean | undefined;
516
+ }>>;
517
+ stats: {
518
+ open: boolean;
519
+ panels: number;
520
+ };
521
+ currentChartType: import("@excalidraw/element/types").ChartType;
522
+ pasteDialog: {
523
+ shown: false;
524
+ data: null;
525
+ } | {
526
+ shown: true;
527
+ data: import("../charts").Spreadsheet;
528
+ };
529
+ showHyperlinkPopup: false | "editor" | "info";
530
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
531
+ snapLines: readonly import("../snapping").SnapLine[];
532
+ originSnapOffset: {
533
+ x: number;
534
+ y: number;
535
+ } | null;
536
+ objectsSnapModeEnabled: boolean;
537
+ userToFollow: import("../types").UserToFollow | null;
538
+ followedBy: Set<import("../types").SocketId>;
539
+ isCropping: boolean;
540
+ croppingElementId: string | null;
541
+ searchMatches: Readonly<{
542
+ focusedId: string | null;
543
+ matches: readonly import("../types").SearchMatch[];
544
+ }> | null;
545
+ activeLockedId: string | null;
546
+ lockedMultiSelections: {
547
+ [groupId: string]: true;
548
+ };
549
+ };
550
+ captureUpdate: "EVENTUALLY";
551
+ };
552
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
553
+ } & {
554
+ keyTest?: undefined;
555
+ };
556
+ export declare const actionChangeExportEmbedScene: {
557
+ name: "changeExportEmbedScene";
558
+ label: string;
559
+ trackEvent: {
560
+ category: "export";
561
+ action: string;
562
+ };
563
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
564
+ appState: {
565
+ exportEmbedScene: any;
566
+ contextMenu: {
567
+ items: import("../components/ContextMenu").ContextMenuItems;
568
+ top: number;
569
+ left: number;
570
+ } | null;
571
+ showWelcomeScreen: boolean;
572
+ isLoading: boolean;
573
+ errorMessage: import("react").ReactNode;
574
+ activeEmbeddable: {
575
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
576
+ state: "active" | "hover";
577
+ } | null;
578
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
579
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
580
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
581
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
582
+ isBindingEnabled: boolean;
583
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
584
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
585
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
586
+ frameRendering: {
587
+ enabled: boolean;
588
+ name: boolean;
589
+ outline: boolean;
590
+ clip: boolean;
591
+ };
592
+ editingFrame: string | null;
593
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
594
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
596
+ activeTool: {
597
+ lastActiveTool: import("../types").ActiveTool | null;
598
+ locked: boolean;
599
+ fromSelection: boolean;
600
+ } & import("../types").ActiveTool;
601
+ penMode: boolean;
602
+ penDetected: boolean;
603
+ exportBackground: boolean;
604
+ exportWithDarkMode: boolean;
605
+ exportScale: number;
606
+ currentItemStrokeColor: string;
607
+ currentItemBackgroundColor: string;
608
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
609
+ currentItemStrokeWidth: number;
610
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
611
+ currentItemRoughness: number;
612
+ currentItemOpacity: number;
613
+ currentItemFontFamily: number;
614
+ currentItemFontSize: number;
615
+ currentItemTextAlign: string;
616
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
617
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
618
+ currentHoveredFontFamily: number | null;
619
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
620
+ currentItemArrowType: "round" | "sharp" | "elbow";
621
+ viewBackgroundColor: string;
622
+ scrollX: number;
623
+ scrollY: number;
624
+ cursorButton: "up" | "down";
625
+ scrolledOutside: boolean;
626
+ name: string | null;
627
+ isResizing: boolean;
628
+ isRotating: boolean;
629
+ zoom: Readonly<{
630
+ value: import("../types").NormalizedZoomValue;
631
+ }>;
632
+ openMenu: "canvas" | "shape" | null;
633
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
634
+ openSidebar: {
635
+ name: string;
636
+ tab?: string | undefined;
637
+ } | null;
638
+ openDialog: {
639
+ name: "imageExport" | "help" | "jsonExport";
640
+ } | {
641
+ name: "ttd";
642
+ tab: "mermaid" | "text-to-diagram";
643
+ } | {
644
+ name: "commandPalette";
645
+ } | {
646
+ name: "elementLinkSelector";
647
+ sourceElementId: string;
648
+ } | null;
649
+ defaultSidebarDockedPreference: boolean;
650
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
651
+ selectedElementIds: Readonly<{
652
+ [id: string]: true;
653
+ }>;
654
+ hoveredElementIds: Readonly<{
655
+ [id: string]: true;
656
+ }>;
657
+ previousSelectedElementIds: {
658
+ [id: string]: true;
659
+ };
660
+ selectedElementsAreBeingDragged: boolean;
661
+ shouldCacheIgnoreZoom: boolean;
662
+ toast: {
663
+ message: string;
664
+ closable?: boolean | undefined;
665
+ duration?: number | undefined;
666
+ } | null;
667
+ zenModeEnabled: boolean;
668
+ theme: Theme;
669
+ gridSize: number;
670
+ gridStep: number;
671
+ gridModeEnabled: boolean;
672
+ viewModeEnabled: boolean;
673
+ selectedGroupIds: {
674
+ [groupId: string]: boolean;
675
+ };
676
+ editingGroupId: string | null;
677
+ width: number;
678
+ height: number;
679
+ offsetTop: number;
680
+ offsetLeft: number;
681
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
682
+ collaborators: Map<import("../types").SocketId, Readonly<{
683
+ pointer?: import("../types").CollaboratorPointer | undefined;
684
+ button?: "up" | "down" | undefined;
685
+ selectedElementIds?: Readonly<{
686
+ [id: string]: true;
687
+ }> | undefined;
688
+ username?: string | null | undefined;
689
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
690
+ color?: {
691
+ background: string;
692
+ stroke: string;
693
+ } | undefined;
694
+ avatarUrl?: string | undefined;
695
+ id?: string | undefined;
696
+ socketId?: import("../types").SocketId | undefined;
697
+ isCurrentUser?: boolean | undefined;
698
+ isInCall?: boolean | undefined;
699
+ isSpeaking?: boolean | undefined;
700
+ isMuted?: boolean | undefined;
701
+ }>>;
702
+ stats: {
703
+ open: boolean;
704
+ panels: number;
705
+ };
706
+ currentChartType: import("@excalidraw/element/types").ChartType;
707
+ pasteDialog: {
708
+ shown: false;
709
+ data: null;
710
+ } | {
711
+ shown: true;
712
+ data: import("../charts").Spreadsheet;
713
+ };
714
+ showHyperlinkPopup: false | "editor" | "info";
715
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
716
+ snapLines: readonly import("../snapping").SnapLine[];
717
+ originSnapOffset: {
718
+ x: number;
719
+ y: number;
720
+ } | null;
721
+ objectsSnapModeEnabled: boolean;
722
+ userToFollow: import("../types").UserToFollow | null;
723
+ followedBy: Set<import("../types").SocketId>;
724
+ isCropping: boolean;
725
+ croppingElementId: string | null;
726
+ searchMatches: Readonly<{
727
+ focusedId: string | null;
728
+ matches: readonly import("../types").SearchMatch[];
729
+ }> | null;
730
+ activeLockedId: string | null;
731
+ lockedMultiSelections: {
732
+ [groupId: string]: true;
733
+ };
734
+ };
735
+ captureUpdate: "EVENTUALLY";
736
+ };
737
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
738
+ } & {
739
+ keyTest?: undefined;
740
+ };
741
+ export declare const actionSaveToActiveFile: {
742
+ name: "saveToActiveFile";
743
+ label: string;
744
+ icon: import("react/jsx-runtime").JSX.Element;
745
+ trackEvent: {
746
+ category: "export";
747
+ };
748
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
749
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
750
+ captureUpdate: "EVENTUALLY";
751
+ appState: {
752
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
753
+ toast: {
754
+ message: string;
755
+ } | null;
756
+ contextMenu: {
757
+ items: import("../components/ContextMenu").ContextMenuItems;
758
+ top: number;
759
+ left: number;
760
+ } | null;
761
+ showWelcomeScreen: boolean;
762
+ isLoading: boolean;
763
+ errorMessage: import("react").ReactNode;
764
+ activeEmbeddable: {
765
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
766
+ state: "active" | "hover";
767
+ } | null;
768
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
769
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
770
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
771
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
772
+ isBindingEnabled: boolean;
773
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
774
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
775
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
776
+ frameRendering: {
777
+ enabled: boolean;
778
+ name: boolean;
779
+ outline: boolean;
780
+ clip: boolean;
781
+ };
782
+ editingFrame: string | null;
783
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
784
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
785
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
786
+ activeTool: {
787
+ lastActiveTool: import("../types").ActiveTool | null;
788
+ locked: boolean;
789
+ fromSelection: boolean;
790
+ } & import("../types").ActiveTool;
791
+ penMode: boolean;
792
+ penDetected: boolean;
793
+ exportBackground: boolean;
794
+ exportEmbedScene: boolean;
795
+ exportWithDarkMode: boolean;
796
+ exportScale: number;
797
+ currentItemStrokeColor: string;
798
+ currentItemBackgroundColor: string;
799
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
800
+ currentItemStrokeWidth: number;
801
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
802
+ currentItemRoughness: number;
803
+ currentItemOpacity: number;
804
+ currentItemFontFamily: number;
805
+ currentItemFontSize: number;
806
+ currentItemTextAlign: string;
807
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
808
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
809
+ currentHoveredFontFamily: number | null;
810
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
811
+ currentItemArrowType: "round" | "sharp" | "elbow";
812
+ viewBackgroundColor: string;
813
+ scrollX: number;
814
+ scrollY: number;
815
+ cursorButton: "up" | "down";
816
+ scrolledOutside: boolean;
817
+ name: string | null;
818
+ isResizing: boolean;
819
+ isRotating: boolean;
820
+ zoom: Readonly<{
821
+ value: import("../types").NormalizedZoomValue;
822
+ }>;
823
+ openMenu: "canvas" | "shape" | null;
824
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
825
+ openSidebar: {
826
+ name: string;
827
+ tab?: string | undefined;
828
+ } | null;
829
+ openDialog: {
830
+ name: "imageExport" | "help" | "jsonExport";
831
+ } | {
832
+ name: "ttd";
833
+ tab: "mermaid" | "text-to-diagram";
834
+ } | {
835
+ name: "commandPalette";
836
+ } | {
837
+ name: "elementLinkSelector";
838
+ sourceElementId: string;
839
+ } | null;
840
+ defaultSidebarDockedPreference: boolean;
841
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
842
+ selectedElementIds: Readonly<{
843
+ [id: string]: true;
844
+ }>;
845
+ hoveredElementIds: Readonly<{
846
+ [id: string]: true;
847
+ }>;
848
+ previousSelectedElementIds: {
849
+ [id: string]: true;
850
+ };
851
+ selectedElementsAreBeingDragged: boolean;
852
+ shouldCacheIgnoreZoom: boolean;
853
+ zenModeEnabled: boolean;
854
+ theme: Theme;
855
+ gridSize: number;
856
+ gridStep: number;
857
+ gridModeEnabled: boolean;
858
+ viewModeEnabled: boolean;
859
+ selectedGroupIds: {
860
+ [groupId: string]: boolean;
861
+ };
862
+ editingGroupId: string | null;
863
+ width: number;
864
+ height: number;
865
+ offsetTop: number;
866
+ offsetLeft: number;
867
+ collaborators: Map<import("../types").SocketId, Readonly<{
868
+ pointer?: import("../types").CollaboratorPointer | undefined;
869
+ button?: "up" | "down" | undefined;
870
+ selectedElementIds?: Readonly<{
871
+ [id: string]: true;
872
+ }> | undefined;
873
+ username?: string | null | undefined;
874
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
875
+ color?: {
876
+ background: string;
877
+ stroke: string;
878
+ } | undefined;
879
+ avatarUrl?: string | undefined;
880
+ id?: string | undefined;
881
+ socketId?: import("../types").SocketId | undefined;
882
+ isCurrentUser?: boolean | undefined;
883
+ isInCall?: boolean | undefined;
884
+ isSpeaking?: boolean | undefined;
885
+ isMuted?: boolean | undefined;
886
+ }>>;
887
+ stats: {
888
+ open: boolean;
889
+ panels: number;
890
+ };
891
+ currentChartType: import("@excalidraw/element/types").ChartType;
892
+ pasteDialog: {
893
+ shown: false;
894
+ data: null;
895
+ } | {
896
+ shown: true;
897
+ data: import("../charts").Spreadsheet;
898
+ };
899
+ showHyperlinkPopup: false | "editor" | "info";
900
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
901
+ snapLines: readonly import("../snapping").SnapLine[];
902
+ originSnapOffset: {
903
+ x: number;
904
+ y: number;
905
+ } | null;
906
+ objectsSnapModeEnabled: boolean;
907
+ userToFollow: import("../types").UserToFollow | null;
908
+ followedBy: Set<import("../types").SocketId>;
909
+ isCropping: boolean;
910
+ croppingElementId: string | null;
911
+ searchMatches: Readonly<{
912
+ focusedId: string | null;
913
+ matches: readonly import("../types").SearchMatch[];
914
+ }> | null;
915
+ activeLockedId: string | null;
916
+ lockedMultiSelections: {
917
+ [groupId: string]: true;
918
+ };
919
+ };
920
+ } | {
921
+ captureUpdate: "EVENTUALLY";
922
+ appState?: undefined;
923
+ }>;
924
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
925
+ } & {
926
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
927
+ };
928
+ export declare const actionSaveFileToDisk: {
929
+ name: "saveFileToDisk";
930
+ label: string;
931
+ icon: import("react/jsx-runtime").JSX.Element;
932
+ viewMode: true;
933
+ trackEvent: {
934
+ category: "export";
935
+ };
936
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
937
+ captureUpdate: "EVENTUALLY";
938
+ appState: {
939
+ openDialog: null;
940
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
941
+ toast: {
942
+ message: string;
943
+ };
944
+ contextMenu: {
945
+ items: import("../components/ContextMenu").ContextMenuItems;
946
+ top: number;
947
+ left: number;
948
+ } | null;
949
+ showWelcomeScreen: boolean;
950
+ isLoading: boolean;
951
+ errorMessage: import("react").ReactNode;
952
+ activeEmbeddable: {
953
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
954
+ state: "active" | "hover";
955
+ } | null;
956
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
957
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
958
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
959
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
960
+ isBindingEnabled: boolean;
961
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
962
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
963
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
964
+ frameRendering: {
965
+ enabled: boolean;
966
+ name: boolean;
967
+ outline: boolean;
968
+ clip: boolean;
969
+ };
970
+ editingFrame: string | null;
971
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
972
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
973
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
974
+ activeTool: {
975
+ lastActiveTool: import("../types").ActiveTool | null;
976
+ locked: boolean;
977
+ fromSelection: boolean;
978
+ } & import("../types").ActiveTool;
979
+ penMode: boolean;
980
+ penDetected: boolean;
981
+ exportBackground: boolean;
982
+ exportEmbedScene: boolean;
983
+ exportWithDarkMode: boolean;
984
+ exportScale: number;
985
+ currentItemStrokeColor: string;
986
+ currentItemBackgroundColor: string;
987
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
988
+ currentItemStrokeWidth: number;
989
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
990
+ currentItemRoughness: number;
991
+ currentItemOpacity: number;
992
+ currentItemFontFamily: number;
993
+ currentItemFontSize: number;
994
+ currentItemTextAlign: string;
995
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
996
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
997
+ currentHoveredFontFamily: number | null;
998
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
999
+ currentItemArrowType: "round" | "sharp" | "elbow";
1000
+ viewBackgroundColor: string;
1001
+ scrollX: number;
1002
+ scrollY: number;
1003
+ cursorButton: "up" | "down";
1004
+ scrolledOutside: boolean;
1005
+ name: string | null;
1006
+ isResizing: boolean;
1007
+ isRotating: boolean;
1008
+ zoom: Readonly<{
1009
+ value: import("../types").NormalizedZoomValue;
1010
+ }>;
1011
+ openMenu: "canvas" | "shape" | null;
1012
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1013
+ openSidebar: {
1014
+ name: string;
1015
+ tab?: string | undefined;
1016
+ } | null;
1017
+ defaultSidebarDockedPreference: boolean;
1018
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1019
+ selectedElementIds: Readonly<{
1020
+ [id: string]: true;
1021
+ }>;
1022
+ hoveredElementIds: Readonly<{
1023
+ [id: string]: true;
1024
+ }>;
1025
+ previousSelectedElementIds: {
1026
+ [id: string]: true;
1027
+ };
1028
+ selectedElementsAreBeingDragged: boolean;
1029
+ shouldCacheIgnoreZoom: boolean;
1030
+ zenModeEnabled: boolean;
1031
+ theme: Theme;
1032
+ gridSize: number;
1033
+ gridStep: number;
1034
+ gridModeEnabled: boolean;
1035
+ viewModeEnabled: boolean;
1036
+ selectedGroupIds: {
1037
+ [groupId: string]: boolean;
1038
+ };
1039
+ editingGroupId: string | null;
1040
+ width: number;
1041
+ height: number;
1042
+ offsetTop: number;
1043
+ offsetLeft: number;
1044
+ collaborators: Map<import("../types").SocketId, Readonly<{
1045
+ pointer?: import("../types").CollaboratorPointer | undefined;
1046
+ button?: "up" | "down" | undefined;
1047
+ selectedElementIds?: Readonly<{
1048
+ [id: string]: true;
1049
+ }> | undefined;
1050
+ username?: string | null | undefined;
1051
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1052
+ color?: {
1053
+ background: string;
1054
+ stroke: string;
1055
+ } | undefined;
1056
+ avatarUrl?: string | undefined;
1057
+ id?: string | undefined;
1058
+ socketId?: import("../types").SocketId | undefined;
1059
+ isCurrentUser?: boolean | undefined;
1060
+ isInCall?: boolean | undefined;
1061
+ isSpeaking?: boolean | undefined;
1062
+ isMuted?: boolean | undefined;
1063
+ }>>;
1064
+ stats: {
1065
+ open: boolean;
1066
+ panels: number;
1067
+ };
1068
+ currentChartType: import("@excalidraw/element/types").ChartType;
1069
+ pasteDialog: {
1070
+ shown: false;
1071
+ data: null;
1072
+ } | {
1073
+ shown: true;
1074
+ data: import("../charts").Spreadsheet;
1075
+ };
1076
+ showHyperlinkPopup: false | "editor" | "info";
1077
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1078
+ snapLines: readonly import("../snapping").SnapLine[];
1079
+ originSnapOffset: {
1080
+ x: number;
1081
+ y: number;
1082
+ } | null;
1083
+ objectsSnapModeEnabled: boolean;
1084
+ userToFollow: import("../types").UserToFollow | null;
1085
+ followedBy: Set<import("../types").SocketId>;
1086
+ isCropping: boolean;
1087
+ croppingElementId: string | null;
1088
+ searchMatches: Readonly<{
1089
+ focusedId: string | null;
1090
+ matches: readonly import("../types").SearchMatch[];
1091
+ }> | null;
1092
+ activeLockedId: string | null;
1093
+ lockedMultiSelections: {
1094
+ [groupId: string]: true;
1095
+ };
1096
+ };
1097
+ } | {
1098
+ captureUpdate: "EVENTUALLY";
1099
+ appState?: undefined;
1100
+ }>;
1101
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1102
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1103
+ } & {
1104
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1105
+ };
1106
+ export declare const actionLoadScene: {
1107
+ name: "loadScene";
1108
+ label: string;
1109
+ trackEvent: {
1110
+ category: "export";
1111
+ };
1112
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1113
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1114
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1115
+ appState: {
1116
+ viewBackgroundColor: string;
1117
+ frameRendering: {
1118
+ enabled: boolean;
1119
+ name: boolean;
1120
+ outline: boolean;
1121
+ clip: boolean;
1122
+ };
1123
+ name: string | null;
1124
+ zoom: Readonly<{
1125
+ value: import("../types").NormalizedZoomValue;
1126
+ }>;
1127
+ scrollX: number;
1128
+ scrollY: number;
1129
+ viewModeEnabled: boolean;
1130
+ openDialog: {
1131
+ name: "imageExport" | "help" | "jsonExport";
1132
+ } | {
1133
+ name: "ttd";
1134
+ tab: "mermaid" | "text-to-diagram";
1135
+ } | {
1136
+ name: "commandPalette";
1137
+ } | {
1138
+ name: "elementLinkSelector";
1139
+ sourceElementId: string;
1140
+ } | null;
1141
+ editingGroupId: string | null;
1142
+ selectedElementIds: Readonly<{
1143
+ [id: string]: true;
1144
+ }>;
1145
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1146
+ theme: Theme;
1147
+ activeEmbeddable: {
1148
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1149
+ state: "active" | "hover";
1150
+ } | null;
1151
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1152
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1153
+ selectedGroupIds: {
1154
+ [groupId: string]: boolean;
1155
+ };
1156
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1157
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1158
+ isBindingEnabled: boolean;
1159
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1160
+ isRotating: boolean;
1161
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1162
+ collaborators: Map<import("../types").SocketId, Readonly<{
1163
+ pointer?: import("../types").CollaboratorPointer | undefined;
1164
+ button?: "up" | "down" | undefined;
1165
+ selectedElementIds?: Readonly<{
1166
+ [id: string]: true;
1167
+ }> | undefined;
1168
+ username?: string | null | undefined;
1169
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1170
+ color?: {
1171
+ background: string;
1172
+ stroke: string;
1173
+ } | undefined;
1174
+ avatarUrl?: string | undefined;
1175
+ id?: string | undefined;
1176
+ socketId?: import("../types").SocketId | undefined;
1177
+ isCurrentUser?: boolean | undefined;
1178
+ isInCall?: boolean | undefined;
1179
+ isSpeaking?: boolean | undefined;
1180
+ isMuted?: boolean | undefined;
1181
+ }>>;
1182
+ snapLines: readonly import("../snapping").SnapLine[];
1183
+ zenModeEnabled: boolean;
1184
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1185
+ isCropping: boolean;
1186
+ croppingElementId: string | null;
1187
+ searchMatches: Readonly<{
1188
+ focusedId: string | null;
1189
+ matches: readonly import("../types").SearchMatch[];
1190
+ }> | null;
1191
+ activeLockedId: string | null;
1192
+ contextMenu: {
1193
+ items: import("../components/ContextMenu").ContextMenuItems;
1194
+ top: number;
1195
+ left: number;
1196
+ } | null;
1197
+ showWelcomeScreen: boolean;
1198
+ isLoading: boolean;
1199
+ errorMessage: import("react").ReactNode;
1200
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1201
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1202
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1203
+ editingFrame: string | null;
1204
+ activeTool: {
1205
+ lastActiveTool: import("../types").ActiveTool | null;
1206
+ locked: boolean;
1207
+ fromSelection: boolean;
1208
+ } & import("../types").ActiveTool;
1209
+ penMode: boolean;
1210
+ penDetected: boolean;
1211
+ exportBackground: boolean;
1212
+ exportEmbedScene: boolean;
1213
+ exportWithDarkMode: boolean;
1214
+ exportScale: number;
1215
+ currentItemStrokeColor: string;
1216
+ currentItemBackgroundColor: string;
1217
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1218
+ currentItemStrokeWidth: number;
1219
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1220
+ currentItemRoughness: number;
1221
+ currentItemOpacity: number;
1222
+ currentItemFontFamily: number;
1223
+ currentItemFontSize: number;
1224
+ currentItemTextAlign: string;
1225
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1226
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1227
+ currentHoveredFontFamily: number | null;
1228
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1229
+ currentItemArrowType: "round" | "sharp" | "elbow";
1230
+ cursorButton: "up" | "down";
1231
+ scrolledOutside: boolean;
1232
+ isResizing: boolean;
1233
+ openMenu: "canvas" | "shape" | null;
1234
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1235
+ openSidebar: {
1236
+ name: string;
1237
+ tab?: string | undefined;
1238
+ } | null;
1239
+ defaultSidebarDockedPreference: boolean;
1240
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1241
+ hoveredElementIds: Readonly<{
1242
+ [id: string]: true;
1243
+ }>;
1244
+ previousSelectedElementIds: {
1245
+ [id: string]: true;
1246
+ };
1247
+ selectedElementsAreBeingDragged: boolean;
1248
+ shouldCacheIgnoreZoom: boolean;
1249
+ toast: {
1250
+ message: string;
1251
+ closable?: boolean | undefined;
1252
+ duration?: number | undefined;
1253
+ } | null;
1254
+ gridSize: number;
1255
+ gridStep: number;
1256
+ gridModeEnabled: boolean;
1257
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1258
+ stats: {
1259
+ open: boolean;
1260
+ panels: number;
1261
+ };
1262
+ currentChartType: import("@excalidraw/element/types").ChartType;
1263
+ pasteDialog: {
1264
+ shown: false;
1265
+ data: null;
1266
+ } | {
1267
+ shown: true;
1268
+ data: import("../charts").Spreadsheet;
1269
+ };
1270
+ showHyperlinkPopup: false | "editor" | "info";
1271
+ originSnapOffset: {
1272
+ x: number;
1273
+ y: number;
1274
+ } | null;
1275
+ objectsSnapModeEnabled: boolean;
1276
+ userToFollow: import("../types").UserToFollow | null;
1277
+ followedBy: Set<import("../types").SocketId>;
1278
+ lockedMultiSelections: {
1279
+ [groupId: string]: true;
1280
+ };
1281
+ };
1282
+ files: import("../types").BinaryFiles;
1283
+ captureUpdate: "IMMEDIATELY";
1284
+ } | {
1285
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1286
+ appState: {
1287
+ errorMessage: any;
1288
+ contextMenu: {
1289
+ items: import("../components/ContextMenu").ContextMenuItems;
1290
+ top: number;
1291
+ left: number;
1292
+ } | null;
1293
+ showWelcomeScreen: boolean;
1294
+ isLoading: boolean;
1295
+ activeEmbeddable: {
1296
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1297
+ state: "active" | "hover";
1298
+ } | null;
1299
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1300
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1301
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1302
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1303
+ isBindingEnabled: boolean;
1304
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1305
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1306
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1307
+ frameRendering: {
1308
+ enabled: boolean;
1309
+ name: boolean;
1310
+ outline: boolean;
1311
+ clip: boolean;
1312
+ };
1313
+ editingFrame: string | null;
1314
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1315
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1316
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1317
+ activeTool: {
1318
+ lastActiveTool: import("../types").ActiveTool | null;
1319
+ locked: boolean;
1320
+ fromSelection: boolean;
1321
+ } & import("../types").ActiveTool;
1322
+ penMode: boolean;
1323
+ penDetected: boolean;
1324
+ exportBackground: boolean;
1325
+ exportEmbedScene: boolean;
1326
+ exportWithDarkMode: boolean;
1327
+ exportScale: number;
1328
+ currentItemStrokeColor: string;
1329
+ currentItemBackgroundColor: string;
1330
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1331
+ currentItemStrokeWidth: number;
1332
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1333
+ currentItemRoughness: number;
1334
+ currentItemOpacity: number;
1335
+ currentItemFontFamily: number;
1336
+ currentItemFontSize: number;
1337
+ currentItemTextAlign: string;
1338
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1339
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1340
+ currentHoveredFontFamily: number | null;
1341
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1342
+ currentItemArrowType: "round" | "sharp" | "elbow";
1343
+ viewBackgroundColor: string;
1344
+ scrollX: number;
1345
+ scrollY: number;
1346
+ cursorButton: "up" | "down";
1347
+ scrolledOutside: boolean;
1348
+ name: string | null;
1349
+ isResizing: boolean;
1350
+ isRotating: boolean;
1351
+ zoom: Readonly<{
1352
+ value: import("../types").NormalizedZoomValue;
1353
+ }>;
1354
+ openMenu: "canvas" | "shape" | null;
1355
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1356
+ openSidebar: {
1357
+ name: string;
1358
+ tab?: string | undefined;
1359
+ } | null;
1360
+ openDialog: {
1361
+ name: "imageExport" | "help" | "jsonExport";
1362
+ } | {
1363
+ name: "ttd";
1364
+ tab: "mermaid" | "text-to-diagram";
1365
+ } | {
1366
+ name: "commandPalette";
1367
+ } | {
1368
+ name: "elementLinkSelector";
1369
+ sourceElementId: string;
1370
+ } | null;
1371
+ defaultSidebarDockedPreference: boolean;
1372
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1373
+ selectedElementIds: Readonly<{
1374
+ [id: string]: true;
1375
+ }>;
1376
+ hoveredElementIds: Readonly<{
1377
+ [id: string]: true;
1378
+ }>;
1379
+ previousSelectedElementIds: {
1380
+ [id: string]: true;
1381
+ };
1382
+ selectedElementsAreBeingDragged: boolean;
1383
+ shouldCacheIgnoreZoom: boolean;
1384
+ toast: {
1385
+ message: string;
1386
+ closable?: boolean | undefined;
1387
+ duration?: number | undefined;
1388
+ } | null;
1389
+ zenModeEnabled: boolean;
1390
+ theme: Theme;
1391
+ gridSize: number;
1392
+ gridStep: number;
1393
+ gridModeEnabled: boolean;
1394
+ viewModeEnabled: boolean;
1395
+ selectedGroupIds: {
1396
+ [groupId: string]: boolean;
1397
+ };
1398
+ editingGroupId: string | null;
1399
+ width: number;
1400
+ height: number;
1401
+ offsetTop: number;
1402
+ offsetLeft: number;
1403
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1404
+ collaborators: Map<import("../types").SocketId, Readonly<{
1405
+ pointer?: import("../types").CollaboratorPointer | undefined;
1406
+ button?: "up" | "down" | undefined;
1407
+ selectedElementIds?: Readonly<{
1408
+ [id: string]: true;
1409
+ }> | undefined;
1410
+ username?: string | null | undefined;
1411
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1412
+ color?: {
1413
+ background: string;
1414
+ stroke: string;
1415
+ } | undefined;
1416
+ avatarUrl?: string | undefined;
1417
+ id?: string | undefined;
1418
+ socketId?: import("../types").SocketId | undefined;
1419
+ isCurrentUser?: boolean | undefined;
1420
+ isInCall?: boolean | undefined;
1421
+ isSpeaking?: boolean | undefined;
1422
+ isMuted?: boolean | undefined;
1423
+ }>>;
1424
+ stats: {
1425
+ open: boolean;
1426
+ panels: number;
1427
+ };
1428
+ currentChartType: import("@excalidraw/element/types").ChartType;
1429
+ pasteDialog: {
1430
+ shown: false;
1431
+ data: null;
1432
+ } | {
1433
+ shown: true;
1434
+ data: import("../charts").Spreadsheet;
1435
+ };
1436
+ showHyperlinkPopup: false | "editor" | "info";
1437
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1438
+ snapLines: readonly import("../snapping").SnapLine[];
1439
+ originSnapOffset: {
1440
+ x: number;
1441
+ y: number;
1442
+ } | null;
1443
+ objectsSnapModeEnabled: boolean;
1444
+ userToFollow: import("../types").UserToFollow | null;
1445
+ followedBy: Set<import("../types").SocketId>;
1446
+ isCropping: boolean;
1447
+ croppingElementId: string | null;
1448
+ searchMatches: Readonly<{
1449
+ focusedId: string | null;
1450
+ matches: readonly import("../types").SearchMatch[];
1451
+ }> | null;
1452
+ activeLockedId: string | null;
1453
+ lockedMultiSelections: {
1454
+ [groupId: string]: true;
1455
+ };
1456
+ };
1457
+ files: import("../types").BinaryFiles;
1458
+ captureUpdate: "EVENTUALLY";
1459
+ }>;
1460
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1461
+ } & {
1462
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1463
+ };
1464
+ export declare const actionExportWithDarkMode: {
1465
+ name: "exportWithDarkMode";
1466
+ label: string;
1467
+ trackEvent: {
1468
+ category: "export";
1469
+ action: string;
1470
+ };
1471
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1472
+ appState: {
1473
+ exportWithDarkMode: any;
1474
+ contextMenu: {
1475
+ items: import("../components/ContextMenu").ContextMenuItems;
1476
+ top: number;
1477
+ left: number;
1478
+ } | null;
1479
+ showWelcomeScreen: boolean;
1480
+ isLoading: boolean;
1481
+ errorMessage: import("react").ReactNode;
1482
+ activeEmbeddable: {
1483
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1484
+ state: "active" | "hover";
1485
+ } | null;
1486
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1487
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1488
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1489
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1490
+ isBindingEnabled: boolean;
1491
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1492
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1493
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1494
+ frameRendering: {
1495
+ enabled: boolean;
1496
+ name: boolean;
1497
+ outline: boolean;
1498
+ clip: boolean;
1499
+ };
1500
+ editingFrame: string | null;
1501
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1502
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1503
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1504
+ activeTool: {
1505
+ lastActiveTool: import("../types").ActiveTool | null;
1506
+ locked: boolean;
1507
+ fromSelection: boolean;
1508
+ } & import("../types").ActiveTool;
1509
+ penMode: boolean;
1510
+ penDetected: boolean;
1511
+ exportBackground: boolean;
1512
+ exportEmbedScene: boolean;
1513
+ exportScale: number;
1514
+ currentItemStrokeColor: string;
1515
+ currentItemBackgroundColor: string;
1516
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1517
+ currentItemStrokeWidth: number;
1518
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1519
+ currentItemRoughness: number;
1520
+ currentItemOpacity: number;
1521
+ currentItemFontFamily: number;
1522
+ currentItemFontSize: number;
1523
+ currentItemTextAlign: string;
1524
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1525
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1526
+ currentHoveredFontFamily: number | null;
1527
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1528
+ currentItemArrowType: "round" | "sharp" | "elbow";
1529
+ viewBackgroundColor: string;
1530
+ scrollX: number;
1531
+ scrollY: number;
1532
+ cursorButton: "up" | "down";
1533
+ scrolledOutside: boolean;
1534
+ name: string | null;
1535
+ isResizing: boolean;
1536
+ isRotating: boolean;
1537
+ zoom: Readonly<{
1538
+ value: import("../types").NormalizedZoomValue;
1539
+ }>;
1540
+ openMenu: "canvas" | "shape" | null;
1541
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1542
+ openSidebar: {
1543
+ name: string;
1544
+ tab?: string | undefined;
1545
+ } | null;
1546
+ openDialog: {
1547
+ name: "imageExport" | "help" | "jsonExport";
1548
+ } | {
1549
+ name: "ttd";
1550
+ tab: "mermaid" | "text-to-diagram";
1551
+ } | {
1552
+ name: "commandPalette";
1553
+ } | {
1554
+ name: "elementLinkSelector";
1555
+ sourceElementId: string;
1556
+ } | null;
1557
+ defaultSidebarDockedPreference: boolean;
1558
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1559
+ selectedElementIds: Readonly<{
1560
+ [id: string]: true;
1561
+ }>;
1562
+ hoveredElementIds: Readonly<{
1563
+ [id: string]: true;
1564
+ }>;
1565
+ previousSelectedElementIds: {
1566
+ [id: string]: true;
1567
+ };
1568
+ selectedElementsAreBeingDragged: boolean;
1569
+ shouldCacheIgnoreZoom: boolean;
1570
+ toast: {
1571
+ message: string;
1572
+ closable?: boolean | undefined;
1573
+ duration?: number | undefined;
1574
+ } | null;
1575
+ zenModeEnabled: boolean;
1576
+ theme: Theme;
1577
+ gridSize: number;
1578
+ gridStep: number;
1579
+ gridModeEnabled: boolean;
1580
+ viewModeEnabled: boolean;
1581
+ selectedGroupIds: {
1582
+ [groupId: string]: boolean;
1583
+ };
1584
+ editingGroupId: string | null;
1585
+ width: number;
1586
+ height: number;
1587
+ offsetTop: number;
1588
+ offsetLeft: number;
1589
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1590
+ collaborators: Map<import("../types").SocketId, Readonly<{
1591
+ pointer?: import("../types").CollaboratorPointer | undefined;
1592
+ button?: "up" | "down" | undefined;
1593
+ selectedElementIds?: Readonly<{
1594
+ [id: string]: true;
1595
+ }> | undefined;
1596
+ username?: string | null | undefined;
1597
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1598
+ color?: {
1599
+ background: string;
1600
+ stroke: string;
1601
+ } | undefined;
1602
+ avatarUrl?: string | undefined;
1603
+ id?: string | undefined;
1604
+ socketId?: import("../types").SocketId | undefined;
1605
+ isCurrentUser?: boolean | undefined;
1606
+ isInCall?: boolean | undefined;
1607
+ isSpeaking?: boolean | undefined;
1608
+ isMuted?: boolean | undefined;
1609
+ }>>;
1610
+ stats: {
1611
+ open: boolean;
1612
+ panels: number;
1613
+ };
1614
+ currentChartType: import("@excalidraw/element/types").ChartType;
1615
+ pasteDialog: {
1616
+ shown: false;
1617
+ data: null;
1618
+ } | {
1619
+ shown: true;
1620
+ data: import("../charts").Spreadsheet;
1621
+ };
1622
+ showHyperlinkPopup: false | "editor" | "info";
1623
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1624
+ snapLines: readonly import("../snapping").SnapLine[];
1625
+ originSnapOffset: {
1626
+ x: number;
1627
+ y: number;
1628
+ } | null;
1629
+ objectsSnapModeEnabled: boolean;
1630
+ userToFollow: import("../types").UserToFollow | null;
1631
+ followedBy: Set<import("../types").SocketId>;
1632
+ isCropping: boolean;
1633
+ croppingElementId: string | null;
1634
+ searchMatches: Readonly<{
1635
+ focusedId: string | null;
1636
+ matches: readonly import("../types").SearchMatch[];
1637
+ }> | null;
1638
+ activeLockedId: string | null;
1639
+ lockedMultiSelections: {
1640
+ [groupId: string]: true;
1641
+ };
1642
+ };
1643
+ captureUpdate: "EVENTUALLY";
1644
+ };
1645
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1646
+ } & {
1647
+ keyTest?: undefined;
1648
+ };