@excalidraw/element 0.18.0-0fc927cb4

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