@excalidraw/common 0.18.0-91c7748 → 0.18.0-9ba0f5d

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