@zsviczian/excalidraw 0.18.0-30 → 0.18.0-30-printFrame-test-1

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