@zsviczian/excalidraw 0.18.0-18 → 0.18.0-19

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