@mog-sdk/spreadsheet-contracts 0.1.12

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 (701) hide show
  1. package/dist/accessibility/index.d.ts +9 -0
  2. package/dist/accessibility/index.d.ts.map +1 -0
  3. package/dist/accessibility/types.d.ts +75 -0
  4. package/dist/accessibility/types.d.ts.map +1 -0
  5. package/dist/actions/comments.d.ts +31 -0
  6. package/dist/actions/comments.d.ts.map +1 -0
  7. package/dist/actions/index.d.ts +22 -0
  8. package/dist/actions/index.d.ts.map +1 -0
  9. package/dist/actions/types.d.ts +448 -0
  10. package/dist/actions/types.d.ts.map +1 -0
  11. package/dist/actors/chart.d.ts +88 -0
  12. package/dist/actors/chart.d.ts.map +1 -0
  13. package/dist/actors/clipboard.d.ts +243 -0
  14. package/dist/actors/clipboard.d.ts.map +1 -0
  15. package/dist/actors/commands.d.ts +1343 -0
  16. package/dist/actors/commands.d.ts.map +1 -0
  17. package/dist/actors/comment.d.ts +84 -0
  18. package/dist/actors/comment.d.ts.map +1 -0
  19. package/dist/actors/draw-border.d.ts +89 -0
  20. package/dist/actors/draw-border.d.ts.map +1 -0
  21. package/dist/actors/editor.d.ts +161 -0
  22. package/dist/actors/editor.d.ts.map +1 -0
  23. package/dist/actors/find-replace.d.ts +88 -0
  24. package/dist/actors/find-replace.d.ts.map +1 -0
  25. package/dist/actors/focus.d.ts +91 -0
  26. package/dist/actors/focus.d.ts.map +1 -0
  27. package/dist/actors/index.d.ts +88 -0
  28. package/dist/actors/index.d.ts.map +1 -0
  29. package/dist/actors/input.d.ts +98 -0
  30. package/dist/actors/input.d.ts.map +1 -0
  31. package/dist/actors/object-interaction.d.ts +163 -0
  32. package/dist/actors/object-interaction.d.ts.map +1 -0
  33. package/dist/actors/object.d.ts +124 -0
  34. package/dist/actors/object.d.ts.map +1 -0
  35. package/dist/actors/page-break.d.ts +64 -0
  36. package/dist/actors/page-break.d.ts.map +1 -0
  37. package/dist/actors/pane-focus.d.ts +56 -0
  38. package/dist/actors/pane-focus.d.ts.map +1 -0
  39. package/dist/actors/renderer.d.ts +197 -0
  40. package/dist/actors/renderer.d.ts.map +1 -0
  41. package/dist/actors/selection.d.ts +170 -0
  42. package/dist/actors/selection.d.ts.map +1 -0
  43. package/dist/actors/slicer.d.ts +175 -0
  44. package/dist/actors/slicer.d.ts.map +1 -0
  45. package/dist/actors/smartart.d.ts +48 -0
  46. package/dist/actors/smartart.d.ts.map +1 -0
  47. package/dist/api/index.d.ts +19 -0
  48. package/dist/api/index.d.ts.map +1 -0
  49. package/dist/api/mutation-receipt.d.ts +26 -0
  50. package/dist/api/mutation-receipt.d.ts.map +1 -0
  51. package/dist/api/types.d.ts +1542 -0
  52. package/dist/api/types.d.ts.map +1 -0
  53. package/dist/api/workbook/history.d.ts +43 -0
  54. package/dist/api/workbook/history.d.ts.map +1 -0
  55. package/dist/api/workbook/index.d.ts +17 -0
  56. package/dist/api/workbook/index.d.ts.map +1 -0
  57. package/dist/api/workbook/names.d.ts +104 -0
  58. package/dist/api/workbook/names.d.ts.map +1 -0
  59. package/dist/api/workbook/notifications.d.ts +35 -0
  60. package/dist/api/workbook/notifications.d.ts.map +1 -0
  61. package/dist/api/workbook/protection.d.ts +14 -0
  62. package/dist/api/workbook/protection.d.ts.map +1 -0
  63. package/dist/api/workbook/scenarios.d.ts +45 -0
  64. package/dist/api/workbook/scenarios.d.ts.map +1 -0
  65. package/dist/api/workbook/sheets.d.ts +74 -0
  66. package/dist/api/workbook/sheets.d.ts.map +1 -0
  67. package/dist/api/workbook/slicers.d.ts +63 -0
  68. package/dist/api/workbook/slicers.d.ts.map +1 -0
  69. package/dist/api/workbook/styles.d.ts +19 -0
  70. package/dist/api/workbook/styles.d.ts.map +1 -0
  71. package/dist/api/workbook/theme.d.ts +38 -0
  72. package/dist/api/workbook/theme.d.ts.map +1 -0
  73. package/dist/api/workbook/viewport.d.ts +85 -0
  74. package/dist/api/workbook/viewport.d.ts.map +1 -0
  75. package/dist/api/workbook.d.ts +279 -0
  76. package/dist/api/workbook.d.ts.map +1 -0
  77. package/dist/api/worksheet/bindings.d.ts +66 -0
  78. package/dist/api/worksheet/bindings.d.ts.map +1 -0
  79. package/dist/api/worksheet/changes.d.ts +60 -0
  80. package/dist/api/worksheet/changes.d.ts.map +1 -0
  81. package/dist/api/worksheet/charts.d.ts +83 -0
  82. package/dist/api/worksheet/charts.d.ts.map +1 -0
  83. package/dist/api/worksheet/collections/connector-collection.d.ts +7 -0
  84. package/dist/api/worksheet/collections/connector-collection.d.ts.map +1 -0
  85. package/dist/api/worksheet/collections/drawing-collection.d.ts +9 -0
  86. package/dist/api/worksheet/collections/drawing-collection.d.ts.map +1 -0
  87. package/dist/api/worksheet/collections/equation-collection.d.ts +8 -0
  88. package/dist/api/worksheet/collections/equation-collection.d.ts.map +1 -0
  89. package/dist/api/worksheet/collections/index.d.ts +12 -0
  90. package/dist/api/worksheet/collections/index.d.ts.map +1 -0
  91. package/dist/api/worksheet/collections/object-collection.d.ts +45 -0
  92. package/dist/api/worksheet/collections/object-collection.d.ts.map +1 -0
  93. package/dist/api/worksheet/collections/picture-collection.d.ts +8 -0
  94. package/dist/api/worksheet/collections/picture-collection.d.ts.map +1 -0
  95. package/dist/api/worksheet/collections/shape-collection.d.ts +8 -0
  96. package/dist/api/worksheet/collections/shape-collection.d.ts.map +1 -0
  97. package/dist/api/worksheet/collections/textbox-collection.d.ts +8 -0
  98. package/dist/api/worksheet/collections/textbox-collection.d.ts.map +1 -0
  99. package/dist/api/worksheet/collections/wordart-collection.d.ts +8 -0
  100. package/dist/api/worksheet/collections/wordart-collection.d.ts.map +1 -0
  101. package/dist/api/worksheet/comments.d.ts +143 -0
  102. package/dist/api/worksheet/comments.d.ts.map +1 -0
  103. package/dist/api/worksheet/conditional-formats.d.ts +101 -0
  104. package/dist/api/worksheet/conditional-formats.d.ts.map +1 -0
  105. package/dist/api/worksheet/filters.d.ts +141 -0
  106. package/dist/api/worksheet/filters.d.ts.map +1 -0
  107. package/dist/api/worksheet/form-controls.d.ts +22 -0
  108. package/dist/api/worksheet/form-controls.d.ts.map +1 -0
  109. package/dist/api/worksheet/format-mappings.d.ts +50 -0
  110. package/dist/api/worksheet/format-mappings.d.ts.map +1 -0
  111. package/dist/api/worksheet/formats.d.ts +136 -0
  112. package/dist/api/worksheet/formats.d.ts.map +1 -0
  113. package/dist/api/worksheet/handles/chart-handle.d.ts +11 -0
  114. package/dist/api/worksheet/handles/chart-handle.d.ts.map +1 -0
  115. package/dist/api/worksheet/handles/connector-handle.d.ts +9 -0
  116. package/dist/api/worksheet/handles/connector-handle.d.ts.map +1 -0
  117. package/dist/api/worksheet/handles/drawing-handle.d.ts +14 -0
  118. package/dist/api/worksheet/handles/drawing-handle.d.ts.map +1 -0
  119. package/dist/api/worksheet/handles/equation-handle.d.ts +9 -0
  120. package/dist/api/worksheet/handles/equation-handle.d.ts.map +1 -0
  121. package/dist/api/worksheet/handles/floating-object-handle.d.ts +75 -0
  122. package/dist/api/worksheet/handles/floating-object-handle.d.ts.map +1 -0
  123. package/dist/api/worksheet/handles/index.d.ts +16 -0
  124. package/dist/api/worksheet/handles/index.d.ts.map +1 -0
  125. package/dist/api/worksheet/handles/ole-object-handle.d.ts +10 -0
  126. package/dist/api/worksheet/handles/ole-object-handle.d.ts.map +1 -0
  127. package/dist/api/worksheet/handles/picture-handle.d.ts +9 -0
  128. package/dist/api/worksheet/handles/picture-handle.d.ts.map +1 -0
  129. package/dist/api/worksheet/handles/shape-handle.d.ts +11 -0
  130. package/dist/api/worksheet/handles/shape-handle.d.ts.map +1 -0
  131. package/dist/api/worksheet/handles/slicer-handle.d.ts +13 -0
  132. package/dist/api/worksheet/handles/slicer-handle.d.ts.map +1 -0
  133. package/dist/api/worksheet/handles/smartart-handle.d.ts +11 -0
  134. package/dist/api/worksheet/handles/smartart-handle.d.ts.map +1 -0
  135. package/dist/api/worksheet/handles/textbox-handle.d.ts +9 -0
  136. package/dist/api/worksheet/handles/textbox-handle.d.ts.map +1 -0
  137. package/dist/api/worksheet/handles/wordart-handle.d.ts +10 -0
  138. package/dist/api/worksheet/handles/wordart-handle.d.ts.map +1 -0
  139. package/dist/api/worksheet/hyperlinks.d.ts +52 -0
  140. package/dist/api/worksheet/hyperlinks.d.ts.map +1 -0
  141. package/dist/api/worksheet/index.d.ts +35 -0
  142. package/dist/api/worksheet/index.d.ts.map +1 -0
  143. package/dist/api/worksheet/internal.d.ts +105 -0
  144. package/dist/api/worksheet/internal.d.ts.map +1 -0
  145. package/dist/api/worksheet/layout.d.ts +150 -0
  146. package/dist/api/worksheet/layout.d.ts.map +1 -0
  147. package/dist/api/worksheet/names.d.ts +52 -0
  148. package/dist/api/worksheet/names.d.ts.map +1 -0
  149. package/dist/api/worksheet/objects.d.ts +124 -0
  150. package/dist/api/worksheet/objects.d.ts.map +1 -0
  151. package/dist/api/worksheet/outline.d.ts +101 -0
  152. package/dist/api/worksheet/outline.d.ts.map +1 -0
  153. package/dist/api/worksheet/pivots.d.ts +257 -0
  154. package/dist/api/worksheet/pivots.d.ts.map +1 -0
  155. package/dist/api/worksheet/print.d.ts +108 -0
  156. package/dist/api/worksheet/print.d.ts.map +1 -0
  157. package/dist/api/worksheet/protection.d.ts +73 -0
  158. package/dist/api/worksheet/protection.d.ts.map +1 -0
  159. package/dist/api/worksheet/settings.d.ts +54 -0
  160. package/dist/api/worksheet/settings.d.ts.map +1 -0
  161. package/dist/api/worksheet/slicers.d.ts +101 -0
  162. package/dist/api/worksheet/slicers.d.ts.map +1 -0
  163. package/dist/api/worksheet/smartart.d.ts +49 -0
  164. package/dist/api/worksheet/smartart.d.ts.map +1 -0
  165. package/dist/api/worksheet/sparklines.d.ts +143 -0
  166. package/dist/api/worksheet/sparklines.d.ts.map +1 -0
  167. package/dist/api/worksheet/structure.d.ts +44 -0
  168. package/dist/api/worksheet/structure.d.ts.map +1 -0
  169. package/dist/api/worksheet/tables.d.ts +313 -0
  170. package/dist/api/worksheet/tables.d.ts.map +1 -0
  171. package/dist/api/worksheet/validation.d.ts +101 -0
  172. package/dist/api/worksheet/validation.d.ts.map +1 -0
  173. package/dist/api/worksheet/view.d.ts +91 -0
  174. package/dist/api/worksheet/view.d.ts.map +1 -0
  175. package/dist/api/worksheet.d.ts +370 -0
  176. package/dist/api/worksheet.d.ts.map +1 -0
  177. package/dist/app/index.d.ts +17 -0
  178. package/dist/app/index.d.ts.map +1 -0
  179. package/dist/app/types.d.ts +349 -0
  180. package/dist/app/types.d.ts.map +1 -0
  181. package/dist/apps/api.d.ts +519 -0
  182. package/dist/apps/api.d.ts.map +1 -0
  183. package/dist/apps/bindings.d.ts +72 -0
  184. package/dist/apps/bindings.d.ts.map +1 -0
  185. package/dist/apps/index.d.ts +13 -0
  186. package/dist/apps/index.d.ts.map +1 -0
  187. package/dist/apps/types.d.ts +224 -0
  188. package/dist/apps/types.d.ts.map +1 -0
  189. package/dist/apps/views.d.ts +142 -0
  190. package/dist/apps/views.d.ts.map +1 -0
  191. package/dist/bridges/chart-bridge.d.ts +172 -0
  192. package/dist/bridges/chart-bridge.d.ts.map +1 -0
  193. package/dist/bridges/equation-bridge.d.ts +74 -0
  194. package/dist/bridges/equation-bridge.d.ts.map +1 -0
  195. package/dist/bridges/index.d.ts +25 -0
  196. package/dist/bridges/index.d.ts.map +1 -0
  197. package/dist/bridges/ink-recognition-bridge.d.ts +142 -0
  198. package/dist/bridges/ink-recognition-bridge.d.ts.map +1 -0
  199. package/dist/bridges/locale-bridge.d.ts +93 -0
  200. package/dist/bridges/locale-bridge.d.ts.map +1 -0
  201. package/dist/bridges/pivot-bridge.d.ts +201 -0
  202. package/dist/bridges/pivot-bridge.d.ts.map +1 -0
  203. package/dist/bridges/schema-bridge.d.ts +137 -0
  204. package/dist/bridges/schema-bridge.d.ts.map +1 -0
  205. package/dist/bridges/smartart-bridge.d.ts +217 -0
  206. package/dist/bridges/smartart-bridge.d.ts.map +1 -0
  207. package/dist/bridges/wordart-bridge.d.ts +86 -0
  208. package/dist/bridges/wordart-bridge.d.ts.map +1 -0
  209. package/dist/capabilities/errors.d.ts +16 -0
  210. package/dist/capabilities/errors.d.ts.map +1 -0
  211. package/dist/capabilities/gated-api.d.ts +355 -0
  212. package/dist/capabilities/gated-api.d.ts.map +1 -0
  213. package/dist/capabilities/grants.d.ts +239 -0
  214. package/dist/capabilities/grants.d.ts.map +1 -0
  215. package/dist/capabilities/index.d.ts +24 -0
  216. package/dist/capabilities/index.d.ts.map +1 -0
  217. package/dist/capabilities/manifest.d.ts +128 -0
  218. package/dist/capabilities/manifest.d.ts.map +1 -0
  219. package/dist/capabilities/requester.d.ts +209 -0
  220. package/dist/capabilities/requester.d.ts.map +1 -0
  221. package/dist/capabilities/scope.d.ts +55 -0
  222. package/dist/capabilities/scope.d.ts.map +1 -0
  223. package/dist/capabilities/sensitive.d.ts +279 -0
  224. package/dist/capabilities/sensitive.d.ts.map +1 -0
  225. package/dist/capabilities/taxonomy.d.ts +15 -0
  226. package/dist/capabilities/taxonomy.d.ts.map +1 -0
  227. package/dist/capabilities/types.d.ts +91 -0
  228. package/dist/capabilities/types.d.ts.map +1 -0
  229. package/dist/cells/cell-identity.d.ts +281 -0
  230. package/dist/cells/cell-identity.d.ts.map +1 -0
  231. package/dist/cells/cell-style.d.ts +67 -0
  232. package/dist/cells/cell-style.d.ts.map +1 -0
  233. package/dist/cells/formula-string.d.ts +37 -0
  234. package/dist/cells/formula-string.d.ts.map +1 -0
  235. package/dist/cells/index.d.ts +7 -0
  236. package/dist/cells/index.d.ts.map +1 -0
  237. package/dist/cells/range-ref.d.ts +77 -0
  238. package/dist/cells/range-ref.d.ts.map +1 -0
  239. package/dist/cells/rich-text.d.ts +66 -0
  240. package/dist/cells/rich-text.d.ts.map +1 -0
  241. package/dist/cells/spill.d.ts +121 -0
  242. package/dist/cells/spill.d.ts.map +1 -0
  243. package/dist/conditional-format/index.d.ts +11 -0
  244. package/dist/conditional-format/index.d.ts.map +1 -0
  245. package/dist/conditional-format/presets.d.ts +54 -0
  246. package/dist/conditional-format/presets.d.ts.map +1 -0
  247. package/dist/conditional-format/range-utils.d.ts +11 -0
  248. package/dist/conditional-format/range-utils.d.ts.map +1 -0
  249. package/dist/conditional-format/render-types.d.ts +80 -0
  250. package/dist/conditional-format/render-types.d.ts.map +1 -0
  251. package/dist/connections/api-errors.d.ts +29 -0
  252. package/dist/connections/api-errors.d.ts.map +1 -0
  253. package/dist/connections/api.d.ts +879 -0
  254. package/dist/connections/api.d.ts.map +1 -0
  255. package/dist/connections/database-bridge-types.d.ts +108 -0
  256. package/dist/connections/database-bridge-types.d.ts.map +1 -0
  257. package/dist/connections/index.d.ts +5 -0
  258. package/dist/connections/index.d.ts.map +1 -0
  259. package/dist/connections/power-query.d.ts +1 -0
  260. package/dist/connections/power-query.d.ts.map +1 -0
  261. package/dist/connections/query.d.ts +144 -0
  262. package/dist/connections/query.d.ts.map +1 -0
  263. package/dist/context-menu/index.d.ts +10 -0
  264. package/dist/context-menu/index.d.ts.map +1 -0
  265. package/dist/context-menu/types.d.ts +28 -0
  266. package/dist/context-menu/types.d.ts.map +1 -0
  267. package/dist/core/commands.d.ts +143 -0
  268. package/dist/core/commands.d.ts.map +1 -0
  269. package/dist/core/core.d.ts +943 -0
  270. package/dist/core/core.d.ts.map +1 -0
  271. package/dist/core/disposable.d.ts +30 -0
  272. package/dist/core/disposable.d.ts.map +1 -0
  273. package/dist/core/event-base.d.ts +31 -0
  274. package/dist/core/event-base.d.ts.map +1 -0
  275. package/dist/core/execution.d.ts +79 -0
  276. package/dist/core/execution.d.ts.map +1 -0
  277. package/dist/core/formatted-text.d.ts +8 -0
  278. package/dist/core/formatted-text.d.ts.map +1 -0
  279. package/dist/core/index.d.ts +10 -0
  280. package/dist/core/index.d.ts.map +1 -0
  281. package/dist/core/result.d.ts +23 -0
  282. package/dist/core/result.d.ts.map +1 -0
  283. package/dist/core/schema.d.ts +360 -0
  284. package/dist/core/schema.d.ts.map +1 -0
  285. package/dist/core/testing.d.ts +309 -0
  286. package/dist/core/testing.d.ts.map +1 -0
  287. package/dist/culture/index.d.ts +11 -0
  288. package/dist/culture/index.d.ts.map +1 -0
  289. package/dist/culture/types.d.ts +320 -0
  290. package/dist/culture/types.d.ts.map +1 -0
  291. package/dist/data/charts.d.ts +412 -0
  292. package/dist/data/charts.d.ts.map +1 -0
  293. package/dist/data/conditional-format.d.ts +188 -0
  294. package/dist/data/conditional-format.d.ts.map +1 -0
  295. package/dist/data/filter.d.ts +364 -0
  296. package/dist/data/filter.d.ts.map +1 -0
  297. package/dist/data/grouping.d.ts +170 -0
  298. package/dist/data/grouping.d.ts.map +1 -0
  299. package/dist/data/index.d.ts +12 -0
  300. package/dist/data/index.d.ts.map +1 -0
  301. package/dist/data/named-ranges.d.ts +104 -0
  302. package/dist/data/named-ranges.d.ts.map +1 -0
  303. package/dist/data/pivot.d.ts +68 -0
  304. package/dist/data/pivot.d.ts.map +1 -0
  305. package/dist/data/slicers.d.ts +417 -0
  306. package/dist/data/slicers.d.ts.map +1 -0
  307. package/dist/data/sorting.d.ts +172 -0
  308. package/dist/data/sorting.d.ts.map +1 -0
  309. package/dist/data/sparklines.d.ts +358 -0
  310. package/dist/data/sparklines.d.ts.map +1 -0
  311. package/dist/data/tables.d.ts +333 -0
  312. package/dist/data/tables.d.ts.map +1 -0
  313. package/dist/data/trace-arrows.d.ts +165 -0
  314. package/dist/data/trace-arrows.d.ts.map +1 -0
  315. package/dist/diagnostics/core.d.ts +219 -0
  316. package/dist/diagnostics/core.d.ts.map +1 -0
  317. package/dist/diagnostics/index.d.ts +9 -0
  318. package/dist/diagnostics/index.d.ts.map +1 -0
  319. package/dist/diagnostics/style.d.ts +196 -0
  320. package/dist/diagnostics/style.d.ts.map +1 -0
  321. package/dist/document/comments.d.ts +109 -0
  322. package/dist/document/comments.d.ts.map +1 -0
  323. package/dist/document/document.d.ts +182 -0
  324. package/dist/document/document.d.ts.map +1 -0
  325. package/dist/document/index.d.ts +5 -0
  326. package/dist/document/index.d.ts.map +1 -0
  327. package/dist/document/protection.d.ts +114 -0
  328. package/dist/document/protection.d.ts.map +1 -0
  329. package/dist/document/search.d.ts +202 -0
  330. package/dist/document/search.d.ts.map +1 -0
  331. package/dist/drawing/index.d.ts +8 -0
  332. package/dist/drawing/index.d.ts.map +1 -0
  333. package/dist/drawing/three-d.d.ts +171 -0
  334. package/dist/drawing/three-d.d.ts.map +1 -0
  335. package/dist/editor/drag.d.ts +178 -0
  336. package/dist/editor/drag.d.ts.map +1 -0
  337. package/dist/editor/editor.d.ts +59 -0
  338. package/dist/editor/editor.d.ts.map +1 -0
  339. package/dist/editor/form-controls.d.ts +428 -0
  340. package/dist/editor/form-controls.d.ts.map +1 -0
  341. package/dist/editor/index.d.ts +4 -0
  342. package/dist/editor/index.d.ts.map +1 -0
  343. package/dist/equation/errors.d.ts +19 -0
  344. package/dist/equation/errors.d.ts.map +1 -0
  345. package/dist/equation/index.d.ts +12 -0
  346. package/dist/equation/index.d.ts.map +1 -0
  347. package/dist/equation/omml-ast.d.ts +358 -0
  348. package/dist/equation/omml-ast.d.ts.map +1 -0
  349. package/dist/equation/templates.d.ts +26 -0
  350. package/dist/equation/templates.d.ts.map +1 -0
  351. package/dist/equation/types.d.ts +87 -0
  352. package/dist/equation/types.d.ts.map +1 -0
  353. package/dist/events/canvas-object-events.d.ts +31 -0
  354. package/dist/events/canvas-object-events.d.ts.map +1 -0
  355. package/dist/events/cell-events.d.ts +60 -0
  356. package/dist/events/cell-events.d.ts.map +1 -0
  357. package/dist/events/chart-events.d.ts +61 -0
  358. package/dist/events/chart-events.d.ts.map +1 -0
  359. package/dist/events/comment-events.d.ts +43 -0
  360. package/dist/events/comment-events.d.ts.map +1 -0
  361. package/dist/events/conditional-formatting-events.d.ts +40 -0
  362. package/dist/events/conditional-formatting-events.d.ts.map +1 -0
  363. package/dist/events/data-tools-events.d.ts +29 -0
  364. package/dist/events/data-tools-events.d.ts.map +1 -0
  365. package/dist/events/file-io-events.d.ts +39 -0
  366. package/dist/events/file-io-events.d.ts.map +1 -0
  367. package/dist/events/filter-events.d.ts +43 -0
  368. package/dist/events/filter-events.d.ts.map +1 -0
  369. package/dist/events/floating-object-events.d.ts +158 -0
  370. package/dist/events/floating-object-events.d.ts.map +1 -0
  371. package/dist/events/grouping-events.d.ts +75 -0
  372. package/dist/events/grouping-events.d.ts.map +1 -0
  373. package/dist/events/index.d.ts +129 -0
  374. package/dist/events/index.d.ts.map +1 -0
  375. package/dist/events/ink-collaboration-events.d.ts +57 -0
  376. package/dist/events/ink-collaboration-events.d.ts.map +1 -0
  377. package/dist/events/ink-events.d.ts +33 -0
  378. package/dist/events/ink-events.d.ts.map +1 -0
  379. package/dist/events/ink-recognition-events.d.ts +149 -0
  380. package/dist/events/ink-recognition-events.d.ts.map +1 -0
  381. package/dist/events/ink-stroke-events.d.ts +197 -0
  382. package/dist/events/ink-stroke-events.d.ts.map +1 -0
  383. package/dist/events/merge-events.d.ts +46 -0
  384. package/dist/events/merge-events.d.ts.map +1 -0
  385. package/dist/events/named-range-events.d.ts +24 -0
  386. package/dist/events/named-range-events.d.ts.map +1 -0
  387. package/dist/events/pivot-events.d.ts +47 -0
  388. package/dist/events/pivot-events.d.ts.map +1 -0
  389. package/dist/events/print-events.d.ts +75 -0
  390. package/dist/events/print-events.d.ts.map +1 -0
  391. package/dist/events/recalc-events.d.ts +20 -0
  392. package/dist/events/recalc-events.d.ts.map +1 -0
  393. package/dist/events/scenario-events.d.ts +37 -0
  394. package/dist/events/scenario-events.d.ts.map +1 -0
  395. package/dist/events/selection-events.d.ts +16 -0
  396. package/dist/events/selection-events.d.ts.map +1 -0
  397. package/dist/events/settings-events.d.ts +41 -0
  398. package/dist/events/settings-events.d.ts.map +1 -0
  399. package/dist/events/sheet-events.d.ts +68 -0
  400. package/dist/events/sheet-events.d.ts.map +1 -0
  401. package/dist/events/slicer-events.d.ts +47 -0
  402. package/dist/events/slicer-events.d.ts.map +1 -0
  403. package/dist/events/smartart-events.d.ts +222 -0
  404. package/dist/events/smartart-events.d.ts.map +1 -0
  405. package/dist/events/sparkline-events.d.ts +68 -0
  406. package/dist/events/sparkline-events.d.ts.map +1 -0
  407. package/dist/events/store-events.d.ts +18 -0
  408. package/dist/events/store-events.d.ts.map +1 -0
  409. package/dist/events/structure-events.d.ts +76 -0
  410. package/dist/events/structure-events.d.ts.map +1 -0
  411. package/dist/events/table-events.d.ts +99 -0
  412. package/dist/events/table-events.d.ts.map +1 -0
  413. package/dist/events/validation-events.d.ts +85 -0
  414. package/dist/events/validation-events.d.ts.map +1 -0
  415. package/dist/events/view-events.d.ts +72 -0
  416. package/dist/events/view-events.d.ts.map +1 -0
  417. package/dist/events/wordart-events.d.ts +169 -0
  418. package/dist/events/wordart-events.d.ts.map +1 -0
  419. package/dist/events.d.ts +41 -0
  420. package/dist/events.d.ts.map +1 -0
  421. package/dist/extensions/index.d.ts +9 -0
  422. package/dist/extensions/index.d.ts.map +1 -0
  423. package/dist/extensions/types.d.ts +64 -0
  424. package/dist/extensions/types.d.ts.map +1 -0
  425. package/dist/filesystem/index.d.ts +11 -0
  426. package/dist/filesystem/index.d.ts.map +1 -0
  427. package/dist/filesystem/paths.d.ts +38 -0
  428. package/dist/filesystem/paths.d.ts.map +1 -0
  429. package/dist/filesystem/permissions.d.ts +89 -0
  430. package/dist/filesystem/permissions.d.ts.map +1 -0
  431. package/dist/filesystem/types.d.ts +251 -0
  432. package/dist/filesystem/types.d.ts.map +1 -0
  433. package/dist/fill/custom-lists.d.ts +41 -0
  434. package/dist/fill/custom-lists.d.ts.map +1 -0
  435. package/dist/fill/index.d.ts +11 -0
  436. package/dist/fill/index.d.ts.map +1 -0
  437. package/dist/fill/types.d.ts +102 -0
  438. package/dist/fill/types.d.ts.map +1 -0
  439. package/dist/formatting/format-registry.d.ts +45 -0
  440. package/dist/formatting/format-registry.d.ts.map +1 -0
  441. package/dist/formatting/index.d.ts +9 -0
  442. package/dist/formatting/index.d.ts.map +1 -0
  443. package/dist/formatting/theme.d.ts +108 -0
  444. package/dist/formatting/theme.d.ts.map +1 -0
  445. package/dist/index.d.ts +49 -0
  446. package/dist/index.d.ts.map +1 -0
  447. package/dist/ink/index.d.ts +16 -0
  448. package/dist/ink/index.d.ts.map +1 -0
  449. package/dist/ink/spatial-index.d.ts +113 -0
  450. package/dist/ink/spatial-index.d.ts.map +1 -0
  451. package/dist/ink/types.d.ts +558 -0
  452. package/dist/ink/types.d.ts.map +1 -0
  453. package/dist/kernel/floating-object-manager.d.ts +68 -0
  454. package/dist/kernel/floating-object-manager.d.ts.map +1 -0
  455. package/dist/kernel/index.d.ts +12 -0
  456. package/dist/kernel/index.d.ts.map +1 -0
  457. package/dist/kernel/kernel-context.d.ts +129 -0
  458. package/dist/kernel/kernel-context.d.ts.map +1 -0
  459. package/dist/keyboard/actions.d.ts +328 -0
  460. package/dist/keyboard/actions.d.ts.map +1 -0
  461. package/dist/keyboard/binding-utils.d.ts +112 -0
  462. package/dist/keyboard/binding-utils.d.ts.map +1 -0
  463. package/dist/keyboard/customization.d.ts +121 -0
  464. package/dist/keyboard/customization.d.ts.map +1 -0
  465. package/dist/keyboard/display-utils.d.ts +9 -0
  466. package/dist/keyboard/display-utils.d.ts.map +1 -0
  467. package/dist/keyboard/excel-reference.d.ts +28 -0
  468. package/dist/keyboard/excel-reference.d.ts.map +1 -0
  469. package/dist/keyboard/index.d.ts +16 -0
  470. package/dist/keyboard/index.d.ts.map +1 -0
  471. package/dist/keyboard/input.d.ts +124 -0
  472. package/dist/keyboard/input.d.ts.map +1 -0
  473. package/dist/keyboard/physical-keys.d.ts +79 -0
  474. package/dist/keyboard/physical-keys.d.ts.map +1 -0
  475. package/dist/keyboard/shortcuts/definitions/index.d.ts +10 -0
  476. package/dist/keyboard/shortcuts/definitions/index.d.ts.map +1 -0
  477. package/dist/keyboard/shortcuts/types.d.ts +347 -0
  478. package/dist/keyboard/shortcuts/types.d.ts.map +1 -0
  479. package/dist/machines/index.d.ts +12 -0
  480. package/dist/machines/index.d.ts.map +1 -0
  481. package/dist/machines/snapshots.d.ts +160 -0
  482. package/dist/machines/snapshots.d.ts.map +1 -0
  483. package/dist/machines/types.d.ts +64 -0
  484. package/dist/machines/types.d.ts.map +1 -0
  485. package/dist/number-formats/constants.d.ts +39 -0
  486. package/dist/number-formats/constants.d.ts.map +1 -0
  487. package/dist/number-formats/index.d.ts +14 -0
  488. package/dist/number-formats/index.d.ts.map +1 -0
  489. package/dist/number-formats/locale/index.d.ts +5 -0
  490. package/dist/number-formats/locale/index.d.ts.map +1 -0
  491. package/dist/number-formats/locale/locale-defaults.d.ts +17 -0
  492. package/dist/number-formats/locale/locale-defaults.d.ts.map +1 -0
  493. package/dist/number-formats/registry.d.ts +52 -0
  494. package/dist/number-formats/registry.d.ts.map +1 -0
  495. package/dist/number-formats/types.d.ts +134 -0
  496. package/dist/number-formats/types.d.ts.map +1 -0
  497. package/dist/objects/canvas-object.d.ts +157 -0
  498. package/dist/objects/canvas-object.d.ts.map +1 -0
  499. package/dist/objects/drawing-object.d.ts +144 -0
  500. package/dist/objects/drawing-object.d.ts.map +1 -0
  501. package/dist/objects/floating-objects.d.ts +742 -0
  502. package/dist/objects/floating-objects.d.ts.map +1 -0
  503. package/dist/objects/index.d.ts +5 -0
  504. package/dist/objects/index.d.ts.map +1 -0
  505. package/dist/objects/object-bounds-reader.d.ts +25 -0
  506. package/dist/objects/object-bounds-reader.d.ts.map +1 -0
  507. package/dist/objects/object-mutator.d.ts +30 -0
  508. package/dist/objects/object-mutator.d.ts.map +1 -0
  509. package/dist/performance/index.d.ts +8 -0
  510. package/dist/performance/index.d.ts.map +1 -0
  511. package/dist/performance/profiler-types.d.ts +351 -0
  512. package/dist/performance/profiler-types.d.ts.map +1 -0
  513. package/dist/platform/identity.d.ts +24 -0
  514. package/dist/platform/identity.d.ts.map +1 -0
  515. package/dist/platform/index.d.ts +17 -0
  516. package/dist/platform/index.d.ts.map +1 -0
  517. package/dist/platform/types.d.ts +359 -0
  518. package/dist/platform/types.d.ts.map +1 -0
  519. package/dist/rendering/canvas-bridge-types.d.ts +68 -0
  520. package/dist/rendering/canvas-bridge-types.d.ts.map +1 -0
  521. package/dist/rendering/constants.d.ts +76 -0
  522. package/dist/rendering/constants.d.ts.map +1 -0
  523. package/dist/rendering/coordinates.d.ts +452 -0
  524. package/dist/rendering/coordinates.d.ts.map +1 -0
  525. package/dist/rendering/coordinator-interfaces.d.ts +163 -0
  526. package/dist/rendering/coordinator-interfaces.d.ts.map +1 -0
  527. package/dist/rendering/data-sources.d.ts +372 -0
  528. package/dist/rendering/data-sources.d.ts.map +1 -0
  529. package/dist/rendering/grid-region.d.ts +32 -0
  530. package/dist/rendering/grid-region.d.ts.map +1 -0
  531. package/dist/rendering/grid-renderer.d.ts +391 -0
  532. package/dist/rendering/grid-renderer.d.ts.map +1 -0
  533. package/dist/rendering/grouping.d.ts +21 -0
  534. package/dist/rendering/grouping.d.ts.map +1 -0
  535. package/dist/rendering/hit-test-service.d.ts +58 -0
  536. package/dist/rendering/hit-test-service.d.ts.map +1 -0
  537. package/dist/rendering/hit-test.d.ts +223 -0
  538. package/dist/rendering/hit-test.d.ts.map +1 -0
  539. package/dist/rendering/index.d.ts +25 -0
  540. package/dist/rendering/index.d.ts.map +1 -0
  541. package/dist/rendering/interactive-elements.d.ts +121 -0
  542. package/dist/rendering/interactive-elements.d.ts.map +1 -0
  543. package/dist/rendering/primitives.d.ts +17 -0
  544. package/dist/rendering/primitives.d.ts.map +1 -0
  545. package/dist/rendering/render-context.d.ts +457 -0
  546. package/dist/rendering/render-context.d.ts.map +1 -0
  547. package/dist/rendering/text-measurement-service.d.ts +197 -0
  548. package/dist/rendering/text-measurement-service.d.ts.map +1 -0
  549. package/dist/ribbon/collapse-configs.d.ts +298 -0
  550. package/dist/ribbon/collapse-configs.d.ts.map +1 -0
  551. package/dist/ribbon/collapse-types.d.ts +76 -0
  552. package/dist/ribbon/collapse-types.d.ts.map +1 -0
  553. package/dist/ribbon/index.d.ts +25 -0
  554. package/dist/ribbon/index.d.ts.map +1 -0
  555. package/dist/selection/index.d.ts +10 -0
  556. package/dist/selection/index.d.ts.map +1 -0
  557. package/dist/selection/registry.d.ts +17 -0
  558. package/dist/selection/registry.d.ts.map +1 -0
  559. package/dist/selection/types.d.ts +82 -0
  560. package/dist/selection/types.d.ts.map +1 -0
  561. package/dist/selectors/index.d.ts +8 -0
  562. package/dist/selectors/index.d.ts.map +1 -0
  563. package/dist/selectors/smart-art.d.ts +58 -0
  564. package/dist/selectors/smart-art.d.ts.map +1 -0
  565. package/dist/services/index.d.ts +273 -0
  566. package/dist/services/index.d.ts.map +1 -0
  567. package/dist/smartart/index.d.ts +26 -0
  568. package/dist/smartart/index.d.ts.map +1 -0
  569. package/dist/smartart/layouts.d.ts +193 -0
  570. package/dist/smartart/layouts.d.ts.map +1 -0
  571. package/dist/smartart/ooxml-algorithm-types.d.ts +939 -0
  572. package/dist/smartart/ooxml-algorithm-types.d.ts.map +1 -0
  573. package/dist/smartart/ooxml-data-model-types.d.ts +845 -0
  574. package/dist/smartart/ooxml-data-model-types.d.ts.map +1 -0
  575. package/dist/smartart/ooxml-drawing-types.d.ts +356 -0
  576. package/dist/smartart/ooxml-drawing-types.d.ts.map +1 -0
  577. package/dist/smartart/ooxml-engine-types.d.ts +873 -0
  578. package/dist/smartart/ooxml-engine-types.d.ts.map +1 -0
  579. package/dist/smartart/ooxml-layout-types.d.ts +405 -0
  580. package/dist/smartart/ooxml-layout-types.d.ts.map +1 -0
  581. package/dist/smartart/ooxml-style-types.d.ts +474 -0
  582. package/dist/smartart/ooxml-style-types.d.ts.map +1 -0
  583. package/dist/smartart/styles.d.ts +137 -0
  584. package/dist/smartart/styles.d.ts.map +1 -0
  585. package/dist/smartart/types.d.ts +323 -0
  586. package/dist/smartart/types.d.ts.map +1 -0
  587. package/dist/storage/capabilities.d.ts +33 -0
  588. package/dist/storage/capabilities.d.ts.map +1 -0
  589. package/dist/storage/connection.d.ts +183 -0
  590. package/dist/storage/connection.d.ts.map +1 -0
  591. package/dist/storage/index.d.ts +13 -0
  592. package/dist/storage/index.d.ts.map +1 -0
  593. package/dist/storage/query.d.ts +91 -0
  594. package/dist/storage/query.d.ts.map +1 -0
  595. package/dist/storage/table-driver.d.ts +249 -0
  596. package/dist/storage/table-driver.d.ts.map +1 -0
  597. package/dist/store/cell-schema.d.ts +235 -0
  598. package/dist/store/cell-schema.d.ts.map +1 -0
  599. package/dist/store/equation-schema.d.ts +22 -0
  600. package/dist/store/equation-schema.d.ts.map +1 -0
  601. package/dist/store/index.d.ts +33 -0
  602. package/dist/store/index.d.ts.map +1 -0
  603. package/dist/store/ink-schema.d.ts +26 -0
  604. package/dist/store/ink-schema.d.ts.map +1 -0
  605. package/dist/store/scenarios-schema.d.ts +105 -0
  606. package/dist/store/scenarios-schema.d.ts.map +1 -0
  607. package/dist/store/schema-types.d.ts +113 -0
  608. package/dist/store/schema-types.d.ts.map +1 -0
  609. package/dist/store/sheet-maps-schema.d.ts +222 -0
  610. package/dist/store/sheet-maps-schema.d.ts.map +1 -0
  611. package/dist/store/sheet-meta-schema.d.ts +16 -0
  612. package/dist/store/sheet-meta-schema.d.ts.map +1 -0
  613. package/dist/store/smartart-schema.d.ts +17 -0
  614. package/dist/store/smartart-schema.d.ts.map +1 -0
  615. package/dist/store/store-types.d.ts +381 -0
  616. package/dist/store/store-types.d.ts.map +1 -0
  617. package/dist/store/wordart-schema.d.ts +13 -0
  618. package/dist/store/wordart-schema.d.ts.map +1 -0
  619. package/dist/store/workbook-schema.d.ts +16 -0
  620. package/dist/store/workbook-schema.d.ts.map +1 -0
  621. package/dist/styles/built-in-styles.d.ts +10 -0
  622. package/dist/styles/built-in-styles.d.ts.map +1 -0
  623. package/dist/styles/index.d.ts +18 -0
  624. package/dist/styles/index.d.ts.map +1 -0
  625. package/dist/utils/a1.d.ts +12 -0
  626. package/dist/utils/a1.d.ts.map +1 -0
  627. package/dist/utils/datetime.d.ts +7 -0
  628. package/dist/utils/datetime.d.ts.map +1 -0
  629. package/dist/utils/function-registry.d.ts +40 -0
  630. package/dist/utils/function-registry.d.ts.map +1 -0
  631. package/dist/utils/index.d.ts +9 -0
  632. package/dist/utils/index.d.ts.map +1 -0
  633. package/dist/utils/protection.d.ts +9 -0
  634. package/dist/utils/protection.d.ts.map +1 -0
  635. package/dist/utils/range-navigation.d.ts +9 -0
  636. package/dist/utils/range-navigation.d.ts.map +1 -0
  637. package/dist/utils/range.d.ts +9 -0
  638. package/dist/utils/range.d.ts.map +1 -0
  639. package/dist/utils/rich-text.d.ts +9 -0
  640. package/dist/utils/rich-text.d.ts.map +1 -0
  641. package/dist/viewport/geometry.d.ts +90 -0
  642. package/dist/viewport/geometry.d.ts.map +1 -0
  643. package/dist/viewport/grid-canvas.d.ts +133 -0
  644. package/dist/viewport/grid-canvas.d.ts.map +1 -0
  645. package/dist/viewport/index.d.ts +5 -0
  646. package/dist/viewport/index.d.ts.map +1 -0
  647. package/dist/viewport/viewport-config.d.ts +95 -0
  648. package/dist/viewport/viewport-config.d.ts.map +1 -0
  649. package/dist/viewport/viewport.d.ts +191 -0
  650. package/dist/viewport/viewport.d.ts.map +1 -0
  651. package/dist/views/index.d.ts +9 -0
  652. package/dist/views/index.d.ts.map +1 -0
  653. package/dist/views/types.d.ts +161 -0
  654. package/dist/views/types.d.ts.map +1 -0
  655. package/dist/what-if/index.d.ts +2 -0
  656. package/dist/what-if/index.d.ts.map +1 -0
  657. package/dist/what-if/what-if.d.ts +152 -0
  658. package/dist/what-if/what-if.d.ts.map +1 -0
  659. package/dist/window-manager/index.d.ts +134 -0
  660. package/dist/window-manager/index.d.ts.map +1 -0
  661. package/dist/wordart/effects.d.ts +611 -0
  662. package/dist/wordart/effects.d.ts.map +1 -0
  663. package/dist/wordart/index.d.ts +17 -0
  664. package/dist/wordart/index.d.ts.map +1 -0
  665. package/dist/wordart/presets.d.ts +133 -0
  666. package/dist/wordart/presets.d.ts.map +1 -0
  667. package/dist/wordart/types.d.ts +444 -0
  668. package/dist/wordart/types.d.ts.map +1 -0
  669. package/dist/workflows/context.d.ts +777 -0
  670. package/dist/workflows/context.d.ts.map +1 -0
  671. package/dist/workflows/definition.d.ts +256 -0
  672. package/dist/workflows/definition.d.ts.map +1 -0
  673. package/dist/workflows/events.d.ts +397 -0
  674. package/dist/workflows/events.d.ts.map +1 -0
  675. package/dist/workflows/index.d.ts +19 -0
  676. package/dist/workflows/index.d.ts.map +1 -0
  677. package/dist/workflows/instance.d.ts +358 -0
  678. package/dist/workflows/instance.d.ts.map +1 -0
  679. package/dist/workflows/runtime.d.ts +287 -0
  680. package/dist/workflows/runtime.d.ts.map +1 -0
  681. package/dist/workflows/triggers.d.ts +335 -0
  682. package/dist/workflows/triggers.d.ts.map +1 -0
  683. package/dist/workflows/versioning.d.ts +245 -0
  684. package/dist/workflows/versioning.d.ts.map +1 -0
  685. package/dist/xlsx-parser/conditional-format.d.ts +137 -0
  686. package/dist/xlsx-parser/conditional-format.d.ts.map +1 -0
  687. package/dist/xlsx-parser/core.d.ts +622 -0
  688. package/dist/xlsx-parser/core.d.ts.map +1 -0
  689. package/dist/xlsx-parser/data-validation.d.ts +55 -0
  690. package/dist/xlsx-parser/data-validation.d.ts.map +1 -0
  691. package/dist/xlsx-parser/errors.d.ts +38 -0
  692. package/dist/xlsx-parser/errors.d.ts.map +1 -0
  693. package/dist/xlsx-parser/index.d.ts +17 -0
  694. package/dist/xlsx-parser/index.d.ts.map +1 -0
  695. package/dist/xlsx-parser/options.d.ts +89 -0
  696. package/dist/xlsx-parser/options.d.ts.map +1 -0
  697. package/dist/xlsx-parser/styles.d.ts +157 -0
  698. package/dist/xlsx-parser/styles.d.ts.map +1 -0
  699. package/dist/xlsx-parser/table.d.ts +170 -0
  700. package/dist/xlsx-parser/table.d.ts.map +1 -0
  701. package/package.json +410 -0
