@zsviczian/excalidraw 0.18.0-14 → 0.18.0-15

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