@@ -0,0 +1,1343 @@
1
+ /**
2
+ * Actor Commands Interfaces
3
+ *
4
+ * Type-safe command interfaces for state machine actors.
5
+ * These interfaces define the methods that handlers/hooks use to send events
6
+ * to their corresponding state machines.
7
+ *
8
+ * All methods are fire-and-forget (return void) - commands trigger state
9
+ * transitions, not queries.
10
+ *
11
+ * @see plans/active/refactor/actor-access-layer.md
12
+ *
13
+ * @module @mog/spreadsheet-contracts/actors/commands
14
+ */
15
+ import type { RichTextSegment, TextFormat } from '../cells/rich-text';
16
+ import type { CellRange } from '../core';
17
+ import type { CellSchema } from '../core/schema';
18
+ import type { ChartType } from '../data/charts';
19
+ import type { CellEditorType } from '../editor';
20
+ import type { CellCoord, Direction } from '../machines/types';
21
+ import type { Point } from '../viewport';
22
+ import type { ClipboardData, PasteSpecialOptions } from './clipboard';
23
+ import type { FindReplaceCommands } from './find-replace';
24
+ import type { OperationObjectState, OperationResizeHandle } from './object-interaction';
25
+ import type { PaneFocusCommands } from './pane-focus';
26
+ import type { RendererCommands } from './renderer';
27
+ /**
28
+ * Commands for the selection state machine.
29
+ * Handles cell selection, range selection, fill handle, drag-drop, and resize.
30
+ *
31
+ * @see state-machines/src/selection-machine.ts
32
+ * @see state-machines/src/selection/types.ts
33
+ */
34
+ export interface SelectionCommands {
35
+ /**
36
+ * Handle mouse down on a cell.
37
+ * @param cell - Target cell coordinates
38
+ * @param shiftKey - Whether shift key is held (extend selection)
39
+ * @param ctrlKey - Whether ctrl/cmd key is held (multi-select)
40
+ * @param mergedRegion - Optional merged region bounds
41
+ */
42
+ mouseDown(cell: CellCoord, shiftKey: boolean, ctrlKey: boolean, mergedRegion?: CellRange): void;
43
+ /**
44
+ * Handle mouse move during selection drag.
45
+ * @param cell - Current cell under cursor
46
+ */
47
+ mouseMove(cell: CellCoord): void;
48
+ /**
49
+ * Handle mouse up to end selection drag.
50
+ */
51
+ mouseUp(): void;
52
+ /**
53
+ * Handle arrow key navigation.
54
+ * @param direction - Arrow key direction
55
+ * @param shiftKey - Whether shift key is held (extend selection)
56
+ */
57
+ keyArrow(direction: Direction, shiftKey: boolean): void;
58
+ /**
59
+ * Handle Ctrl+Arrow for jump navigation.
60
+ * @param direction - Arrow key direction
61
+ * @param shiftKey - Whether shift key is held (extend selection)
62
+ */
63
+ keyCtrlArrow(direction: Direction, shiftKey?: boolean): void;
64
+ /**
65
+ * Handle Home key.
66
+ * @param ctrlKey - Whether ctrl key is held (go to A1)
67
+ * @param shiftKey - Whether shift key is held (extend selection)
68
+ */
69
+ keyHome(ctrlKey: boolean, shiftKey?: boolean): void;
70
+ /**
71
+ * Handle End key.
72
+ * @param ctrlKey - Whether ctrl key is held (go to last used cell)
73
+ * @param shiftKey - Whether shift key is held (extend selection)
74
+ */
75
+ keyEnd(ctrlKey: boolean, shiftKey?: boolean): void;
76
+ /**
77
+ * Handle Tab key for cycling within selection.
78
+ * @param shiftKey - Whether shift key is held (reverse direction)
79
+ */
80
+ keyTab(shiftKey: boolean): void;
81
+ /**
82
+ * Handle Enter key for cycling within selection.
83
+ * @param shiftKey - Whether shift key is held (reverse direction)
84
+ */
85
+ keyEnter(shiftKey: boolean): void;
86
+ /**
87
+ * Handle Ctrl+A to select all cells.
88
+ */
89
+ selectAll(): void;
90
+ /**
91
+ * Handle Page Up key.
92
+ * @param visibleRows - Number of visible rows for page size
93
+ * @param shiftKey - Whether shift key is held (extend selection)
94
+ */
95
+ pageUp(visibleRows: number, shiftKey?: boolean): void;
96
+ /**
97
+ * Handle Page Down key.
98
+ * @param visibleRows - Number of visible rows for page size
99
+ * @param shiftKey - Whether shift key is held (extend selection)
100
+ */
101
+ pageDown(visibleRows: number, shiftKey?: boolean): void;
102
+ /**
103
+ * Handle Alt+Page Left (horizontal page).
104
+ * @param visibleCols - Number of visible columns for page size
105
+ * @param shiftKey - Whether shift key is held (extend selection)
106
+ */
107
+ pageLeft(visibleCols: number, shiftKey?: boolean): void;
108
+ /**
109
+ * Handle Alt+Page Right (horizontal page).
110
+ * @param visibleCols - Number of visible columns for page size
111
+ * @param shiftKey - Whether shift key is held (extend selection)
112
+ */
113
+ pageRight(visibleCols: number, shiftKey?: boolean): void;
114
+ /**
115
+ * Go to a specific cell (Ctrl+G / Name Box).
116
+ * @param cell - Target cell coordinates
117
+ */
118
+ goTo(cell: CellCoord): void;
119
+ /**
120
+ * Enter formula range mode for range reference highlighting.
121
+ * @param color - Highlight color for the range
122
+ */
123
+ enterFormulaRangeMode(color: string): void;
124
+ /**
125
+ * Exit formula range mode.
126
+ */
127
+ exitFormulaRangeMode(): void;
128
+ /**
129
+ * Enter range selection mode for dialog inputs.
130
+ */
131
+ enterRangeSelectionMode(): void;
132
+ /**
133
+ * Exit range selection mode.
134
+ */
135
+ exitRangeSelectionMode(): void;
136
+ /**
137
+ * Start fill handle drag.
138
+ */
139
+ startFillHandleDrag(): void;
140
+ /**
141
+ * Update fill handle drag position.
142
+ * @param cell - Current cell under cursor
143
+ */
144
+ fillHandleDrag(cell: CellCoord): void;
145
+ /**
146
+ * End fill handle drag and execute fill.
147
+ */
148
+ endFillHandleDrag(): void;
149
+ /**
150
+ * Start right-click fill handle drag (shows menu).
151
+ */
152
+ startRightFillHandleDrag(): void;
153
+ /**
154
+ * Update right-click fill handle drag position.
155
+ * @param cell - Current cell under cursor
156
+ */
157
+ rightFillHandleDrag(cell: CellCoord): void;
158
+ /**
159
+ * End right-click fill handle drag.
160
+ */
161
+ endRightFillHandleDrag(): void;
162
+ /**
163
+ * Clear fill context after fill operation completes.
164
+ */
165
+ clearFillContext(): void;
166
+ /**
167
+ * Select entire column(s).
168
+ * @param col - Column index
169
+ * @param shiftKey - Whether shift key is held (extend selection)
170
+ * @param ctrlKey - Whether ctrl/cmd key is held (multi-select)
171
+ * @param fromKeyboard - Whether triggered by keyboard shortcut (stays in idle, no drag state)
172
+ */
173
+ selectColumn(col: number, shiftKey: boolean, ctrlKey: boolean, fromKeyboard?: boolean): void;
174
+ /**
175
+ * Select entire row(s).
176
+ * @param row - Row index
177
+ * @param shiftKey - Whether shift key is held (extend selection)
178
+ * @param ctrlKey - Whether ctrl/cmd key is held (multi-select)
179
+ * @param fromKeyboard - Whether triggered by keyboard shortcut (stays in idle, no drag state)
180
+ */
181
+ selectRow(row: number, shiftKey: boolean, ctrlKey: boolean, fromKeyboard?: boolean): void;
182
+ /**
183
+ * Handle column header mouse move (for range selection).
184
+ * @param col - Column index under cursor
185
+ */
186
+ columnMouseMove(col: number): void;
187
+ /**
188
+ * Handle row header mouse move (for range selection).
189
+ * @param row - Row index under cursor
190
+ */
191
+ rowMouseMove(row: number): void;
192
+ /**
193
+ * Start dragging cells.
194
+ * @param cell - Cell where drag started
195
+ * @param ctrlKey - Whether ctrl key is held (copy mode)
196
+ */
197
+ startDragCells(cell: CellCoord, ctrlKey: boolean): void;
198
+ /**
199
+ * Update cell drag position.
200
+ * @param cell - Current target cell
201
+ * @param ctrlKey - Whether ctrl key is held (copy mode)
202
+ */
203
+ dragCellsMove(cell: CellCoord, ctrlKey: boolean): void;
204
+ /**
205
+ * End cell drag and execute move/copy.
206
+ */
207
+ endDragCells(): void;
208
+ /**
209
+ * Cancel cell drag operation.
210
+ */
211
+ cancelDragCells(): void;
212
+ /**
213
+ * Start column resize.
214
+ * @param col - Column index being resized
215
+ * @param startPosition - Starting mouse position (screen coordinates)
216
+ * @param startSize - Starting column width (pixels)
217
+ * @param cols - Optional array of column indexes for multi-select resize
218
+ * @param startSizes - Optional map of starting sizes for multi-select
219
+ */
220
+ startColumnResize(col: number, startPosition: number, startSize: number, cols?: number[], startSizes?: Map<number, number>): void;
221
+ /**
222
+ * Start row resize.
223
+ * @param row - Row index being resized
224
+ * @param startPosition - Starting mouse position (screen coordinates)
225
+ * @param startSize - Starting row height (pixels)
226
+ * @param rows - Optional array of row indexes for multi-select resize
227
+ * @param startSizes - Optional map of starting sizes for multi-select
228
+ */
229
+ startRowResize(row: number, startPosition: number, startSize: number, rows?: number[], startSizes?: Map<number, number>): void;
230
+ /**
231
+ * Update resize position during drag.
232
+ * @param position - Current mouse position (screen coordinates)
233
+ */
234
+ resizeMove(position: number): void;
235
+ /**
236
+ * End resize operation.
237
+ */
238
+ endResize(): void;
239
+ /**
240
+ * Cancel resize operation.
241
+ */
242
+ cancelResize(): void;
243
+ /**
244
+ * Clear resize state.
245
+ */
246
+ clearResize(): void;
247
+ /**
248
+ * Start table resize.
249
+ * @param tableId - ID of table being resized
250
+ * @param tableBounds - Starting table bounds
251
+ */
252
+ startTableResize(tableId: string, tableBounds: CellRange): void;
253
+ /**
254
+ * Update table resize position.
255
+ * @param targetRow - Target bottom-right row
256
+ * @param targetCol - Target bottom-right column
257
+ */
258
+ tableResizeMove(targetRow: number, targetCol: number): void;
259
+ /**
260
+ * End table resize operation.
261
+ */
262
+ endTableResize(): void;
263
+ /**
264
+ * Cancel table resize operation.
265
+ */
266
+ cancelTableResize(): void;
267
+ /**
268
+ * Clear table resize state.
269
+ */
270
+ clearTableResize(): void;
271
+ /**
272
+ * Handle remote selection change (collaboration).
273
+ * @param ranges - New selection ranges from remote user
274
+ */
275
+ remoteSelectionChanged(ranges: CellRange[]): void;
276
+ /**
277
+ * Set selection programmatically.
278
+ * @param ranges - Selection ranges
279
+ * @param activeCell - Active cell coordinates
280
+ * @param anchor - Optional anchor for shift-click extension
281
+ * @param anchorCol - Optional anchor column for column selection
282
+ * @param anchorRow - Optional anchor row for row selection
283
+ */
284
+ setSelection(ranges: CellRange[], activeCell: CellCoord, anchor?: CellCoord | null, anchorCol?: number | null, anchorRow?: number | null): void;
285
+ /**
286
+ * Reset selection to default state.
287
+ */
288
+ reset(): void;
289
+ /**
290
+ * Handle table Tab navigation.
291
+ * @param targetCell - Target cell for navigation
292
+ */
293
+ tabNavigate(targetCell: CellCoord): void;
294
+ /**
295
+ * Update workbook settings.
296
+ * @param allowDragFill - Whether fill handle dragging is enabled
297
+ */
298
+ updateSettings(allowDragFill?: boolean): void;
299
+ /**
300
+ * Handle structure change (row/column insert/delete).
301
+ * @param sheetId - Sheet where change occurred
302
+ * @param change - Structure change details
303
+ */
304
+ structureChange(sheetId: string, change: {
305
+ type: 'insertRows' | 'deleteRows' | 'insertColumns' | 'deleteColumns';
306
+ index: number;
307
+ count: number;
308
+ }): void;
309
+ /**
310
+ * Set visibility callbacks for skip-hidden navigation.
311
+ * @param isRowHidden - Function to check if row is hidden
312
+ * @param isColHidden - Function to check if column is hidden
313
+ */
314
+ setVisibilityCallbacks(isRowHidden?: (row: number) => boolean, isColHidden?: (col: number) => boolean): void;
315
+ /**
316
+ * Handle external selection context taking focus.
317
+ * @param context - Which context took focus
318
+ */
319
+ externalSelectionActive(context: 'cells' | 'objects' | 'chart'): void;
320
+ }
321
+ /**
322
+ * Commands for the editor state machine.
323
+ * Handles cell editing, formula entry, IME composition, and rich text.
324
+ *
325
+ * @see state-machines/src/editor-machine.ts
326
+ * @see state-machines/src/editor/types.ts
327
+ */
328
+ export interface EditorCommands {
329
+ /**
330
+ * Start editing a cell.
331
+ * @param cell - Cell to edit
332
+ * @param sheetId - Sheet containing the cell
333
+ * @param initialValue - Optional initial value
334
+ * @param mergedRegion - Optional merged region bounds
335
+ * @param entryMode - How editing was initiated
336
+ * @param cursorPosition - Optional initial cursor position
337
+ * @param openDropdown - Whether to open dropdown immediately
338
+ */
339
+ startEditing(cell: CellCoord, sheetId: string, initialValue?: string, mergedRegion?: CellRange, entryMode?: 'F2' | 'doubleClick' | 'typing' | 'formulaBar', cursorPosition?: number, openDropdown?: boolean): void;
340
+ /**
341
+ * Signal that editor has activated.
342
+ */
343
+ activated(): void;
344
+ /**
345
+ * Update editor input value.
346
+ * @param value - New value
347
+ */
348
+ input(value: string): void;
349
+ /**
350
+ * Set cursor position.
351
+ * @param position - Cursor position within value
352
+ */
353
+ setCursor(position: number): void;
354
+ /**
355
+ * Commit the edit.
356
+ * @param direction - Direction to move after commit
357
+ */
358
+ commit(direction: Direction | 'none'): void;
359
+ /**
360
+ * Cancel the edit.
361
+ */
362
+ cancel(): void;
363
+ /**
364
+ * Signal that the editor lost focus to an external target.
365
+ * Only sent for genuine external blur (not grid, formula bar, or dialog).
366
+ * Routed exclusively through BLUR_EDITOR action handler — never called directly.
367
+ */
368
+ blur(): void;
369
+ /**
370
+ * Atomically set picker value and commit. Single compound event to the machine —
371
+ * no intermediate state between value update and commit.
372
+ * Routed exclusively through PICKER_COMMIT action handler — never called directly.
373
+ */
374
+ pickerCommit(value: unknown, direction: Direction | 'none'): void;
375
+ /**
376
+ * Start IME composition.
377
+ */
378
+ imeStart(): void;
379
+ /**
380
+ * Update IME composition text.
381
+ * @param compositionText - Current composition text
382
+ */
383
+ imeUpdate(compositionText: string): void;
384
+ /**
385
+ * End IME composition with final text.
386
+ * @param finalText - Final composed text
387
+ */
388
+ imeEnd(finalText: string): void;
389
+ /**
390
+ * Cancel IME composition.
391
+ */
392
+ imeCancelComposition(): void;
393
+ /**
394
+ * Move cursor left one character.
395
+ */
396
+ cursorMoveLeft(): void;
397
+ /**
398
+ * Move cursor right one character.
399
+ */
400
+ cursorMoveRight(): void;
401
+ /**
402
+ * Move cursor left one word.
403
+ */
404
+ cursorMoveWordLeft(): void;
405
+ /**
406
+ * Move cursor right one word.
407
+ */
408
+ cursorMoveWordRight(): void;
409
+ /**
410
+ * Move cursor to start of line.
411
+ */
412
+ cursorMoveStart(): void;
413
+ /**
414
+ * Move cursor to end of line.
415
+ */
416
+ cursorMoveEnd(): void;
417
+ /**
418
+ * Move cursor up one line.
419
+ */
420
+ cursorUp(): void;
421
+ /**
422
+ * Move cursor down one line.
423
+ */
424
+ cursorDown(): void;
425
+ /**
426
+ * Extend selection left one character.
427
+ */
428
+ selectLeft(): void;
429
+ /**
430
+ * Extend selection right one character.
431
+ */
432
+ selectRight(): void;
433
+ /**
434
+ * Extend selection left one word.
435
+ */
436
+ selectWordLeft(): void;
437
+ /**
438
+ * Extend selection right one word.
439
+ */
440
+ selectWordRight(): void;
441
+ /**
442
+ * Extend selection to start.
443
+ */
444
+ selectToStart(): void;
445
+ /**
446
+ * Extend selection to end.
447
+ */
448
+ selectToEnd(): void;
449
+ /**
450
+ * Select all text.
451
+ */
452
+ selectAll(): void;
453
+ /**
454
+ * Delete word forward.
455
+ */
456
+ deleteWordForward(): void;
457
+ /**
458
+ * Delete word backward.
459
+ */
460
+ deleteWordBackward(): void;
461
+ /**
462
+ * Delete to end of line.
463
+ */
464
+ deleteToEndOfLine(): void;
465
+ /**
466
+ * Toggle between Enter Mode and Edit Mode.
467
+ */
468
+ toggleEditMode(): void;
469
+ /**
470
+ * Insert newline (Alt+Enter).
471
+ */
472
+ insertNewline(): void;
473
+ /**
474
+ * Handle formula range selection.
475
+ * @param range - Selected range
476
+ * @param color - Highlight color
477
+ * @param structuredRef - Optional structured reference text
478
+ */
479
+ formulaRangeSelected(range: CellRange, color: string, structuredRef?: string): void;
480
+ /**
481
+ * Update formula range after drag-resize.
482
+ * @param rangeIndex - Index of range being updated
483
+ * @param newRange - New range bounds
484
+ */
485
+ updateFormulaRange(rangeIndex: number, newRange: CellRange): void;
486
+ /**
487
+ * Cycle reference type (F4).
488
+ */
489
+ cycleReference(): void;
490
+ /**
491
+ * Enter array formula (Ctrl+Shift+Enter).
492
+ */
493
+ enterArrayFormula(): void;
494
+ /**
495
+ * Insert function arguments (Ctrl+Shift+A).
496
+ */
497
+ insertFunctionArgs(): void;
498
+ /**
499
+ * Show function suggestions.
500
+ */
501
+ showSuggestions(): void;
502
+ /**
503
+ * Hide function suggestions.
504
+ */
505
+ hideSuggestions(): void;
506
+ /**
507
+ * Select a suggestion by index.
508
+ * @param index - Suggestion index
509
+ */
510
+ selectSuggestion(index: number): void;
511
+ /**
512
+ * Accept a suggestion.
513
+ * @param name - Function name to accept
514
+ */
515
+ acceptSuggestion(name: string): void;
516
+ /**
517
+ * Navigate suggestions.
518
+ * @param direction - Navigation direction
519
+ */
520
+ navigateSuggestion(direction: 'up' | 'down'): void;
521
+ /**
522
+ * Start rich text editing.
523
+ * @param segments - Initial rich text segments
524
+ */
525
+ startRichTextEditing(segments: RichTextSegment[]): void;
526
+ /**
527
+ * Update rich text input.
528
+ * @param segments - New rich text segments
529
+ */
530
+ inputRichText(segments: RichTextSegment[]): void;
531
+ /**
532
+ * Apply character format to selection.
533
+ * @param format - Format to apply
534
+ */
535
+ applyCharFormat(format: Partial<TextFormat>): void;
536
+ /**
537
+ * Clear character format from selection.
538
+ */
539
+ clearCharFormat(): void;
540
+ /**
541
+ * Handle character selection change.
542
+ * @param start - Selection start position
543
+ * @param end - Selection end position
544
+ */
545
+ charSelectionChanged(start: number, end: number): void;
546
+ /**
547
+ * Set editor type based on cell schema.
548
+ * @param editorType - Type of editor
549
+ * @param cellSchema - Cell schema (if any)
550
+ * @param enumItems - Enum items for dropdowns
551
+ */
552
+ setEditorType(editorType: CellEditorType, cellSchema: CellSchema | null, enumItems: unknown[] | null): void;
553
+ /**
554
+ * Open the picker (dropdown, date picker, etc.).
555
+ */
556
+ openPicker(): void;
557
+ /**
558
+ * Close the picker.
559
+ */
560
+ closePicker(): void;
561
+ /**
562
+ * Select a value from the picker.
563
+ * @param value - Selected value
564
+ */
565
+ pickerSelect(value: unknown): void;
566
+ /**
567
+ * Signal that a dialog has opened.
568
+ * @param dialogId - Dialog identifier
569
+ */
570
+ dialogOpened(dialogId: string): void;
571
+ /**
572
+ * Signal that a dialog has closed.
573
+ */
574
+ dialogClosed(): void;
575
+ /**
576
+ * Signal validation success.
577
+ */
578
+ validationSuccess(): void;
579
+ /**
580
+ * Signal validation error.
581
+ * @param message - Error message
582
+ */
583
+ validationError(message: string): void;
584
+ /**
585
+ * Retry after validation error.
586
+ */
587
+ retry(): void;
588
+ /**
589
+ * Signal commit complete.
590
+ */
591
+ commitComplete(): void;
592
+ /**
593
+ * Handle remote cell change.
594
+ * @param cell - Changed cell
595
+ * @param newValue - New value
596
+ */
597
+ remoteCellChanged(cell: CellCoord, newValue: unknown): void;
598
+ /**
599
+ * Handle remote cell deletion.
600
+ * @param cell - Deleted cell
601
+ */
602
+ remoteCellDeleted(cell: CellCoord): void;
603
+ /**
604
+ * Handle remote sheet deletion.
605
+ * @param sheetId - Deleted sheet ID
606
+ */
607
+ remoteSheetDeleted(sheetId: string): void;
608
+ /**
609
+ * Handle remote schema change.
610
+ * @param cell - Cell with changed schema
611
+ */
612
+ remoteSchemaChanged(cell: CellCoord): void;
613
+ /**
614
+ * Handle structure change.
615
+ * @param sheetId - Sheet where change occurred
616
+ * @param change - Structure change details
617
+ */
618
+ structureChange(sheetId: string, change: {
619
+ type: 'insertRows' | 'deleteRows' | 'insertColumns' | 'deleteColumns';
620
+ index: number;
621
+ count: number;
622
+ }): void;
623
+ /**
624
+ * Handle remote structure change.
625
+ * @param sheetId - Sheet where change occurred
626
+ * @param operation - Type of structure operation
627
+ * @param startIndex - Starting index
628
+ * @param count - Number of rows/columns affected
629
+ */
630
+ remoteStructureChange(sheetId: string, operation: 'insertRows' | 'deleteRows' | 'insertColumns' | 'deleteColumns', startIndex: number, count: number): void;
631
+ /**
632
+ * Set function registry for formula argument hints.
633
+ * @param registry - Function registry
634
+ */
635
+ setFunctionRegistry(registry: {
636
+ getMetadata(name: string): {
637
+ minArgs?: number;
638
+ maxArgs?: number;
639
+ } | undefined;
640
+ }): void;
641
+ }
642
+ /**
643
+ * Paste option for data-less paste operations.
644
+ * Used by handlers that trigger paste without providing target data
645
+ * (the integration layer determines the target).
646
+ */
647
+ export type PasteOption = 'values' | 'formulas' | 'formatting' | 'transpose' | 'link' | 'picture' | 'linkedPicture';
648
+ /**
649
+ * Commands for the clipboard state machine.
650
+ * Handles copy, cut, paste, and paste special operations.
651
+ *
652
+ * This interface has two patterns:
653
+ * 1. Data-accepting methods (copy, cut, paste, pasteSpecial) - Used by integration layer
654
+ * which gathers and provides the actual data
655
+ * 2. Data-less trigger methods (triggerCopy, triggerCut, triggerPaste) - Used by handlers
656
+ * which just trigger the operation; the machine sources data internally via integrations
657
+ *
658
+ * @see state-machines/src/clipboard-machine.ts
659
+ */
660
+ export interface ClipboardCommands {
661
+ /**
662
+ * Copy cells to clipboard with explicit data.
663
+ * Used by integration layer which gathers the clipboard data.
664
+ * @param ranges - Ranges to copy
665
+ * @param data - Clipboard data
666
+ */
667
+ copy(ranges: CellRange[], data: ClipboardData): void;
668
+ /**
669
+ * Cut cells to clipboard with explicit data.
670
+ * Used by integration layer which gathers the clipboard data.
671
+ * @param ranges - Ranges to cut
672
+ * @param data - Clipboard data
673
+ */
674
+ cut(ranges: CellRange[], data: ClipboardData): void;
675
+ /**
676
+ * Paste clipboard contents to a specific target cell.
677
+ * Used by integration layer which determines the target.
678
+ * @param targetCell - Target cell for paste
679
+ * @param skipSizeCheck - Whether to skip size mismatch warning
680
+ */
681
+ paste(targetCell: CellCoord, skipSizeCheck?: boolean): void;
682
+ /**
683
+ * Paste with special options to a specific target cell.
684
+ * Used by integration layer which determines the target.
685
+ * @param targetCell - Target cell for paste
686
+ * @param options - Paste special options
687
+ */
688
+ pasteSpecial(targetCell: CellCoord, options: PasteSpecialOptions): void;
689
+ /**
690
+ * Trigger copy operation.
691
+ * The clipboard machine's integration layer handles gathering the data.
692
+ * Used by keyboard handlers (Ctrl+C).
693
+ */
694
+ triggerCopy(): void;
695
+ /**
696
+ * Trigger cut operation.
697
+ * The clipboard machine's integration layer handles gathering the data.
698
+ * Used by keyboard handlers (Ctrl+X).
699
+ */
700
+ triggerCut(): void;
701
+ /**
702
+ * Trigger paste operation.
703
+ * The clipboard machine's integration layer handles determining the target.
704
+ * Used by keyboard handlers (Ctrl+V) and context menu paste options.
705
+ * @param option - Optional paste option (values, formulas, formatting, etc.)
706
+ */
707
+ triggerPaste(option?: PasteOption): void;
708
+ /**
709
+ * Show paste preview.
710
+ * @param targetCell - Target cell for preview
711
+ */
712
+ showPastePreview(targetCell: CellCoord): void;
713
+ /**
714
+ * Hide paste preview.
715
+ */
716
+ hidePastePreview(): void;
717
+ /**
718
+ * Signal paste complete.
719
+ */
720
+ pasteComplete(): void;
721
+ /**
722
+ * Signal paste error.
723
+ * @param message - Error message
724
+ */
725
+ pasteError(message: string): void;
726
+ /**
727
+ * Invalidate cut operation (source modified).
728
+ */
729
+ invalidateCut(): void;
730
+ /**
731
+ * Clear clipboard.
732
+ */
733
+ clear(): void;
734
+ /**
735
+ * Handle external paste (from other apps).
736
+ * @param text - Plain text from clipboard
737
+ * @param targetCell - Target cell for paste
738
+ * @param html - Optional HTML from clipboard
739
+ */
740
+ externalPaste(text: string, targetCell: CellCoord, html?: string): void;
741
+ /**
742
+ * Advance marching ants animation.
743
+ */
744
+ tickMarchingAnts(): void;
745
+ /**
746
+ * Handle structure change.
747
+ * @param sheetId - Sheet where change occurred
748
+ * @param change - Structure change details
749
+ */
750
+ structureChange(sheetId: string, change: {
751
+ type: 'insertRows' | 'deleteRows' | 'insertColumns' | 'deleteColumns';
752
+ index: number;
753
+ count: number;
754
+ }): void;
755
+ /**
756
+ * Signal that user started editing a cell (clears clipboard).
757
+ */
758
+ cellEdit(): void;
759
+ /**
760
+ * Mark clipboard as stale (app lost focus).
761
+ */
762
+ focusLost(): void;
763
+ /**
764
+ * Re-apply paste with different options to a specific range.
765
+ * Used by paste options button/menu to change paste behavior after initial paste.
766
+ * @param option - Paste option to apply
767
+ * @param range - Target range to paste to
768
+ * @param sheetId - Target sheet ID
769
+ */
770
+ pasteWithOption(option: PasteOption, range: CellRange, sheetId: string): void;
771
+ }
772
+ /**
773
+ * Resize handle direction type.
774
+ */
775
+ export type ResizeHandle = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
776
+ /**
777
+ * Chart element types that can be selected.
778
+ */
779
+ export type ChartElementType = 'title' | 'legend' | 'xAxis' | 'yAxis' | 'series' | 'dataPoint' | 'gridLine' | 'tooltip';
780
+ /**
781
+ * Commands for the chart state machine.
782
+ * Handles chart selection, editing, creation, and interaction.
783
+ *
784
+ * @see state-machines/src/chart-machine.ts
785
+ */
786
+ export interface ChartCommands {
787
+ /**
788
+ * Select a chart.
789
+ * @param chartId - Chart ID to select
790
+ */
791
+ select(chartId: string): void;
792
+ /**
793
+ * Deselect the current chart.
794
+ */
795
+ deselect(): void;
796
+ /**
797
+ * Deselect all charts.
798
+ */
799
+ deselectAll(): void;
800
+ /**
801
+ * Add chart to multi-selection (Shift+click).
802
+ * @param chartId - Chart ID to add
803
+ */
804
+ addToSelection(chartId: string): void;
805
+ /**
806
+ * Toggle chart in selection (Ctrl/Cmd+click).
807
+ * @param chartId - Chart ID to toggle
808
+ */
809
+ toggleSelection(chartId: string): void;
810
+ /**
811
+ * Start editing the selected chart.
812
+ */
813
+ startEdit(): void;
814
+ /**
815
+ * Stop editing the chart.
816
+ */
817
+ stopEdit(): void;
818
+ /**
819
+ * Start chart creation wizard.
820
+ * @param initialDataRange - Optional initial data range
821
+ */
822
+ create(initialDataRange?: string): void;
823
+ /**
824
+ * Set chart type in creation wizard.
825
+ * @param chartType - Chart type to set
826
+ */
827
+ setType(chartType: ChartType): void;
828
+ /**
829
+ * Set data range in creation wizard.
830
+ * @param dataRange - Data range string (A1 notation)
831
+ */
832
+ setDataRange(dataRange: string): void;
833
+ /**
834
+ * Move to next wizard step.
835
+ */
836
+ nextStep(): void;
837
+ /**
838
+ * Move to previous wizard step.
839
+ */
840
+ prevStep(): void;
841
+ /**
842
+ * Cancel creation/editing.
843
+ */
844
+ cancel(): void;
845
+ /**
846
+ * Confirm chart creation.
847
+ */
848
+ confirm(): void;
849
+ /**
850
+ * Delete the selected chart.
851
+ */
852
+ delete(): void;
853
+ /**
854
+ * Start drag operation.
855
+ * @param pointerId - Pointer ID for capture
856
+ * @param clientX - Starting X position
857
+ * @param clientY - Starting Y position
858
+ */
859
+ pointerDownBody(pointerId: number, clientX: number, clientY: number): void;
860
+ /**
861
+ * Start resize operation.
862
+ * @param pointerId - Pointer ID for capture
863
+ * @param clientX - Starting X position
864
+ * @param clientY - Starting Y position
865
+ * @param handle - Resize handle being used
866
+ * @param shiftKey - Whether shift key is held (aspect ratio lock)
867
+ * @param ctrlKey - Whether ctrl key is held (resize from center)
868
+ * @param originalWidth - Original chart width
869
+ * @param originalHeight - Original chart height
870
+ */
871
+ pointerDownHandle(pointerId: number, clientX: number, clientY: number, handle: ResizeHandle, shiftKey?: boolean, ctrlKey?: boolean, originalWidth?: number, originalHeight?: number): void;
872
+ /**
873
+ * Update pointer position during drag/resize.
874
+ * @param clientX - Current X position
875
+ * @param clientY - Current Y position
876
+ * @param shiftKey - Whether shift key is held
877
+ * @param ctrlKey - Whether ctrl key is held
878
+ */
879
+ pointerMove(clientX: number, clientY: number, shiftKey?: boolean, ctrlKey?: boolean): void;
880
+ /**
881
+ * End drag/resize operation.
882
+ */
883
+ pointerUp(): void;
884
+ /**
885
+ * Reset drag/resize operation (e.g., on blur).
886
+ */
887
+ reset(): void;
888
+ /**
889
+ * Update modifier key state during drag/resize.
890
+ * @param shiftKey - Whether shift key is held
891
+ * @param ctrlKey - Whether ctrl key is held
892
+ */
893
+ updateModifiers(shiftKey: boolean, ctrlKey: boolean): void;
894
+ /**
895
+ * Click on a chart element.
896
+ * @param elementType - Type of element clicked
897
+ */
898
+ clickElement(elementType: ChartElementType): void;
899
+ /**
900
+ * Double-click on chart or element.
901
+ * @param elementType - Optional element type
902
+ */
903
+ doubleClick(elementType?: ChartElementType): void;
904
+ /**
905
+ * Click on a data series.
906
+ * @param seriesIndex - Index of series clicked
907
+ */
908
+ clickSeries(seriesIndex: number): void;
909
+ /**
910
+ * Click on a data point.
911
+ * @param seriesIndex - Series index
912
+ * @param pointIndex - Point index within series
913
+ */
914
+ clickPoint(seriesIndex: number, pointIndex: number): void;
915
+ /**
916
+ * Start title editing.
917
+ * @param originalValue - Original title value (for revert)
918
+ */
919
+ startTitleEdit(originalValue: string): void;
920
+ /**
921
+ * End title editing (commit).
922
+ */
923
+ endTitleEdit(): void;
924
+ /**
925
+ * Cancel title editing (revert).
926
+ */
927
+ cancelTitleEdit(): void;
928
+ /**
929
+ * Clear element selection.
930
+ */
931
+ clearElementSelection(): void;
932
+ /**
933
+ * Handle sheet switch.
934
+ */
935
+ sheetSwitched(): void;
936
+ /**
937
+ * Handle remote chart deletion.
938
+ * @param chartId - Deleted chart ID
939
+ */
940
+ remoteChartDeleted(chartId: string): void;
941
+ /**
942
+ * Handle external selection context taking focus.
943
+ * @param context - Which context took focus
944
+ */
945
+ externalSelectionActive(context: 'cells' | 'objects' | 'chart'): void;
946
+ }
947
+ export type { Point } from '../viewport';
948
+ /**
949
+ * Commands for the object interaction state machine.
950
+ * Handles floating object (shapes, pictures, text boxes) interactions.
951
+ *
952
+ * @see state-machines/src/object-interaction-machine.ts
953
+ */
954
+ export interface ObjectCommands {
955
+ /**
956
+ * Select an object.
957
+ * @param objectId - Object ID to select
958
+ * @param shiftKey - Whether shift key is held
959
+ * @param ctrlKey - Whether ctrl/cmd key is held
960
+ */
961
+ selectObject(objectId: string, shiftKey: boolean, ctrlKey: boolean): void;
962
+ /**
963
+ * Select multiple objects.
964
+ * @param objectIds - Array of object IDs to select
965
+ */
966
+ selectMultiple(objectIds: string[]): void;
967
+ /**
968
+ * Deselect all objects.
969
+ */
970
+ deselectAll(): void;
971
+ /**
972
+ * Delete key pressed.
973
+ */
974
+ keyDelete(): void;
975
+ /**
976
+ * Escape key pressed.
977
+ */
978
+ keyEscape(): void;
979
+ /**
980
+ * Arrow key for nudging.
981
+ * @param direction - Arrow direction
982
+ * @param shiftKey - Whether shift key is held (larger nudge)
983
+ */
984
+ keyArrow(direction: 'up' | 'down' | 'left' | 'right', shiftKey: boolean): void;
985
+ /**
986
+ * Duplicate shortcut (Ctrl+D).
987
+ */
988
+ keyDuplicate(): void;
989
+ /**
990
+ * Double-click to enter text editing.
991
+ * @param objectId - Object ID to edit
992
+ */
993
+ doubleClick(objectId: string): void;
994
+ /**
995
+ * Double-click to enter WordArt text editing.
996
+ * Used for textboxes with wordArt configuration.
997
+ * @param objectId - WordArt object ID to edit
998
+ *
999
+ * @see plans/active/excel-parity/word-art/07-CANVAS-INTEGRATION.md
1000
+ */
1001
+ doubleClickWordArt(objectId: string): void;
1002
+ /**
1003
+ * Stop WordArt editing mode.
1004
+ * Called when user clicks outside, presses Escape, or commits.
1005
+ *
1006
+ * @see plans/active/excel-parity/word-art/07-CANVAS-INTEGRATION.md
1007
+ */
1008
+ stopWordArtEditing(): void;
1009
+ /**
1010
+ * Commit text changes.
1011
+ * @param text - Final text content
1012
+ */
1013
+ commitText(text: string): void;
1014
+ /**
1015
+ * Cancel text editing.
1016
+ */
1017
+ cancelText(): void;
1018
+ /**
1019
+ * Handle remote selection change.
1020
+ * @param selectedIds - IDs selected by remote user
1021
+ */
1022
+ remoteSelectionChanged(selectedIds: string[]): void;
1023
+ /**
1024
+ * Handle object deletion.
1025
+ * @param objectId - Deleted object ID
1026
+ */
1027
+ objectDeleted(objectId: string): void;
1028
+ /**
1029
+ * Reset to initial state.
1030
+ */
1031
+ reset(): void;
1032
+ /**
1033
+ * Handle external selection context taking focus.
1034
+ * @param context - Which context took focus
1035
+ */
1036
+ externalSelectionActive(context: 'cells' | 'objects' | 'chart'): void;
1037
+ /**
1038
+ * Start a drag operation.
1039
+ * Transitions from selected/multiSelected to operating state.
1040
+ * @param objectIds - Objects being dragged
1041
+ * @param position - Starting mouse position (viewport coordinates)
1042
+ * @param originalStates - Original geometric states of all objects
1043
+ */
1044
+ startDrag(objectIds: string[], position: Point, originalStates: Map<string, OperationObjectState>): void;
1045
+ /**
1046
+ * Start a resize operation.
1047
+ * Transitions from selected/multiSelected to operating state.
1048
+ * @param objectIds - Objects being resized
1049
+ * @param position - Starting mouse position (viewport coordinates)
1050
+ * @param handle - Resize handle being used
1051
+ * @param originalStates - Original geometric states of all objects
1052
+ */
1053
+ startResize(objectIds: string[], position: Point, handle: OperationResizeHandle, originalStates: Map<string, OperationObjectState>): void;
1054
+ /**
1055
+ * Start a rotate operation.
1056
+ * Transitions from selected/multiSelected to operating state.
1057
+ * @param objectIds - Objects being rotated
1058
+ * @param position - Starting mouse position (viewport coordinates)
1059
+ * @param rotationCenter - Center point for rotation calculation
1060
+ * @param originalStates - Original geometric states of all objects
1061
+ */
1062
+ startRotate(objectIds: string[], position: Point, rotationCenter: Point, originalStates: Map<string, OperationObjectState>): void;
1063
+ /**
1064
+ * Update position during an operation.
1065
+ * Fires on mouse move while in operating state.
1066
+ * @param position - Current mouse position (viewport coordinates)
1067
+ */
1068
+ updatePosition(position: Point): void;
1069
+ /**
1070
+ * Complete the current operation.
1071
+ * Transitions from operating to selected state.
1072
+ * Operation remains in context for completion subscription to read.
1073
+ */
1074
+ completeOperation(): void;
1075
+ /**
1076
+ * Cancel the current operation.
1077
+ * Transitions from operating to selected state and clears operation.
1078
+ * Objects return to their original positions.
1079
+ */
1080
+ cancelOperation(): void;
1081
+ /**
1082
+ * Clear the operation from context after commit.
1083
+ * Called by completion subscription after persisting to Yjs.
1084
+ */
1085
+ clearOperation(): void;
1086
+ /**
1087
+ * Enter insert mode for a shape type.
1088
+ * Transitions from idle → inserting state.
1089
+ * @param shapeType - The shape type to insert (e.g. 'rect', 'ellipse')
1090
+ */
1091
+ startInsert(shapeType: string): void;
1092
+ /**
1093
+ * Record the start position for drag-to-insert.
1094
+ * Called on pointerdown during inserting state.
1095
+ * @param position - Canvas position where the user pressed down
1096
+ */
1097
+ setInsertStart(position: {
1098
+ x: number;
1099
+ y: number;
1100
+ }): void;
1101
+ /**
1102
+ * Update the current position during drag-to-insert.
1103
+ * Called on pointermove during inserting state.
1104
+ * @param position - Current canvas position
1105
+ */
1106
+ updateInsertBounds(position: {
1107
+ x: number;
1108
+ y: number;
1109
+ }): void;
1110
+ /**
1111
+ * Complete the insert on pointerup.
1112
+ * Coordinator reads context and dispatches INSERT_SHAPE before calling this.
1113
+ */
1114
+ completeInsert(): void;
1115
+ /**
1116
+ * Cancel the insert (e.g. Escape key).
1117
+ * Clears insert context and returns to idle.
1118
+ */
1119
+ cancelInsert(): void;
1120
+ }
1121
+ import type { RichText } from '../cells/rich-text';
1122
+ import type { CommentTarget } from './comment';
1123
+ /**
1124
+ * Commands for the comment state machine.
1125
+ * Handles comment popover interactions (viewing, editing, composing, deleting).
1126
+ *
1127
+ * @see state-machines/src/comment-machine.ts
1128
+ */
1129
+ export interface CommentCommands {
1130
+ /**
1131
+ * Hover over a cell with comments.
1132
+ * @param target - Target cell information
1133
+ */
1134
+ hoverCell(target: CommentTarget): void;
1135
+ /**
1136
+ * Click on a cell with comments.
1137
+ * @param target - Target cell information
1138
+ */
1139
+ clickCell(target: CommentTarget): void;
1140
+ /**
1141
+ * Leave the current cell (mouse out).
1142
+ */
1143
+ leaveCell(): void;
1144
+ /**
1145
+ * Close the comment popover.
1146
+ */
1147
+ close(): void;
1148
+ /**
1149
+ * Start composing a new comment.
1150
+ */
1151
+ startCompose(): void;
1152
+ /**
1153
+ * Start editing an existing comment.
1154
+ * @param commentId - ID of comment to edit
1155
+ * @param content - Current content of the comment
1156
+ */
1157
+ startEdit(commentId: string, content: RichText): void;
1158
+ /**
1159
+ * Update draft content while editing/composing.
1160
+ * @param content - Updated draft content
1161
+ */
1162
+ updateDraft(content: RichText): void;
1163
+ /**
1164
+ * Save the current draft (create or update comment).
1165
+ */
1166
+ save(): void;
1167
+ /**
1168
+ * Cancel the current edit/compose operation.
1169
+ */
1170
+ cancel(): void;
1171
+ /**
1172
+ * Request to delete a comment (shows confirmation).
1173
+ * @param commentId - ID of comment to delete
1174
+ */
1175
+ requestDelete(commentId: string): void;
1176
+ /**
1177
+ * Confirm deletion of the pending comment.
1178
+ */
1179
+ confirmDelete(): void;
1180
+ /**
1181
+ * Cancel the delete operation.
1182
+ */
1183
+ cancelDelete(): void;
1184
+ /**
1185
+ * Start replying to a thread.
1186
+ * @param threadId - ID of thread to reply to
1187
+ */
1188
+ startReply(threadId: string): void;
1189
+ /**
1190
+ * Resolve a comment thread.
1191
+ * @param threadId - ID of thread to resolve
1192
+ */
1193
+ resolveThread(threadId: string): void;
1194
+ }
1195
+ /**
1196
+ * Border style configuration for draw border commands.
1197
+ */
1198
+ export interface DrawBorderStyleConfig {
1199
+ /** Border color (hex, rgb, or theme color) */
1200
+ color: string;
1201
+ /** Border line style */
1202
+ style: 'thin' | 'medium' | 'thick' | 'dashed' | 'dotted' | 'double' | 'hair';
1203
+ }
1204
+ /**
1205
+ * Commands for the draw border state machine.
1206
+ * Handles draw border, draw border grid, and erase border operations.
1207
+ *
1208
+ * @see state-machines/src/draw-border-machine.ts
1209
+ */
1210
+ export interface DrawBorderCommands {
1211
+ /**
1212
+ * Activate draw border mode.
1213
+ * @param borderStyle - Border style to apply
1214
+ * @param sheetId - Sheet ID where drawing occurs
1215
+ */
1216
+ activateDrawBorder(borderStyle: DrawBorderStyleConfig, sheetId: string): void;
1217
+ /**
1218
+ * Activate draw border grid mode.
1219
+ * @param borderStyle - Border style to apply
1220
+ * @param sheetId - Sheet ID where drawing occurs
1221
+ */
1222
+ activateDrawBorderGrid(borderStyle: DrawBorderStyleConfig, sheetId: string): void;
1223
+ /**
1224
+ * Activate erase border mode.
1225
+ * @param sheetId - Sheet ID where erasing occurs
1226
+ */
1227
+ activateEraseBorder(sheetId: string): void;
1228
+ /**
1229
+ * Handle mouse down to start drawing.
1230
+ * @param cell - Cell where drawing starts
1231
+ */
1232
+ mouseDown(cell: CellCoord): void;
1233
+ /**
1234
+ * Handle mouse move during drawing.
1235
+ * @param cell - Current cell under cursor
1236
+ */
1237
+ mouseMove(cell: CellCoord): void;
1238
+ /**
1239
+ * Handle mouse up to end drawing.
1240
+ */
1241
+ mouseUp(): void;
1242
+ /**
1243
+ * Cancel the current drawing operation and reset.
1244
+ */
1245
+ cancel(): void;
1246
+ /**
1247
+ * Deactivate drawing mode and return to inactive state.
1248
+ */
1249
+ deactivate(): void;
1250
+ }
1251
+ /**
1252
+ * SmartArt node ID type.
1253
+ */
1254
+ export type SmartArtNodeId = string;
1255
+ /**
1256
+ * Commands for the SmartArt state machine.
1257
+ * Handles SmartArt node selection and editing interactions.
1258
+ *
1259
+ * Architecture Note:
1260
+ * - Selection state (selectedObjectId, selectedNodeIds, editingNodeId) lives in XState
1261
+ * - UI state (dialogOpen, textPaneVisible, gallery states) lives in UIStore
1262
+ * - This follows the same pattern as ChartCommands
1263
+ *
1264
+ * @see state-machines/src/smartart-machine.ts
1265
+ */
1266
+ export interface SmartArtCommands {
1267
+ /**
1268
+ * Select a single node (replaces existing selection).
1269
+ * @param objectId - SmartArt object ID
1270
+ * @param nodeId - Node ID to select
1271
+ */
1272
+ selectNode(objectId: string, nodeId: SmartArtNodeId): void;
1273
+ /**
1274
+ * Toggle a node in multi-selection (Ctrl/Cmd+click).
1275
+ * @param objectId - SmartArt object ID
1276
+ * @param nodeId - Node ID to toggle
1277
+ */
1278
+ multiSelectNode(objectId: string, nodeId: SmartArtNodeId): void;
1279
+ /**
1280
+ * Clear all selection.
1281
+ */
1282
+ deselect(): void;
1283
+ /**
1284
+ * Handle external selection (cell, chart, etc.) becoming active.
1285
+ * Clears SmartArt selection to avoid multiple active selections.
1286
+ */
1287
+ externalSelectionActive(): void;
1288
+ /**
1289
+ * Start in-place text editing for a node.
1290
+ * @param nodeId - Node ID to edit
1291
+ */
1292
+ startEdit(nodeId: SmartArtNodeId): void;
1293
+ /**
1294
+ * Commit text changes and exit editing mode.
1295
+ * @param text - New text value
1296
+ */
1297
+ commitEdit(text: string): void;
1298
+ /**
1299
+ * Cancel editing and discard changes.
1300
+ */
1301
+ cancelEdit(): void;
1302
+ }
1303
+ /**
1304
+ * Aggregated interface containing all actor commands.
1305
+ * This is the main interface used by hooks and handlers to interact with actors.
1306
+ *
1307
+ * @example
1308
+ * ```ts
1309
+ * function MyComponent() {
1310
+ * const actors = useActorCommands();
1311
+ *
1312
+ * const handleClick = () => {
1313
+ * actors.selection.selectAll();
1314
+ * actors.editor.startEditing(cell, sheetId);
1315
+ * };
1316
+ * }
1317
+ * ```
1318
+ */
1319
+ export interface ActorCommands {
1320
+ /** Selection machine commands */
1321
+ selection: SelectionCommands;
1322
+ /** Editor machine commands */
1323
+ editor: EditorCommands;
1324
+ /** Clipboard machine commands */
1325
+ clipboard: ClipboardCommands;
1326
+ /** Chart machine commands */
1327
+ chart: ChartCommands;
1328
+ /** Object interaction machine commands */
1329
+ object: ObjectCommands;
1330
+ /** Find-replace machine commands (optional - not all contexts have it) */
1331
+ findReplace?: FindReplaceCommands;
1332
+ /** Pane focus machine commands (optional - not all contexts have it) */
1333
+ paneFocus?: PaneFocusCommands;
1334
+ /** Comment machine commands (optional - not all contexts have it) */
1335
+ comment?: CommentCommands;
1336
+ /** Draw border machine commands (optional - not all contexts have it) */
1337
+ drawBorder?: DrawBorderCommands;
1338
+ /** Renderer machine commands (optional - not all contexts have it) */
1339
+ renderer?: RendererCommands;
1340
+ /** SmartArt machine commands (optional - not all contexts have it) */
1341
+ smartArt?: SmartArtCommands;
1342
+ }
1343
+ //# sourceMappingURL=commands.d.ts.map