@officedk/pptxdk 0.1.0 → 0.2.1

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 (338) hide show
  1. package/dist/build.d.ts +14 -76
  2. package/dist/build.js +69 -97
  3. package/dist/cli.js +1 -1
  4. package/dist/core/dist/capabilities/audio/audio-declaration.js +7 -0
  5. package/dist/core/dist/capabilities/audio/audio-source.js +172 -0
  6. package/dist/core/dist/capabilities/audio/entry.js +122 -0
  7. package/dist/core/dist/capabilities/box/box-codegen.js +83 -0
  8. package/dist/core/dist/capabilities/box/box-declaration.js +32 -0
  9. package/dist/{capabilities/dist → core/dist/capabilities}/box/box.js +32 -29
  10. package/dist/core/dist/capabilities/box/entry.js +2 -0
  11. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-codegen.js +17 -22
  12. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-declaration.js +2 -2
  13. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-import.js +1025 -471
  14. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-labels.js +30 -3
  15. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-model.js +3 -3
  16. package/dist/{capabilities/dist/chart/preview/number-format.js → core/dist/capabilities/chart/chart-number-format.js} +1 -1
  17. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-schemas.js +216 -212
  18. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-xml.js +41 -36
  19. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart.js +228 -171
  20. package/dist/core/dist/capabilities/chart/entry.js +2 -0
  21. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/axes-and-grid.js +23 -10
  22. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/bar-column.js +1 -1
  23. package/dist/core/dist/capabilities/chart/preview/data-labels.js +474 -0
  24. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/error-bars.js +3 -1
  25. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/index.js +30 -9
  26. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/layout.js +160 -89
  27. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/legend.js +4 -4
  28. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/line-area.js +4 -4
  29. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/markers.js +1 -1
  30. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/pie-doughnut.js +39 -60
  31. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scales.js +1 -1
  32. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scatter.js +3 -3
  33. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/style.js +15 -3
  34. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/text-render.js +34 -24
  35. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/trendlines.js +5 -5
  36. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/types.js +1 -1
  37. package/dist/core/dist/capabilities/comment/comment-codegen.js +25 -0
  38. package/dist/core/dist/capabilities/comment/comment-declaration.js +37 -0
  39. package/dist/core/dist/capabilities/comment/comment-import.js +176 -0
  40. package/dist/core/dist/capabilities/comment/comment.js +141 -0
  41. package/dist/core/dist/capabilities/comment/entry.js +1 -0
  42. package/dist/core/dist/capabilities/footer-placeholder/entry.js +2 -0
  43. package/dist/core/dist/capabilities/footer-placeholder/footer-placeholder-codegen.js +16 -0
  44. package/dist/{capabilities/dist/masters → core/dist/capabilities/footer-placeholder}/footer-placeholder.js +194 -133
  45. package/dist/core/dist/capabilities/footer-placeholder/print-header-footer-import.js +121 -0
  46. package/dist/core/dist/capabilities/footer-placeholder/print-header-footer.js +123 -0
  47. package/dist/core/dist/capabilities/group/entry.js +2 -0
  48. package/dist/core/dist/capabilities/group/group-codegen.js +73 -0
  49. package/dist/core/dist/capabilities/group/group-declaration.js +41 -0
  50. package/dist/core/dist/capabilities/group/group-import.js +608 -0
  51. package/dist/{capabilities/dist → core/dist/capabilities}/group/group-xml.js +4 -3
  52. package/dist/core/dist/capabilities/group/group.js +260 -0
  53. package/dist/core/dist/capabilities/image/entry.js +4 -0
  54. package/dist/core/dist/capabilities/image/image-codegen.js +59 -0
  55. package/dist/core/dist/capabilities/image/image-declaration.js +8 -0
  56. package/dist/core/dist/capabilities/image/image-import.js +26 -0
  57. package/dist/core/dist/capabilities/image/image.js +57 -0
  58. package/dist/core/dist/capabilities/line/entry.js +3 -0
  59. package/dist/core/dist/capabilities/line/line-codegen.js +88 -0
  60. package/dist/core/dist/capabilities/line/line-declaration.js +78 -0
  61. package/dist/core/dist/capabilities/line/line-import.js +424 -0
  62. package/dist/core/dist/capabilities/line/line-xml.js +9 -0
  63. package/dist/core/dist/capabilities/line/line.js +329 -0
  64. package/dist/core/dist/capabilities/masters/entry.js +1 -0
  65. package/dist/core/dist/capabilities/masters/masters-codegen.js +50 -0
  66. package/dist/{capabilities/dist → core/dist/capabilities}/masters/masters.js +35 -47
  67. package/dist/core/dist/capabilities/motion/entry.js +5 -0
  68. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-codegen.js +97 -51
  69. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-import.js +653 -102
  70. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-plan.js +317 -163
  71. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-query.js +9 -6
  72. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion.js +357 -108
  73. package/dist/core/dist/capabilities/notes/entry.js +2 -0
  74. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-codegen.js +5 -7
  75. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-declaration.js +2 -2
  76. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-import.js +16 -13
  77. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-schemas.js +12 -9
  78. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes.js +20 -42
  79. package/dist/{import/dist/sections.js → core/dist/capabilities/notes/sections-import.js} +5 -5
  80. package/dist/core/dist/capabilities/placeholder/entry.js +3 -0
  81. package/dist/core/dist/capabilities/placeholder/placeholder-codegen.js +44 -0
  82. package/dist/core/dist/capabilities/placeholder/placeholder-schemas.js +31 -0
  83. package/dist/core/dist/capabilities/placeholder/placeholder.js +394 -0
  84. package/dist/core/dist/capabilities/shape/entry.js +6 -0
  85. package/dist/core/dist/capabilities/shape/shape-codegen.js +112 -0
  86. package/dist/core/dist/capabilities/shape/shape-import.js +152 -0
  87. package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape-xml.js +1 -1
  88. package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape.js +100 -103
  89. package/dist/core/dist/capabilities/shared/container-slots.js +59 -0
  90. package/dist/core/dist/capabilities/shared/date-time.js +98 -0
  91. package/dist/core/dist/capabilities/shared/font/font-embedding.js +118 -0
  92. package/dist/core/dist/capabilities/shared/font/font-engine.js +855 -0
  93. package/dist/core/dist/capabilities/shared/font/font-import.js +805 -0
  94. package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-subset.js +24 -9
  95. package/dist/core/dist/capabilities/shared/font/font.js +72 -0
  96. package/dist/{capabilities/dist/shape/shape-codegen.js → core/dist/capabilities/shared/geometry-codegen.js} +4 -69
  97. package/dist/{capabilities/dist → core/dist/capabilities}/shared/geometry.js +384 -123
  98. package/dist/{capabilities/dist → core/dist/capabilities}/shared/identity.js +56 -38
  99. package/dist/core/dist/capabilities/shared/image-codegen.js +94 -0
  100. package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-decode.js +17 -56
  101. package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-schemas.js +49 -61
  102. package/dist/core/dist/capabilities/shared/line-match.js +78 -0
  103. package/dist/core/dist/capabilities/shared/media-codegen.js +86 -0
  104. package/dist/core/dist/capabilities/shared/media-import.js +156 -0
  105. package/dist/core/dist/capabilities/shared/media-placement.js +20 -0
  106. package/dist/core/dist/capabilities/shared/media-poster.js +50 -0
  107. package/dist/core/dist/capabilities/shared/media-schemas.js +60 -0
  108. package/dist/core/dist/capabilities/shared/media-source.js +107 -0
  109. package/dist/core/dist/capabilities/shared/media-trim.js +102 -0
  110. package/dist/core/dist/capabilities/shared/media.js +134 -0
  111. package/dist/{capabilities/dist → core/dist/capabilities}/shared/morph-api.js +5 -5
  112. package/dist/core/dist/capabilities/shared/motion-api.js +770 -0
  113. package/dist/core/dist/capabilities/shared/motion-schemas.js +353 -0
  114. package/dist/{capabilities/dist/image/image-import.js → core/dist/capabilities/shared/picture-import.js} +313 -168
  115. package/dist/core/dist/capabilities/shared/picture-xml.js +13 -0
  116. package/dist/core/dist/capabilities/shared/picture.js +510 -0
  117. package/dist/core/dist/capabilities/shared/placeholder-import.js +268 -0
  118. package/dist/core/dist/capabilities/shared/placeholder-roles.js +42 -0
  119. package/dist/{capabilities/dist → core/dist/capabilities}/shared/preset-definitions.js +1221 -188
  120. package/dist/core/dist/capabilities/shared/print-xml.js +77 -0
  121. package/dist/core/dist/capabilities/shared/rich-text-codegen.js +119 -0
  122. package/dist/core/dist/capabilities/shared/rich-text-import.js +472 -0
  123. package/dist/core/dist/capabilities/shared/shape-declaration.js +45 -0
  124. package/dist/{capabilities/dist → core/dist/capabilities}/shared/style-inheritance.js +26 -24
  125. package/dist/core/dist/capabilities/shared/text-declaration.js +31 -0
  126. package/dist/core/dist/capabilities/shared/text-schemas.js +241 -0
  127. package/dist/core/dist/capabilities/shared/text-service.js +2563 -0
  128. package/dist/{capabilities/dist → core/dist/capabilities}/shared/visual.js +441 -137
  129. package/dist/core/dist/capabilities/slide-background/entry.js +1 -0
  130. package/dist/core/dist/capabilities/slide-background/slide-background-codegen.js +15 -0
  131. package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background-import.js +12 -7
  132. package/dist/core/dist/capabilities/slide-background/slide-background-xml.js +33 -0
  133. package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background.js +61 -50
  134. package/dist/core/dist/capabilities/table/entry.js +2 -0
  135. package/dist/core/dist/capabilities/table/table-codegen.js +118 -0
  136. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-declaration.js +2 -2
  137. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-import.js +116 -84
  138. package/dist/core/dist/capabilities/table/table-schemas.js +337 -0
  139. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-xml.js +13 -15
  140. package/dist/{capabilities/dist → core/dist/capabilities}/table/table.js +284 -192
  141. package/dist/core/dist/capabilities/text/entry.js +3 -0
  142. package/dist/core/dist/capabilities/text/text-codegen.js +66 -0
  143. package/dist/core/dist/capabilities/text/text-import.js +468 -0
  144. package/dist/{capabilities/dist → core/dist/capabilities}/text/text-xml.js +3 -4
  145. package/dist/{capabilities/dist → core/dist/capabilities}/text/text.js +103 -111
  146. package/dist/core/dist/capabilities/transition/entry.js +3 -0
  147. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-api.js +13 -16
  148. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-codegen.js +2 -3
  149. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-import.js +25 -27
  150. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition.js +23 -23
  151. package/dist/core/dist/capabilities/video/entry.js +77 -0
  152. package/dist/core/dist/capabilities/video/video-declaration.js +7 -0
  153. package/dist/core/dist/capabilities/video/video-source.js +42 -0
  154. package/dist/{codegen/dist → core/dist/codegen}/assets.js +16 -10
  155. package/dist/{codegen/dist → core/dist/codegen}/codegen.js +152 -140
  156. package/dist/{codegen/dist → core/dist/codegen}/identifiers.js +27 -1
  157. package/dist/{codegen/dist → core/dist/codegen}/index.js +2 -2
  158. package/dist/{codegen/dist → core/dist/codegen}/printer.js +23 -4
  159. package/dist/core/dist/document/all.js +41 -0
  160. package/dist/core/dist/document/default.js +10 -0
  161. package/dist/core/dist/document/document.js +218 -0
  162. package/dist/core/dist/document/index.js +62 -0
  163. package/dist/core/dist/document/stages.js +54 -0
  164. package/dist/{emit/dist → core/dist/emit}/emit.js +173 -90
  165. package/dist/core/dist/emit/index.js +6 -0
  166. package/dist/core/dist/emit/ooxml.js +241 -0
  167. package/dist/core/dist/import/import.js +547 -0
  168. package/dist/core/dist/import/index.js +19 -0
  169. package/dist/{import/dist → core/dist/import}/masters.js +404 -328
  170. package/dist/core/dist/import/media-timing.js +233 -0
  171. package/dist/{import/dist → core/dist/import}/notes-masters.js +48 -45
  172. package/dist/core/dist/index.js +47 -15
  173. package/dist/core/dist/{author-ids.js → kernel/author-ids.js} +9 -6
  174. package/dist/core/dist/{author-schemas.js → kernel/author-schemas.js} +105 -127
  175. package/dist/core/dist/{block-flex-layout.js → kernel/block-flex-layout.js} +225 -142
  176. package/dist/core/dist/kernel/build.js +4 -0
  177. package/dist/core/dist/kernel/capability.js +17 -0
  178. package/dist/core/dist/kernel/codegen.js +97 -0
  179. package/dist/core/dist/kernel/container-slots.js +104 -0
  180. package/dist/core/dist/kernel/date-time-format.js +18 -0
  181. package/dist/core/dist/kernel/declaration-snapshot.js +68 -0
  182. package/dist/core/dist/{declaration.js → kernel/declaration.js} +3 -2
  183. package/dist/core/dist/kernel/diagnostics.js +370 -0
  184. package/dist/core/dist/kernel/document-internals.js +26 -0
  185. package/dist/core/dist/{document.js → kernel/document.js} +23 -13
  186. package/dist/core/dist/kernel/drawing-units.js +14 -0
  187. package/dist/core/dist/kernel/font-seal.js +204 -0
  188. package/dist/core/dist/{geometry-schemas.js → kernel/geometry-schemas.js} +21 -18
  189. package/dist/core/dist/{grid-layout.js → kernel/grid-layout.js} +177 -72
  190. package/dist/core/dist/{host.js → kernel/host.js} +1 -1
  191. package/dist/core/dist/kernel/index.js +24 -0
  192. package/dist/core/dist/kernel/input-values.js +62 -0
  193. package/dist/core/dist/kernel/layout-definition.js +7 -0
  194. package/dist/core/dist/{layout-protocol.js → kernel/layout-protocol.js} +5 -10
  195. package/dist/core/dist/{layout-schemas.js → kernel/layout-schemas.js} +33 -44
  196. package/dist/core/dist/kernel/layout.js +339 -0
  197. package/dist/core/dist/kernel/masters.js +171 -0
  198. package/dist/core/dist/{morph.js → kernel/morph.js} +1 -1
  199. package/dist/core/dist/kernel/placeholders.js +289 -0
  200. package/dist/{import/dist → core/dist/kernel/pptx-read}/alternate-content.js +1 -1
  201. package/dist/{import/dist → core/dist/kernel/pptx-read}/diagnostics.js +33 -29
  202. package/dist/core/dist/kernel/pptx-read/drawing-list-import.js +251 -0
  203. package/dist/{import/dist → core/dist/kernel/pptx-read}/fonts.js +71 -12
  204. package/dist/core/dist/kernel/pptx-read/index.js +15 -0
  205. package/dist/{import/dist → core/dist/kernel/pptx-read}/mechanism.js +1 -1
  206. package/dist/core/dist/kernel/pptx-read/media.js +26 -0
  207. package/dist/{import/dist → core/dist/kernel/pptx-read}/namespaces.js +6 -7
  208. package/dist/{import/dist → core/dist/kernel/pptx-read}/opc.js +62 -13
  209. package/dist/{import/dist → core/dist/kernel/pptx-read}/resources.js +1 -1
  210. package/dist/core/dist/kernel/pptx-read/shape-tree.js +57 -0
  211. package/dist/{import/dist → core/dist/kernel/pptx-read}/themes.js +182 -41
  212. package/dist/{import/dist → core/dist/kernel/pptx-read}/visual.js +175 -88
  213. package/dist/core/dist/kernel/pptx-read/xml-fragments.js +320 -0
  214. package/dist/{import/dist → core/dist/kernel/pptx-read}/xml-reader.js +8 -1
  215. package/dist/{emit/dist → core/dist/kernel/pptx-write}/shape-tree.js +1 -1
  216. package/dist/core/dist/kernel/pptx-write/timing.js +52 -0
  217. package/dist/{emit/dist/ooxml.js → core/dist/kernel/pptx-write/xml.js} +133 -290
  218. package/dist/core/dist/{query.js → kernel/query.js} +76 -37
  219. package/dist/core/dist/{resolution.js → kernel/resolution.js} +2 -1
  220. package/dist/core/dist/kernel/resolve-work.js +58 -0
  221. package/dist/core/dist/{resolve.js → kernel/resolve.js} +797 -409
  222. package/dist/core/dist/kernel/resource-source.js +11 -0
  223. package/dist/core/dist/kernel/stage-options.js +312 -0
  224. package/dist/core/dist/{theme.js → kernel/theme.js} +399 -289
  225. package/dist/core/dist/kernel/transform-geometry.js +72 -0
  226. package/dist/core/dist/kernel/xml-values.js +13 -0
  227. package/dist/document-C0lPlH-L.d.ts +1442 -0
  228. package/dist/index-B9_OUeA-.d.ts +2238 -0
  229. package/dist/index-BJEzQxWV.d.ts +75 -0
  230. package/dist/index-DA9flrlR.d.ts +146 -0
  231. package/dist/index-GSt0t9VO.d.ts +54 -0
  232. package/dist/index.d.ts +7 -7
  233. package/dist/index.js +75 -61
  234. package/dist/node.d.ts +37 -35
  235. package/dist/node.js +125 -51
  236. package/dist/pptxdk/src/cli-commands.js +79 -81
  237. package/dist/pptxdk/src/compose.js +32 -24
  238. package/dist/pptxdk/src/preview-result.js +24 -0
  239. package/dist/{capabilities/dist/image → preview/dist}/gif-decoder.js +5 -5
  240. package/dist/preview/dist/index.js +229 -77
  241. package/dist/preview/dist/options.js +17 -26
  242. package/dist/preview/dist/raster.js +66 -0
  243. package/dist/preview/dist/svg-guard.js +1090 -0
  244. package/dist/preview.d.ts +6 -3
  245. package/dist/preview.js +8 -24
  246. package/dist/react/dist/append.js +3 -3
  247. package/dist/react/dist/author/audio-elements.js +14 -0
  248. package/dist/{capabilities/dist/box → react/dist/author}/box-elements.js +5 -3
  249. package/dist/react/dist/author/chart-elements.js +14 -0
  250. package/dist/react/dist/author/comment-elements.js +15 -0
  251. package/dist/react/dist/author/group-elements.js +14 -0
  252. package/dist/react/dist/author/image-elements.js +14 -0
  253. package/dist/react/dist/author/line-elements.js +14 -0
  254. package/dist/{capabilities/dist/motion → react/dist/author}/motion-elements.js +6 -4
  255. package/dist/react/dist/author/notes-elements.js +14 -0
  256. package/dist/react/dist/author/placeholder-elements.js +14 -0
  257. package/dist/react/dist/author/shape-elements.js +14 -0
  258. package/dist/{capabilities/dist/table → react/dist/author}/table-elements.js +6 -4
  259. package/dist/react/dist/author/text-elements.js +64 -0
  260. package/dist/react/dist/author/video-elements.js +14 -0
  261. package/dist/react/dist/document-adapter.js +376 -37
  262. package/dist/react/dist/elements.js +30 -4
  263. package/dist/react/dist/from-vanilla.js +57 -0
  264. package/dist/react/dist/index.js +47 -12
  265. package/dist/react/dist/mount.js +34 -0
  266. package/dist/react/dist/reconciler.js +26 -26
  267. package/dist/react.d.ts +174 -50
  268. package/dist/react.js +31 -27
  269. package/dist/stages-DYHSHKt4.d.ts +80 -0
  270. package/dist/vanilla.d.ts +4 -4
  271. package/dist/vanilla.js +14 -14
  272. package/package.json +6 -8
  273. package/README.md +0 -49
  274. package/dist/capabilities/dist/all.js +0 -32
  275. package/dist/capabilities/dist/box/box-codegen.js +0 -51
  276. package/dist/capabilities/dist/box/box-declaration.js +0 -31
  277. package/dist/capabilities/dist/chart/chart-elements.js +0 -12
  278. package/dist/capabilities/dist/chart/preview/data-labels.js +0 -334
  279. package/dist/capabilities/dist/document.js +0 -148
  280. package/dist/capabilities/dist/font/font-embedding.js +0 -289
  281. package/dist/capabilities/dist/font/font-family.js +0 -10
  282. package/dist/capabilities/dist/font/font-import.js +0 -302
  283. package/dist/capabilities/dist/font/font.js +0 -25
  284. package/dist/capabilities/dist/group/group-codegen.js +0 -51
  285. package/dist/capabilities/dist/group/group-declaration.js +0 -42
  286. package/dist/capabilities/dist/group/group-elements.js +0 -12
  287. package/dist/capabilities/dist/group/group-import.js +0 -319
  288. package/dist/capabilities/dist/group/group.js +0 -211
  289. package/dist/capabilities/dist/image/image-codegen.js +0 -94
  290. package/dist/capabilities/dist/image/image-declaration.js +0 -8
  291. package/dist/capabilities/dist/image/image-elements.js +0 -12
  292. package/dist/capabilities/dist/image/image-xml.js +0 -12
  293. package/dist/capabilities/dist/image/image.js +0 -472
  294. package/dist/capabilities/dist/masters/masters-codegen.js +0 -21
  295. package/dist/capabilities/dist/motion/motion-api.js +0 -527
  296. package/dist/capabilities/dist/motion/motion-schemas.js +0 -216
  297. package/dist/capabilities/dist/notes/notes-elements.js +0 -12
  298. package/dist/capabilities/dist/notes/notes-xml.js +0 -38
  299. package/dist/capabilities/dist/placeholder/placeholder-codegen.js +0 -23
  300. package/dist/capabilities/dist/placeholder/placeholder-elements.js +0 -12
  301. package/dist/capabilities/dist/placeholder/placeholder.js +0 -292
  302. package/dist/capabilities/dist/shape/shape-declaration.js +0 -57
  303. package/dist/capabilities/dist/shape/shape-elements.js +0 -12
  304. package/dist/capabilities/dist/shape/shape-import.js +0 -579
  305. package/dist/capabilities/dist/shared/placeholder-import.js +0 -113
  306. package/dist/capabilities/dist/shared/style-parse.js +0 -11
  307. package/dist/capabilities/dist/shared/text-schemas.js +0 -216
  308. package/dist/capabilities/dist/shared/text-service.js +0 -1883
  309. package/dist/capabilities/dist/slide-background/slide-background-codegen.js +0 -44
  310. package/dist/capabilities/dist/slide-background/slide-background-xml.js +0 -21
  311. package/dist/capabilities/dist/table/table-codegen.js +0 -81
  312. package/dist/capabilities/dist/table/table-schemas.js +0 -279
  313. package/dist/capabilities/dist/text/text-codegen.js +0 -129
  314. package/dist/capabilities/dist/text/text-declaration.js +0 -19
  315. package/dist/capabilities/dist/text/text-elements.js +0 -38
  316. package/dist/capabilities/dist/text/text-import.js +0 -1077
  317. package/dist/capability-D_xeNVIw.d.ts +0 -29496
  318. package/dist/codegen/dist/types.js +0 -49
  319. package/dist/core/dist/build.js +0 -4
  320. package/dist/core/dist/capability.js +0 -13
  321. package/dist/core/dist/diagnostics.js +0 -21
  322. package/dist/core/dist/document-internals.js +0 -13
  323. package/dist/core/dist/input-values.js +0 -45
  324. package/dist/core/dist/layout.js +0 -299
  325. package/dist/core/dist/masters.js +0 -169
  326. package/dist/core/dist/placeholders.js +0 -213
  327. package/dist/core/dist/stage-options.js +0 -67
  328. package/dist/document-BHPUODPP.d.ts +0 -27759
  329. package/dist/emit/dist/index.js +0 -5
  330. package/dist/import/dist/import.js +0 -504
  331. package/dist/import/dist/index.js +0 -16
  332. package/dist/import/dist/xml-fragments.js +0 -36
  333. package/dist/index-B5m3hqjC.d.ts +0 -7
  334. package/dist/index-CCy-Yo8G.d.ts +0 -1208
  335. package/dist/index-DpxcZ4Gs.d.ts +0 -725
  336. package/dist/pptxdk/src/slide.js +0 -9
  337. package/dist/preview-Cfw0QdMM.d.ts +0 -86
  338. package/dist/transition-Cips9wma.d.ts +0 -82
@@ -0,0 +1,1442 @@
1
+ import { t as ArrowType } from "./index-DA9flrlR.js";
2
+ import { $n as TextStyle, A as SlideContainer, C as CommonNode, Cn as PresetGeometryName, Dn as BorderValue, Fn as FontOptions, G as SlideMasterCoreProps, Gn as LinearGradient, H as SlideLayoutDefinition$1, Ht as MorphKey, I as FooterPlaceholders, It as ScreenPoint, Jt as ContentPlaceholderRole, L as HeaderFooter, M as SlideMasterContainer, Mn as Font, Nn as FontFace, O as RichTextContainer, On as BoxShadowValue, Rt as SlideLocator, S as CommonContainer, Sn as PresetGeometry, Tn as BorderObject, V as SlideLayoutCoreDataProps, W as SlideMasterCoreDataProps, Yt as EmptyPlaceholderMap, a as SectionProps, ar as ThemeOverride, c as SlideDateTimeValue, d as SlideStyle, dn as LayoutStyle, fn as NonNegativeLayoutSpacing, i as LinkTarget, j as SlideLayoutContainer, jn as ColorValue, jt as ResolvedSlide, k as RichTextItem, kn as ColorMap, l as SlideFooterValue, mi as AuthorId, mt as MediaTrim, nn as PlaceholderMap, o as SlideBackground, on as TextList, pn as PaddingStyle, qn as RadialGradient, r as DeckCoreProps, s as SlideCoreDataProps, sr as VisualStyle, u as SlideNumberValue, vn as CustomGeometry, w as DeckContainer, wi as DateTimeFormat, wn as BackgroundValue, xi as ResourceSource, yn as Geometry, zn as GradientStop } from "./index-B9_OUeA-.js";
3
+ import { z } from "zod";
4
+ declare function preset(name: PresetGeometryName, adjust?: Readonly<Record<string, number>>): PresetGeometry;
5
+ /**
6
+ * Native blockArc (annular arc segment). Angles are in degrees, measured clockwise from 3 o'clock, consistent with DrawingML;
7
+ * thickness represents the ring width as a fraction of the shape's shorter side.
8
+ */
9
+ declare function blockArc(options: {
10
+ readonly startAngle: number;
11
+ readonly endAngle: number;
12
+ readonly thickness: number;
13
+ }): PresetGeometry;
14
+ type PathOptions = {
15
+ /** Dimensions of the local coordinate space, similar to an SVG viewBox starting from 0,0. */
16
+ readonly viewBox: readonly [number, number];
17
+ readonly fill?: boolean | undefined;
18
+ readonly stroke?: boolean | undefined;
19
+ /** Fill rule for SVG path data; see `path`. */
20
+ readonly fillRule?: "nonzero" | "evenodd" | undefined;
21
+ };
22
+ /**
23
+ * Creates custom geometry from SVG path data. Multiple subpaths in a single string constitute the same native path; pass an array for separately stroked paths.
24
+ *
25
+ * PPTX does not have fill rules, so different applications interpret them individually. The default `fillRule: "nonzero"` writes paths as-is;
26
+ * in all applications, inner subpaths whose direction opposes the outer contour form holes. When set to `"evenodd"`, subpaths alternate directions according to nesting
27
+ * depth, allowing applications to display even-odd fill results. Subpaths that overlap without nesting, or self-intersecting subpaths, cannot achieve consistency this way.
28
+ */
29
+ declare function path(data: string | readonly string[], options: PathOptions): CustomGeometry;
30
+ type MorphProps = {
31
+ readonly morphKey?: MorphKey | undefined;
32
+ };
33
+ type MotionDirection = "left" | "right" | "top" | "bottom";
34
+ type EntrancePreset = "appear" | "fade" | "wipe" | "zoom" | "fly" | "floatUp" | "floatDown" | "spinIn" | "stretch";
35
+ type EmphasisPreset = "spin" | "breathe" | "fillColor";
36
+ type ExitPreset = "disappear" | "fadeOut" | "wipeOut" | "flyOut" | "zoomOut" | "floatOut" | "spinOut" | "collapse";
37
+ type EffectPreset = EntrancePreset | EmphasisPreset | ExitPreset;
38
+ type RepeatCount = number | "forever";
39
+ type MotionGranularity = "paragraph" | "word" | "letter" | "series" | "category" | "seriesElements" | "categoryElements";
40
+ type MotionChartStep = "gridLegend" | "series" | "category" | "ptInSeries" | "ptInCategory";
41
+ type MotionTargetRange = {
42
+ readonly type: "paragraph";
43
+ readonly start: number;
44
+ readonly end: number;
45
+ } | {
46
+ readonly type: "chart";
47
+ readonly step: MotionChartStep;
48
+ readonly seriesIndex: number;
49
+ readonly categoryIndex: number;
50
+ };
51
+ type Easing = {
52
+ readonly accelerate?: number | undefined;
53
+ readonly decelerate?: number | undefined;
54
+ };
55
+ type InstantEffectOptions = {
56
+ readonly delay?: number | undefined;
57
+ readonly intervalMs?: number | undefined;
58
+ readonly by?: MotionGranularity | undefined;
59
+ };
60
+ type EffectOptions = {
61
+ readonly duration?: number | undefined;
62
+ readonly delay?: number | undefined;
63
+ readonly easing?: Easing | undefined;
64
+ readonly intervalMs?: number | undefined;
65
+ readonly by?: MotionGranularity | undefined;
66
+ };
67
+ type SpinDeltaOptions = Omit<EffectOptions, "by"> & {
68
+ readonly by?: number | undefined;
69
+ readonly from?: undefined;
70
+ readonly to?: undefined;
71
+ };
72
+ type SpinEndpointsOptions = EffectOptions & {
73
+ readonly from?: number | undefined;
74
+ readonly to?: number | undefined;
75
+ };
76
+ type SpinOptions = SpinDeltaOptions | SpinEndpointsOptions;
77
+ declare const spinOptionsSchema: z.ZodType<SpinOptions>;
78
+ type FillColorOptions = {
79
+ readonly duration?: number | undefined;
80
+ readonly delay?: number | undefined;
81
+ readonly easing?: Easing | undefined;
82
+ readonly from: string;
83
+ readonly to: string;
84
+ };
85
+ type BreatheOptions = {
86
+ readonly period: number;
87
+ readonly from: string;
88
+ readonly to: string;
89
+ readonly delay?: number | undefined;
90
+ readonly easing?: Easing | undefined;
91
+ };
92
+ type EffectCommon = {
93
+ readonly type: "effect";
94
+ readonly duration: number;
95
+ readonly delay: number;
96
+ readonly from?: MotionDirection | number | undefined;
97
+ readonly to?: number | undefined;
98
+ readonly fromColor?: string | undefined;
99
+ readonly toColor?: string | undefined;
100
+ readonly easing?: Easing | undefined;
101
+ readonly by?: MotionGranularity | number | undefined;
102
+ readonly intervalMs?: number | undefined;
103
+ };
104
+ type EntranceEffect = EffectCommon & {
105
+ readonly kind: "entrance";
106
+ readonly preset: EntrancePreset;
107
+ };
108
+ type EmphasisEffect = EffectCommon & {
109
+ readonly kind: "emphasis";
110
+ readonly preset: EmphasisPreset;
111
+ };
112
+ type ExitEffect = EffectCommon & {
113
+ readonly kind: "exit";
114
+ readonly preset: ExitPreset;
115
+ };
116
+ type BreatheEffect = EffectCommon & {
117
+ readonly kind: "emphasis";
118
+ readonly preset: "breathe";
119
+ readonly fromColor: string;
120
+ readonly toColor: string;
121
+ };
122
+ type Effect = EntranceEffect | EmphasisEffect | ExitEffect;
123
+ type RepeatedEffect<E extends Effect = Effect> = {
124
+ readonly type: "repeated-effect";
125
+ readonly effect: E;
126
+ readonly count: RepeatCount;
127
+ };
128
+ type SteppedEffect<D extends EntranceEffect | RepeatedEffect<EntranceEffect> | EmphasisEffect | RepeatedEffect<EmphasisEffect> | ExitEffect | RepeatedEffect<ExitEffect> = EntranceEffect | RepeatedEffect<EntranceEffect> | EmphasisEffect | RepeatedEffect<EmphasisEffect> | ExitEffect | RepeatedEffect<ExitEffect>> = {
129
+ readonly type: "stepped-effect";
130
+ readonly step: number;
131
+ readonly effect: D;
132
+ };
133
+ type EntranceEffectDeclaration = EntranceEffect | RepeatedEffect<EntranceEffect> | SteppedEffect<EntranceEffect | RepeatedEffect<EntranceEffect>>;
134
+ type EmphasisEffectDeclaration = EmphasisEffect | RepeatedEffect<EmphasisEffect> | SteppedEffect<EmphasisEffect | RepeatedEffect<EmphasisEffect>>;
135
+ type ExitEffectDeclaration = ExitEffect | RepeatedEffect<ExitEffect> | SteppedEffect<ExitEffect | RepeatedEffect<ExitEffect>>;
136
+ type MotionScopeMode = "parallel" | "sequence" | "stagger";
137
+ type MotionCompletionState = "known" | "unknown" | "no-natural-completion";
138
+ type MotionMoment = {
139
+ readonly type: "motion-moment";
140
+ readonly scope: string;
141
+ readonly point: "start" | "end" | "named";
142
+ readonly name?: string | undefined;
143
+ };
144
+ type MotionMomentOffset = {
145
+ readonly type: "motion-offset";
146
+ readonly moment: MotionMoment;
147
+ readonly offsetMs: number;
148
+ };
149
+ type MotionTiming = MotionMoment | MotionMomentOffset;
150
+ type MotionScopeHandle = {
151
+ readonly type: "motion-scope-handle";
152
+ readonly identity: string;
153
+ readonly start: MotionMoment;
154
+ readonly end: MotionMoment;
155
+ cue(name: string): MotionMoment;
156
+ };
157
+ type MotionProps = {
158
+ readonly enter?: EntranceEffectDeclaration | readonly EntranceEffectDeclaration[] | undefined;
159
+ readonly emphasis?: EmphasisEffectDeclaration | readonly EmphasisEffectDeclaration[] | undefined;
160
+ readonly exit?: ExitEffectDeclaration | readonly ExitEffectDeclaration[] | undefined;
161
+ readonly startAt?: MotionTiming | undefined;
162
+ readonly publishStart?: MotionMoment | undefined;
163
+ readonly publishEnd?: MotionMoment | undefined;
164
+ readonly motion?: boolean | undefined;
165
+ };
166
+ type MotionScopeAuthorProps = {
167
+ readonly scope: MotionScopeHandle;
168
+ readonly mode?: MotionScopeMode | undefined;
169
+ readonly each?: number | undefined;
170
+ readonly delay?: number | undefined;
171
+ readonly startAt?: MotionTiming | undefined;
172
+ readonly publishStart?: MotionMoment | undefined;
173
+ readonly publishEnd?: MotionMoment | undefined;
174
+ readonly motion?: boolean | undefined;
175
+ };
176
+ type MotionStepAuthorProps = {
177
+ readonly n?: number | undefined;
178
+ };
179
+ /** Structured target and step timing declaration retained directly on `SlideMaster` and `SlideLayout` owners. */
180
+ type OwnerMotionTarget = {
181
+ readonly placeholder: string;
182
+ } | {
183
+ readonly spid: number;
184
+ };
185
+ type OwnerMotionEffect = {
186
+ readonly target: OwnerMotionTarget;
187
+ readonly effect: EntranceEffect | RepeatedEffect<EntranceEffect> | EmphasisEffect | RepeatedEffect<EmphasisEffect> | ExitEffect | RepeatedEffect<ExitEffect>;
188
+ readonly range?: MotionTargetRange | undefined;
189
+ };
190
+ type OwnerMotionStep = {
191
+ readonly trigger: "auto" | "click";
192
+ readonly effects: readonly OwnerMotionEffect[];
193
+ };
194
+ type OwnerMotion = {
195
+ readonly steps: readonly OwnerMotionStep[];
196
+ };
197
+ type ImageFit = "fill" | "cover" | "contain";
198
+ type ImageCropInput = {
199
+ readonly left?: number | undefined;
200
+ readonly top?: number | undefined;
201
+ readonly right?: number | undefined;
202
+ readonly bottom?: number | undefined;
203
+ };
204
+ /**
205
+ * Image source accepted by `Image` / `image()`.
206
+ *
207
+ * Supports raster bitmap formats (**PNG, JPEG, GIF**) passed as a local file path, `file:` `URL`,
208
+ * or `Uint8Array` bytes, or `{ externalUrl }` for linked external images. `.svg` files are not
209
+ * supported; use `Shape` with `path()` custom geometry (`geometry={path(...)}`) for native
210
+ * editable vector graphics.
211
+ */
212
+ type ImageSource = ResourceSource;
213
+ /** Visual styling supported on Image objects. */
214
+ type ImageVisualStyle = {
215
+ readonly background?: BackgroundValue | undefined;
216
+ readonly border?: BorderValue | undefined;
217
+ readonly opacity?: number | undefined;
218
+ readonly boxShadow?: BoxShadowValue | undefined;
219
+ readonly softEdge?: number | undefined;
220
+ readonly rotate?: number | undefined;
221
+ readonly flipH?: boolean | undefined;
222
+ readonly flipV?: boolean | undefined;
223
+ };
224
+ type ImageStyle = LayoutStyle & ImageVisualStyle;
225
+ type ImageDeclarationProps = MotionProps & {
226
+ readonly id?: AuthorId | undefined;
227
+ readonly name?: string | undefined;
228
+ readonly placeholder?: string | undefined;
229
+ readonly morphKey?: MorphKey | undefined;
230
+ readonly link?: LinkTarget | undefined;
231
+ /**
232
+ * Image source (PNG, JPEG, or GIF local path, `file:` `URL`, or `Uint8Array` bytes; or `{ externalUrl }`).
233
+ *
234
+ * `.svg` files are not supported; for native editable vector graphics, use `Shape` with `path()`
235
+ * custom geometry (`geometry={path(...)}`).
236
+ */
237
+ readonly src: ImageSource;
238
+ /** Alternative text for the image. */
239
+ readonly alt?: string | undefined;
240
+ readonly geometry?: Geometry | undefined;
241
+ readonly style?: ImageStyle | undefined;
242
+ /** `fill` stretches, `cover` crops centered, `contain` preserves aspect ratio; defaults to `fill`. */
243
+ readonly fit?: ImageFit | undefined;
244
+ /** Explicit crop fraction for each side of the original image; takes precedence over `fit` when provided. */
245
+ readonly crop?: ImageCropInput | undefined;
246
+ };
247
+ /** Standalone playback controls for an audio or video object. */
248
+ type MediaPlaybackProps = {
249
+ readonly autoPlay?: boolean | undefined;
250
+ readonly loop?: boolean | undefined;
251
+ readonly muted?: boolean | undefined;
252
+ /** Volume from 0 to 1, defaulting to 0 when muted and otherwise 1. */
253
+ readonly volume?: number | undefined;
254
+ readonly trim?: MediaTrim | undefined;
255
+ };
256
+ type CommonMediaProps = Pick<ImageDeclarationProps, "id" | "name" | "alt"> & MediaPlaybackProps & {
257
+ readonly src: ResourceSource;
258
+ readonly poster?: ImageSource | undefined;
259
+ };
260
+ type AudioDeclarationProps = CommonMediaProps & {
261
+ readonly style?: LayoutStyle | undefined;
262
+ /** Defaults to the value of autoPlay. */
263
+ readonly hideDuringShow?: boolean | undefined;
264
+ };
265
+ type VideoDeclarationProps = CommonMediaProps & Pick<ImageDeclarationProps, "placeholder" | "morphKey" | "geometry" | "style" | "fit" | "crop">;
266
+ type AudioSource = ResourceSource;
267
+ type AudioNode = CommonNode<"audio", AudioDeclarationProps, LayoutStyle>;
268
+ type BoxStyle = LayoutStyle & TextStyle & VisualStyle;
269
+ /** Layout container appearance with visual styling that optionally generates a native background shape. */
270
+ type BoxDeclarationProps = MotionProps & {
271
+ readonly id?: AuthorId | undefined;
272
+ readonly morphKey?: MorphKey | undefined;
273
+ readonly link?: LinkTarget | undefined;
274
+ readonly style?: BoxStyle | undefined;
275
+ };
276
+ type ChartKind = "column" | "bar" | "line" | "area" | "pie" | "doughnut" | "scatter";
277
+ type ChartTextStyle = Omit<TextStyle, "textWrap">;
278
+ type ChartStyle = LayoutStyle & ChartTextStyle;
279
+ type ChartTitle = string | {
280
+ readonly text: string;
281
+ readonly style?: ChartTextStyle | undefined;
282
+ };
283
+ type ChartLineDash = "solid" | "dash" | "dot" | "dashDot" | "longDash" | "longDashDot" | "longDashDotDot";
284
+ type ChartLine = {
285
+ readonly color?: ColorValue | undefined;
286
+ readonly width?: number | undefined;
287
+ readonly dash?: ChartLineDash | undefined;
288
+ };
289
+ type ChartMarkerSymbol = "auto" | "circle" | "dash" | "diamond" | "dot" | "none" | "plus" | "square" | "star" | "triangle" | "x";
290
+ type ChartMarker = {
291
+ readonly symbol?: ChartMarkerSymbol | undefined;
292
+ readonly size?: number | undefined;
293
+ readonly fill?: ColorValue | undefined;
294
+ readonly line?: ChartLine | undefined;
295
+ };
296
+ type ChartDataLabelPosition = "center" | "insideEnd" | "insideBase" | "outsideEnd" | "bestFit" | "left" | "right" | "bottom" | "top";
297
+ type ChartDataLabels<Position extends ChartDataLabelPosition = ChartDataLabelPosition> = {
298
+ readonly value?: boolean | undefined;
299
+ readonly percent?: boolean | undefined;
300
+ readonly category?: boolean | undefined;
301
+ readonly seriesName?: boolean | undefined;
302
+ readonly separator?: string | undefined;
303
+ readonly numberFormat?: string | undefined;
304
+ readonly leaderLines?: boolean | ChartLine | undefined;
305
+ readonly style?: ChartTextStyle | undefined;
306
+ readonly position?: Position | undefined;
307
+ };
308
+ type ChartDataLabelOverride = {
309
+ /** Custom label text replaces the automatic fields. Newlines start separate lines. */
310
+ readonly text?: string | undefined;
311
+ readonly value?: boolean | undefined;
312
+ readonly percent?: boolean | undefined;
313
+ readonly category?: boolean | undefined;
314
+ readonly seriesName?: boolean | undefined;
315
+ readonly separator?: string | undefined;
316
+ readonly numberFormat?: string | undefined;
317
+ readonly style?: ChartTextStyle | undefined;
318
+ readonly position?: ChartDataLabelPosition | undefined;
319
+ };
320
+ type ChartSeriesDataLabelOverride = {
321
+ readonly value?: boolean | undefined;
322
+ readonly percent?: boolean | undefined;
323
+ readonly category?: boolean | undefined;
324
+ readonly seriesName?: boolean | undefined;
325
+ readonly separator?: string | undefined;
326
+ readonly numberFormat?: string | undefined;
327
+ readonly leaderLines?: boolean | ChartLine | undefined;
328
+ readonly style?: ChartTextStyle | undefined;
329
+ readonly position?: ChartDataLabelPosition | undefined;
330
+ };
331
+ type ScatterDataLabels = {
332
+ readonly value?: boolean | undefined;
333
+ readonly seriesName?: boolean | undefined;
334
+ readonly xValue?: boolean | undefined;
335
+ readonly separator?: string | undefined;
336
+ readonly numberFormat?: string | undefined;
337
+ readonly style?: ChartTextStyle | undefined;
338
+ readonly position?: "left" | "right" | "bottom" | "top" | "center" | undefined;
339
+ };
340
+ type ScatterDataLabelOverride = {
341
+ /** Custom label text replaces the automatic fields. Newlines start separate lines. */
342
+ readonly text?: string | undefined;
343
+ readonly value?: boolean | undefined;
344
+ readonly seriesName?: boolean | undefined;
345
+ readonly xValue?: boolean | undefined;
346
+ readonly separator?: string | undefined;
347
+ readonly numberFormat?: string | undefined;
348
+ readonly style?: ChartTextStyle | undefined;
349
+ readonly position?: "left" | "right" | "bottom" | "top" | "center" | undefined;
350
+ };
351
+ type ChartPoint = {
352
+ readonly color?: ColorValue | undefined;
353
+ readonly line?: ChartLine | undefined;
354
+ readonly explosion?: number | undefined;
355
+ readonly marker?: boolean | ChartMarker | undefined;
356
+ readonly dataLabels?: false | ChartDataLabelOverride | undefined;
357
+ };
358
+ type ScatterChartPoint = {
359
+ readonly color?: ColorValue | undefined;
360
+ readonly line?: ChartLine | undefined;
361
+ readonly marker?: boolean | ChartMarker | undefined;
362
+ readonly dataLabels?: false | ScatterDataLabelOverride | undefined;
363
+ };
364
+ type ChartTrendlineType = "linear" | "exponential" | "logarithmic" | "polynomial" | "power" | "movingAverage";
365
+ type ChartTrendline = {
366
+ readonly line?: ChartLine | undefined;
367
+ readonly forward?: number | undefined;
368
+ readonly backward?: number | undefined;
369
+ readonly displayEquation?: boolean | undefined;
370
+ readonly displayRSquared?: boolean | undefined;
371
+ readonly type: "linear" | "exponential";
372
+ readonly intercept?: number | undefined;
373
+ readonly order?: undefined;
374
+ readonly period?: undefined;
375
+ } | {
376
+ readonly line?: ChartLine | undefined;
377
+ readonly forward?: number | undefined;
378
+ readonly backward?: number | undefined;
379
+ readonly displayEquation?: boolean | undefined;
380
+ readonly displayRSquared?: boolean | undefined;
381
+ readonly type: "logarithmic" | "power";
382
+ readonly intercept?: undefined;
383
+ readonly order?: undefined;
384
+ readonly period?: undefined;
385
+ } | {
386
+ readonly line?: ChartLine | undefined;
387
+ readonly forward?: number | undefined;
388
+ readonly backward?: number | undefined;
389
+ readonly displayEquation?: boolean | undefined;
390
+ readonly displayRSquared?: boolean | undefined;
391
+ readonly type: "polynomial";
392
+ readonly order: number;
393
+ readonly intercept?: number | undefined;
394
+ readonly period?: undefined;
395
+ } | {
396
+ readonly line?: ChartLine | undefined;
397
+ readonly forward?: number | undefined;
398
+ readonly backward?: number | undefined;
399
+ readonly type: "movingAverage";
400
+ readonly period: number;
401
+ readonly intercept?: undefined;
402
+ readonly order?: undefined;
403
+ readonly displayEquation?: undefined;
404
+ readonly displayRSquared?: undefined;
405
+ };
406
+ type ChartErrorBarValues = readonly (number | null)[];
407
+ type ChartErrorBarInclude = "both" | "plus" | "minus";
408
+ type ChartCustomErrorBars = {
409
+ readonly endCap?: boolean | undefined;
410
+ readonly line?: ChartLine | undefined;
411
+ readonly type: "custom";
412
+ readonly include?: "both" | undefined;
413
+ readonly plus: ChartErrorBarValues;
414
+ readonly minus: ChartErrorBarValues;
415
+ readonly value?: undefined;
416
+ } | {
417
+ readonly endCap?: boolean | undefined;
418
+ readonly line?: ChartLine | undefined;
419
+ readonly type: "custom";
420
+ readonly include: "plus";
421
+ readonly plus: ChartErrorBarValues;
422
+ readonly minus?: undefined;
423
+ readonly value?: undefined;
424
+ } | {
425
+ readonly endCap?: boolean | undefined;
426
+ readonly line?: ChartLine | undefined;
427
+ readonly type: "custom";
428
+ readonly include: "minus";
429
+ readonly minus: ChartErrorBarValues;
430
+ readonly plus?: undefined;
431
+ readonly value?: undefined;
432
+ };
433
+ type ChartErrorBars = {
434
+ readonly endCap?: boolean | undefined;
435
+ readonly line?: ChartLine | undefined;
436
+ readonly include?: ChartErrorBarInclude | undefined;
437
+ readonly type: "fixed" | "percentage" | "standardDeviation";
438
+ readonly value: number;
439
+ readonly plus?: undefined;
440
+ readonly minus?: undefined;
441
+ } | {
442
+ readonly endCap?: boolean | undefined;
443
+ readonly line?: ChartLine | undefined;
444
+ readonly include?: ChartErrorBarInclude | undefined;
445
+ readonly type: "standardError";
446
+ readonly value?: undefined;
447
+ readonly plus?: undefined;
448
+ readonly minus?: undefined;
449
+ } | ChartCustomErrorBars;
450
+ type ScatterErrorBars = {
451
+ readonly x?: ChartErrorBars | undefined;
452
+ readonly y?: ChartErrorBars | undefined;
453
+ };
454
+ type ChartSeries = {
455
+ readonly name: string;
456
+ readonly color?: ColorValue | undefined;
457
+ readonly line?: ChartLine | undefined;
458
+ readonly explosion?: number | undefined;
459
+ readonly dataLabels?: false | ChartSeriesDataLabelOverride | undefined;
460
+ readonly marker?: boolean | ChartMarker | undefined;
461
+ readonly points?: Readonly<Record<number, ChartPoint>> | undefined;
462
+ readonly trendlines?: readonly ChartTrendline[] | undefined;
463
+ readonly values: readonly (number | null)[];
464
+ readonly smooth?: boolean | undefined;
465
+ readonly errorBars?: ChartErrorBars | undefined;
466
+ };
467
+ type IndependentCategorySeries = {
468
+ readonly name: string;
469
+ readonly color?: ColorValue | undefined;
470
+ readonly line?: ChartLine | undefined;
471
+ readonly explosion?: number | undefined;
472
+ readonly dataLabels?: false | ChartSeriesDataLabelOverride | undefined;
473
+ readonly marker?: boolean | ChartMarker | undefined;
474
+ readonly points?: Readonly<Record<number, ChartPoint>> | undefined;
475
+ readonly trendlines?: readonly ChartTrendline[] | undefined;
476
+ readonly categories: readonly string[];
477
+ readonly values: readonly (number | null)[];
478
+ readonly smooth?: boolean | undefined;
479
+ readonly errorBars?: ChartErrorBars | undefined;
480
+ };
481
+ type ScatterChartSeries = {
482
+ readonly name: string;
483
+ readonly x: readonly (number | null)[];
484
+ readonly y: readonly (number | null)[];
485
+ readonly color?: ColorValue | undefined;
486
+ readonly line?: ChartLine | undefined;
487
+ readonly dataLabels?: false | ScatterDataLabels | undefined;
488
+ readonly marker?: boolean | ChartMarker | undefined;
489
+ readonly points?: Readonly<Record<number, ScatterChartPoint>> | undefined;
490
+ readonly trendlines?: readonly ChartTrendline[] | undefined;
491
+ readonly errorBars?: ScatterErrorBars | undefined;
492
+ };
493
+ type SharedCategoryData = {
494
+ readonly kind: "shared-categories";
495
+ readonly categories: readonly string[];
496
+ };
497
+ type ChartGroupData = SharedCategoryData;
498
+ type IndependentCategoryData = {
499
+ readonly kind: "independent-categories";
500
+ };
501
+ type ScatterData = {
502
+ readonly kind: "xy";
503
+ };
504
+ type ChartTickMark = "none" | "in" | "out" | "cross";
505
+ type ChartTickLabelPosition = "nextTo" | "high" | "low" | "none";
506
+ type ChartAxisCrossing = "autoZero" | "max" | "min";
507
+ type ChartAxisPosition = "bottom" | "top" | "left" | "right";
508
+ type ChartDisplayBlanksAs = "gap" | "zero" | "span";
509
+ type ChartCategoryAxis = {
510
+ readonly kind: "category";
511
+ readonly visible?: boolean | undefined;
512
+ readonly gridlines?: boolean | ChartLine | undefined;
513
+ readonly minorGridlines?: boolean | ChartLine | undefined;
514
+ readonly line?: boolean | ChartLine | undefined;
515
+ readonly style?: ChartTextStyle | undefined;
516
+ readonly title?: ChartTitle | undefined;
517
+ readonly majorTickMark?: ChartTickMark | undefined;
518
+ readonly minorTickMark?: ChartTickMark | undefined;
519
+ readonly tickLabelPosition?: ChartTickLabelPosition | undefined;
520
+ readonly reversed?: boolean | undefined;
521
+ readonly position?: ChartAxisPosition | undefined;
522
+ readonly crosses?: ChartAxisCrossing | undefined;
523
+ readonly crossesAt?: number | undefined;
524
+ };
525
+ type ChartValueAxis = {
526
+ readonly kind: "value";
527
+ readonly visible?: boolean | undefined;
528
+ readonly gridlines?: boolean | ChartLine | undefined;
529
+ readonly minorGridlines?: boolean | ChartLine | undefined;
530
+ readonly line?: boolean | ChartLine | undefined;
531
+ readonly style?: ChartTextStyle | undefined;
532
+ readonly title?: ChartTitle | undefined;
533
+ readonly majorTickMark?: ChartTickMark | undefined;
534
+ readonly minorTickMark?: ChartTickMark | undefined;
535
+ readonly tickLabelPosition?: ChartTickLabelPosition | undefined;
536
+ readonly reversed?: boolean | undefined;
537
+ readonly position?: ChartAxisPosition | undefined;
538
+ readonly crosses?: ChartAxisCrossing | undefined;
539
+ readonly crossesAt?: number | undefined;
540
+ readonly min?: number | undefined;
541
+ readonly max?: number | undefined;
542
+ readonly majorUnit?: number | undefined;
543
+ readonly minorUnit?: number | undefined;
544
+ readonly numberFormat?: string | undefined;
545
+ readonly logBase?: number | undefined;
546
+ };
547
+ type ChartAxis = ChartCategoryAxis | ChartValueAxis;
548
+ type ChartAxes = Readonly<Record<string, ChartAxis>>;
549
+ type ChartCategoryAxisReferences = {
550
+ readonly category: string;
551
+ readonly value: string;
552
+ };
553
+ type ChartXYAxisReferences = {
554
+ readonly x: string;
555
+ readonly y: string;
556
+ };
557
+ type ChartAxisReferences = ChartCategoryAxisReferences | ChartXYAxisReferences;
558
+ type ScatterLine = false | "straight" | "smooth";
559
+ type ColumnOrBarChartGroup = {
560
+ readonly kind: "column" | "bar";
561
+ readonly data: SharedCategoryData;
562
+ readonly series: readonly ChartSeries[];
563
+ readonly axes?: ChartCategoryAxisReferences | undefined;
564
+ readonly gapWidth?: number | undefined;
565
+ readonly overlap?: number | undefined;
566
+ readonly stacking?: undefined;
567
+ readonly dataLabels?: false | ChartDataLabels<"center" | "insideEnd" | "insideBase" | "outsideEnd"> | undefined;
568
+ } | {
569
+ readonly kind: "column" | "bar";
570
+ readonly data: SharedCategoryData;
571
+ readonly series: readonly ChartSeries[];
572
+ readonly axes?: ChartCategoryAxisReferences | undefined;
573
+ readonly gapWidth?: number | undefined;
574
+ readonly overlap?: number | undefined;
575
+ readonly stacking: "stacked" | "percent";
576
+ readonly dataLabels?: false | ChartDataLabels<"center" | "insideEnd" | "insideBase"> | undefined;
577
+ };
578
+ type LineChartGroup = {
579
+ readonly kind: "line";
580
+ readonly data: SharedCategoryData;
581
+ readonly series: readonly ChartSeries[];
582
+ readonly axes?: ChartCategoryAxisReferences | undefined;
583
+ readonly stacking?: "stacked" | "percent" | undefined;
584
+ readonly dataLabels?: false | ChartDataLabels<"left" | "right" | "bottom" | "top" | "center"> | undefined;
585
+ };
586
+ type AreaChartGroup = {
587
+ readonly kind: "area";
588
+ readonly data: SharedCategoryData;
589
+ readonly series: readonly ChartSeries[];
590
+ readonly axes?: ChartCategoryAxisReferences | undefined;
591
+ readonly stacking?: "stacked" | "percent" | undefined;
592
+ readonly dataLabels?: false | (Omit<ChartDataLabels, "position"> & {
593
+ readonly position?: never;
594
+ }) | undefined;
595
+ };
596
+ type LineOrAreaChartGroup = LineChartGroup | AreaChartGroup;
597
+ type PieChartGroup = {
598
+ readonly kind: "pie";
599
+ readonly data: SharedCategoryData;
600
+ readonly series: readonly ChartSeries[];
601
+ readonly explosion?: number | undefined;
602
+ readonly firstSliceAngle?: number | undefined;
603
+ readonly dataLabels?: false | ChartDataLabels<"center" | "insideEnd" | "outsideEnd" | "bestFit"> | undefined;
604
+ };
605
+ type DoughnutChartGroup = {
606
+ readonly kind: "doughnut";
607
+ readonly explosion?: number | undefined;
608
+ readonly firstSliceAngle?: number | undefined;
609
+ readonly holeSize?: number | undefined;
610
+ readonly data: SharedCategoryData;
611
+ readonly series: readonly ChartSeries[];
612
+ readonly dataLabels?: false | (Omit<ChartDataLabels, "position"> & {
613
+ readonly position?: never;
614
+ }) | undefined;
615
+ } | {
616
+ readonly kind: "doughnut";
617
+ readonly explosion?: number | undefined;
618
+ readonly firstSliceAngle?: number | undefined;
619
+ readonly holeSize?: number | undefined;
620
+ readonly data: IndependentCategoryData;
621
+ readonly series: readonly IndependentCategorySeries[];
622
+ readonly dataLabels?: false | (Omit<ChartDataLabels, "position"> & {
623
+ readonly position?: never;
624
+ }) | undefined;
625
+ };
626
+ type ScatterChartGroup = {
627
+ readonly kind: "scatter";
628
+ readonly data: ScatterData;
629
+ readonly series: readonly ScatterChartSeries[];
630
+ readonly axes?: ChartXYAxisReferences | undefined;
631
+ readonly line?: ScatterLine | undefined;
632
+ readonly markers?: boolean | undefined;
633
+ readonly dataLabels?: false | ScatterDataLabels | undefined;
634
+ };
635
+ type ChartGroup = ColumnOrBarChartGroup | LineOrAreaChartGroup | PieChartGroup | DoughnutChartGroup | ScatterChartGroup;
636
+ type ChartLegend = false | "top" | "bottom" | "left" | "right" | "topRight";
637
+ /**
638
+ * Explicit plot-area rectangle inside the chart box, in pixels (`px`) relative to the chart box's
639
+ * top-left corner (`{ left, top, width, height }`, not `0..1` fractions).
640
+ */
641
+ type ChartPlotArea = {
642
+ readonly left: number;
643
+ readonly top: number;
644
+ readonly width: number;
645
+ readonly height: number;
646
+ };
647
+ type ChartProps = MotionProps & {
648
+ readonly id?: AuthorId | undefined;
649
+ readonly name?: string | undefined;
650
+ readonly placeholder?: string | undefined;
651
+ readonly morphKey?: MorphKey | undefined;
652
+ readonly link?: LinkTarget | undefined;
653
+ readonly axes?: ChartAxes | undefined;
654
+ /**
655
+ * Non-empty list of chart series groups; each group shares one `kind`, group options, `data` mode, and `series`.
656
+ *
657
+ * @example
658
+ * ```ts
659
+ * groups: [
660
+ * {
661
+ * kind: "column",
662
+ * data: { kind: "shared-categories", categories: ["Q1", "Q2"] },
663
+ * series: [{ name: "Revenue", values: [120, 150] }],
664
+ * },
665
+ * ]
666
+ * ```
667
+ */
668
+ readonly groups: readonly ChartGroup[];
669
+ /** Overrides native theme colors, fonts, and formatting for this chart part. */
670
+ readonly themeOverride?: ThemeOverride | undefined;
671
+ /** Maps all twelve scheme color slots within this chart's effective theme. */
672
+ readonly colorMapOverride?: ColorMap | undefined;
673
+ readonly title?: ChartTitle | undefined;
674
+ readonly displayBlanksAs?: ChartDisplayBlanksAs | undefined;
675
+ readonly legend?: ChartLegend | undefined;
676
+ /** Text style overrides for the visible legend. */
677
+ readonly legendStyle?: ChartTextStyle | undefined;
678
+ /**
679
+ * Explicit plot-area rectangle `{ left, top, width, height }` in pixels (`px`) relative to the
680
+ * chart box's top-left corner (not `0..1` fractions). When omitted, automatic margins are computed.
681
+ */
682
+ readonly plotArea?: ChartPlotArea | undefined;
683
+ readonly style?: ChartStyle | undefined;
684
+ };
685
+ type ChartNode = CommonNode<"chart", ChartProps, NonNullable<ChartProps["style"]>>;
686
+ /** Fixed text or an enabled native date field with format and language overrides. */
687
+ type PrintDateTimeValue = boolean | string | {
688
+ readonly format?: DateTimeFormat | undefined;
689
+ readonly lang?: string | undefined;
690
+ };
691
+ /** Four independent print slots. A string enables its slot, including empty text. */
692
+ type PrintHeaderFooter = {
693
+ readonly header?: boolean | string | undefined;
694
+ readonly footer?: boolean | string | undefined;
695
+ readonly pageNumber?: boolean | undefined;
696
+ readonly dateTime?: PrintDateTimeValue | undefined;
697
+ };
698
+ type GroupStyle = LayoutStyle & TextStyle & Pick<VisualStyle, "rotate" | "flipH" | "flipV">;
699
+ /** Native Group preserves member relationships; style allows it to arrange as a layout child, with output bounds computed from the union of member geometries. */
700
+ type GroupDeclarationProps = MotionProps & {
701
+ readonly id?: AuthorId | undefined;
702
+ readonly name?: string | undefined;
703
+ readonly morphKey?: MorphKey | undefined;
704
+ readonly link?: LinkTarget | undefined;
705
+ readonly style?: GroupStyle | undefined;
706
+ };
707
+ declare function linearGradient(angle: number, ...stops: readonly (GradientStop | ColorValue)[]): LinearGradient;
708
+ declare function radialGradient(...stops: readonly (GradientStop | ColorValue)[]): RadialGradient;
709
+ type LineEndStyle = {
710
+ readonly startArrow?: ArrowType | undefined;
711
+ readonly endArrow?: ArrowType | undefined;
712
+ };
713
+ type LineStroke = BorderObject & LineEndStyle;
714
+ type LineStrokeValue = "none" | LineStroke;
715
+ type LineRouting = "straight" | "elbow" | "curved";
716
+ type LinePort = "top" | "right" | "bottom" | "left" | number;
717
+ type LineEndpoint = {
718
+ readonly id: AuthorId;
719
+ readonly port: LinePort;
720
+ } | {
721
+ readonly x: number;
722
+ readonly y: number;
723
+ };
724
+ type LineAdjust = {
725
+ readonly adj1?: number | undefined;
726
+ readonly adj2?: number | undefined;
727
+ readonly adj3?: number | undefined;
728
+ };
729
+ type LineVisualStyle = Pick<VisualStyle, "rotate" | "flipH" | "flipV" | "opacity" | "boxShadow">;
730
+ type LineLayoutStyle = Omit<LayoutStyle, keyof PaddingStyle>;
731
+ type LineStyle = LineLayoutStyle & LineVisualStyle;
732
+ type LineDeclarationProps = MotionProps & {
733
+ readonly id?: AuthorId | undefined;
734
+ readonly name?: string | undefined;
735
+ readonly morphKey?: MorphKey | undefined;
736
+ readonly link?: LinkTarget | undefined;
737
+ readonly routing?: LineRouting | undefined;
738
+ readonly adjust?: LineAdjust | undefined;
739
+ readonly stroke?: LineStrokeValue | undefined;
740
+ readonly from?: LineEndpoint | undefined;
741
+ readonly to?: LineEndpoint | undefined;
742
+ readonly style?: LineStyle | undefined;
743
+ };
744
+ /** Creates a Font value; resources are read only from caller-provided bytes. */
745
+ declare function font(family: string, faces?: readonly FontFace[], options?: FontOptions): Font;
746
+ /**
747
+ * Unpacks a TrueType/OpenType Collection (`.ttc` / `.otc`) buffer by extracting all static
748
+ * faces matching `family` (or the sole family when `options.substitute` is `true`) and returns
749
+ * a sealed `Font` value with isolated face byte buffers.
750
+ */
751
+ declare function fromFontCollection(bytes: Uint8Array, family: string, options?: FontOptions): Font;
752
+ /** Unknown start constraint points to the start or end time of an effect, effect collection for the same object, or real scope. */
753
+ type MotionStartDependency = {
754
+ readonly targetId: number;
755
+ readonly effectIndex: number;
756
+ readonly partIndex?: number;
757
+ readonly point: "end";
758
+ readonly offsetMs: number;
759
+ } | {
760
+ readonly targetId: number;
761
+ readonly group: "effects";
762
+ readonly point: "end";
763
+ readonly offsetMs: number;
764
+ } | {
765
+ readonly scopeId: string;
766
+ readonly point: "start" | "end";
767
+ readonly offsetMs: number;
768
+ };
769
+ /**
770
+ * Creates a React-independent scope identity and its start/end/named moments.
771
+ *
772
+ * The returned handle keeps its identity when nodes are moved or rebuilt. React authoring keeps one
773
+ * handle per component instance and passes it to `MotionScope`, while plain authoring can create it
774
+ * directly. Cues are values derived from the same identity, not React keys or author ids.
775
+ */
776
+ declare function createMotionScopeHandle(): MotionScopeHandle;
777
+ /** Schedules an explicit non-negative offset after any moment handle. */
778
+ declare function after(timing: MotionTiming, offsetMs: number): MotionMomentOffset;
779
+ /** Creates instant reveal declaration (`entr#1`); no transition filter or duration. */
780
+ declare function appear(options?: InstantEffectOptions): EntranceEffect;
781
+ /** Creates pure fade-in declaration; default duration is 500 ms. */
782
+ declare function fade(options?: EffectOptions): EntranceEffect;
783
+ /** Wipes in from specified edge; default direction is bottom. */
784
+ declare function wipe(options?: EffectOptions & {
785
+ readonly from?: MotionDirection;
786
+ }): EntranceEffect;
787
+ /** Zooms in from origin and fades in. */
788
+ declare function zoom(options?: EffectOptions): EntranceEffect;
789
+ /** Flies in from specified slide edge; default direction is bottom. */
790
+ declare function fly(options?: EffectOptions & {
791
+ readonly from?: MotionDirection;
792
+ }): EntranceEffect;
793
+ /** Fades in and floats up. */
794
+ declare function floatUp(options?: EffectOptions): EntranceEffect;
795
+ /** Fades in and floats down from above; default duration is 500 ms. */
796
+ declare function floatDown(options?: EffectOptions): EntranceEffect;
797
+ /** Zooms, rotates, and fades in. */
798
+ declare function spinIn(options?: EffectOptions): EntranceEffect;
799
+ /** Stretches from center line. */
800
+ declare function stretch(options?: EffectOptions): EntranceEffect;
801
+ /** Creates instant hide declaration (`exit#1`); sets visibility hidden without transition duration. */
802
+ declare function disappear(options?: InstantEffectOptions): ExitEffect;
803
+ /** Fades out and sets visibility hidden at completion; default duration is 500 ms. */
804
+ declare function fadeOut(options?: EffectOptions): ExitEffect;
805
+ /** Wipes out toward specified edge and hides at completion; default direction is bottom. */
806
+ declare function wipeOut(options?: EffectOptions & {
807
+ readonly from?: MotionDirection;
808
+ }): ExitEffect;
809
+ /** Flies out toward specified slide edge and hides at completion; default direction is bottom. */
810
+ declare function flyOut(options?: EffectOptions & {
811
+ readonly from?: MotionDirection;
812
+ }): ExitEffect;
813
+ /** Zooms out to center, fades out, and hides at completion. */
814
+ declare function zoomOut(options?: EffectOptions): ExitEffect;
815
+ /** Fades out, floats downward, and hides at completion. */
816
+ declare function floatOut(options?: EffectOptions): ExitEffect;
817
+ /** Spins out, shrinks, fades out, and hides at completion. */
818
+ declare function spinOut(options?: EffectOptions): ExitEffect;
819
+ /** Collapses toward center line and hides at completion. */
820
+ declare function collapse(options?: EffectOptions): ExitEffect;
821
+ /** Rotates between specified `from`/`to` endpoint angles (defaulting to 360 -> 0, or 0 -> `to` when only `to` is declared), or rotates relative to initial angle using signed `by`. */
822
+ declare function spin(options?: SpinOptions): EmphasisEffect;
823
+ /** Changes from from to to and maintains terminal state; non-repeating, non-reversing, default duration is 500 ms. */
824
+ declare function fillColor(options: FillColorOptions): EmphasisEffect;
825
+ /** Declares dark->light half-cycle of Shape fill color; native autoRev reverses it to form a full cycle. */
826
+ declare function breathe(options: BreatheOptions): BreatheEffect;
827
+ /** Wraps supported effect with specified total rounds; forever applies only to breathe. */
828
+ declare function repeat<E extends Effect>(effect: E, count: RepeatCount): RepeatedEffect<E>;
829
+ /** Routes an entrance, emphasis, or exit effect declaration to the 1-based click step `n`. */
830
+ declare function onStep<D extends EntranceEffect | RepeatedEffect<EntranceEffect> | EmphasisEffect | RepeatedEffect<EmphasisEffect> | ExitEffect | RepeatedEffect<ExitEffect>>(n: number, effect: D): SteppedEffect<D>;
831
+ type ResolvedMotionEffect = {
832
+ readonly target: {
833
+ readonly id: number;
834
+ readonly name: string;
835
+ readonly authorId?: string;
836
+ readonly range?: MotionTargetRange;
837
+ };
838
+ readonly kind: Effect["kind"];
839
+ readonly preset: EffectPreset;
840
+ /** Single effect duration; breathe indicates full round-trip cycle, not representing total length of fine-grained unfolding. */
841
+ readonly durationMs: number;
842
+ /** Total rounds of complete breathe cycle; forever indicates persisting on current slide with no natural completion. */
843
+ readonly repeatCount?: RepeatCount;
844
+ readonly delayMs: number;
845
+ /** Text or chart granularity; in spin, represents relative rotation angle in degrees. */
846
+ readonly by?: MotionGranularity | number;
847
+ readonly intervalMs?: number;
848
+ readonly from?: MotionDirection | number;
849
+ readonly to?: number;
850
+ readonly fromColor?: string;
851
+ readonly toColor?: string;
852
+ readonly easing?: Easing;
853
+ readonly startMs?: number;
854
+ readonly endMs?: number;
855
+ readonly completion?: Exclude<MotionCompletionState, "known">;
856
+ readonly startAfter?: MotionStartDependency;
857
+ /** When unknown start is jointly constrained by multiple real moments, lists all sources and relative offsets. */
858
+ readonly startAfterAll?: readonly MotionStartDependency[];
859
+ };
860
+ type ResolvedMotionStep = {
861
+ readonly trigger: "auto" | "click";
862
+ readonly number?: number;
863
+ readonly effects: readonly ResolvedMotionEffect[];
864
+ };
865
+ /** Corresponding real member effects and timing identity in PPTX for a logical Group effect. */
866
+ type MotionNativeProjection = {
867
+ readonly logicalTargetId: number;
868
+ readonly logicalEffectIndex: number;
869
+ readonly preset: EffectPreset;
870
+ readonly nativeEffects: readonly {
871
+ readonly targetId: number;
872
+ readonly timingId: number;
873
+ }[];
874
+ };
875
+ type ResolvedMotionScope = {
876
+ readonly id: string;
877
+ readonly parentId?: string;
878
+ readonly mode: MotionScopeMode;
879
+ readonly eachMs?: number;
880
+ readonly delayMs: number;
881
+ readonly startMs?: number;
882
+ readonly endMs?: number;
883
+ readonly completion: MotionCompletionState;
884
+ readonly startAfter?: MotionStartDependency;
885
+ /** When unknown start is jointly constrained by multiple real moments, lists all sources and relative offsets. */
886
+ readonly startAfterAll?: readonly MotionStartDependency[];
887
+ readonly members: readonly ({
888
+ readonly kind: "scope";
889
+ readonly id: string;
890
+ } | {
891
+ readonly kind: "object";
892
+ readonly id: number;
893
+ })[];
894
+ };
895
+ type RunTextStyle = Pick<TextStyle, "fontFamily" | "eastAsianFontFamily" | "fontSize" | "fontWeight" | "fontStyle" | "color" | "letterSpacing" | "textTransform" | "textDecoration" | "textShadow" | "textStroke" | "lang"> & {
896
+ /** Non-zero baseline offset percentage (e.g. `"30%"` for superscript, `"-25%"` for subscript). */
897
+ readonly baselineShift?: `${number}%` | undefined;
898
+ };
899
+ type ParagraphStyle = Omit<RunTextStyle, "baselineShift"> & Pick<TextStyle, "lineHeight" | "align" | "spacingAfter"> & {
900
+ /** Left margin of the paragraph in logical pixels. */
901
+ readonly marginLeft?: number | undefined;
902
+ /** Offset of the first line from the paragraph margin in logical pixels. Negative values produce a hanging indent. */
903
+ readonly indent?: number | undefined;
904
+ readonly list?: TextList | undefined;
905
+ };
906
+ type TextBoxStyle = LayoutStyle & TextStyle & VisualStyle;
907
+ type TextDeclarationProps = MotionProps & {
908
+ readonly id?: AuthorId | undefined;
909
+ readonly name?: string | undefined;
910
+ readonly placeholder?: string | undefined;
911
+ readonly morphKey?: MorphKey | undefined;
912
+ readonly link?: LinkTarget | undefined;
913
+ readonly style?: TextBoxStyle | undefined;
914
+ };
915
+ type ParagraphDeclarationProps = MotionProps & {
916
+ readonly id?: AuthorId | undefined;
917
+ readonly style?: ParagraphStyle | undefined;
918
+ };
919
+ type SpanDeclarationProps = {
920
+ readonly id?: AuthorId | undefined;
921
+ readonly style?: RunTextStyle | undefined;
922
+ };
923
+ type DateTimeDeclarationProps = {
924
+ readonly id?: AuthorId | undefined;
925
+ readonly format?: DateTimeFormat | undefined;
926
+ readonly style?: SpanDeclarationProps["style"];
927
+ };
928
+ type SlideNumberDeclarationProps = SpanDeclarationProps;
929
+ type SupDeclarationProps = SpanDeclarationProps;
930
+ type SubDeclarationProps = SpanDeclarationProps;
931
+ type NotesDeclarationProps = {
932
+ readonly id?: AuthorId | undefined;
933
+ readonly style?: TextStyle | undefined;
934
+ };
935
+ type PlaceholderObjectStyle = LayoutStyle & VisualStyle;
936
+ type PlaceholderDeclarationProps = {
937
+ readonly id?: AuthorId | undefined;
938
+ readonly name?: string | undefined;
939
+ readonly morphKey?: MorphKey | undefined;
940
+ readonly placeholder?: string | undefined;
941
+ readonly link?: LinkTarget | undefined;
942
+ readonly style?: PlaceholderObjectStyle | undefined;
943
+ };
944
+ type PlaceholderNode = CommonNode<"placeholder", PlaceholderDeclarationProps>;
945
+ declare const placeholderFillsByRole: {
946
+ readonly title: readonly ["text"];
947
+ readonly ctrTitle: readonly ["text"];
948
+ readonly subTitle: readonly ["text"];
949
+ readonly body: readonly ["text"];
950
+ readonly dt: readonly ["text"];
951
+ readonly ftr: readonly ["text"];
952
+ readonly hdr: readonly ["text"];
953
+ readonly sldNum: readonly ["slide-number"];
954
+ readonly pic: readonly ["image"];
955
+ readonly clipArt: readonly ["image"];
956
+ readonly tbl: readonly ["table"];
957
+ readonly chart: readonly ["chart"];
958
+ readonly content: readonly ["text", "image", "video", "table", "chart"];
959
+ readonly obj: readonly ["text", "image", "video", "table", "chart"];
960
+ readonly dgm: readonly ["placeholder"];
961
+ readonly media: readonly ["placeholder", "video"];
962
+ };
963
+ type PlaceholderFillKindForRole<Role extends ContentPlaceholderRole> = (typeof placeholderFillsByRole)[Role][number];
964
+ type ShapeStyle = LayoutStyle & VisualStyle & TextStyle;
965
+ type ShapeDeclarationProps = MotionProps & {
966
+ readonly id?: AuthorId | undefined;
967
+ readonly name?: string | undefined;
968
+ readonly morphKey?: MorphKey | undefined;
969
+ readonly link?: LinkTarget | undefined;
970
+ readonly geometry?: Geometry | undefined;
971
+ readonly style?: ShapeStyle | undefined;
972
+ };
973
+ /** Pure text style type for Shape; does not depend on the text box capability module. */
974
+ type ShapeTextStyle = TextStyle;
975
+ type TableVerticalAlign = "top" | "middle" | "bottom";
976
+ type TableColumn = number | `${number}fr` | "auto";
977
+ type TableSpacing = NonNegativeLayoutSpacing;
978
+ type TableTextStyle = Pick<TextStyle, "fontFamily" | "eastAsianFontFamily" | "fontSize" | "fontWeight" | "fontStyle" | "color" | "lineHeight" | "align" | "verticalAlign" | "letterSpacing" | "textTransform" | "textDecoration" | "textShadow" | "textStroke" | "lang">;
979
+ type TableStyle = TableTextStyle & LayoutStyle & {
980
+ readonly background?: BackgroundValue | undefined;
981
+ readonly border?: BorderValue | undefined;
982
+ readonly borderTop?: BorderValue | undefined;
983
+ readonly borderRight?: BorderValue | undefined;
984
+ readonly borderBottom?: BorderValue | undefined;
985
+ readonly borderLeft?: BorderValue | undefined;
986
+ };
987
+ type TableRowStyle = TableTextStyle & {
988
+ /** When unspecified, row height is determined from text measurement of unmerged cells in this row. */
989
+ readonly height?: number | undefined;
990
+ readonly background?: BackgroundValue | undefined;
991
+ readonly border?: BorderValue | undefined;
992
+ readonly borderTop?: BorderValue | undefined;
993
+ readonly borderRight?: BorderValue | undefined;
994
+ readonly borderBottom?: BorderValue | undefined;
995
+ readonly borderLeft?: BorderValue | undefined;
996
+ };
997
+ type TableCellStyle = TableTextStyle & {
998
+ readonly background?: BackgroundValue | undefined;
999
+ readonly border?: BorderValue | undefined;
1000
+ readonly borderTop?: BorderValue | undefined;
1001
+ readonly borderRight?: BorderValue | undefined;
1002
+ readonly borderBottom?: BorderValue | undefined;
1003
+ readonly borderLeft?: BorderValue | undefined;
1004
+ readonly padding?: NonNegativeLayoutSpacing | undefined;
1005
+ readonly paddingTop?: number | undefined;
1006
+ readonly paddingRight?: number | undefined;
1007
+ readonly paddingBottom?: number | undefined;
1008
+ readonly paddingLeft?: number | undefined;
1009
+ };
1010
+ type TableDeclarationProps = MotionProps & {
1011
+ readonly id?: string | undefined;
1012
+ readonly name?: string | undefined;
1013
+ readonly placeholder?: string | undefined;
1014
+ readonly morphKey?: MorphKey | undefined;
1015
+ readonly link?: LinkTarget | undefined;
1016
+ readonly columns: readonly TableColumn[];
1017
+ readonly style?: TableStyle | undefined;
1018
+ };
1019
+ type RowDeclarationProps = {
1020
+ readonly id?: string | undefined;
1021
+ readonly style?: TableRowStyle | undefined;
1022
+ };
1023
+ type CellDeclarationProps = {
1024
+ readonly id?: string | undefined;
1025
+ readonly colSpan?: number | undefined;
1026
+ readonly rowSpan?: number | undefined;
1027
+ readonly style?: TableCellStyle | undefined;
1028
+ };
1029
+ type TableNode = CommonContainer<"table", TableDeclarationProps, NonNullable<TableDeclarationProps["style"]>>;
1030
+ type RowNode = CommonContainer<"row", RowDeclarationProps, NonNullable<RowDeclarationProps["style"]>>;
1031
+ type CellNode = RichTextContainer<"cell", CellDeclarationProps, NonNullable<CellDeclarationProps["style"]>>;
1032
+ type TransitionDuration = number;
1033
+ type TransitionDirection = "left" | "right" | "top" | "bottom";
1034
+ type StripsDirection = "leftUp" | "rightUp" | "leftDown" | "rightDown";
1035
+ type TransitionSpeed = "fast" | "med" | "slow";
1036
+ type StandardTransition = {
1037
+ readonly type: "transition";
1038
+ readonly kind: "fade";
1039
+ readonly duration?: TransitionDuration | undefined;
1040
+ } | {
1041
+ readonly type: "transition";
1042
+ readonly kind: "strips";
1043
+ readonly duration?: TransitionDuration | undefined;
1044
+ readonly direction: StripsDirection;
1045
+ } | {
1046
+ readonly type: "transition";
1047
+ readonly kind: "push";
1048
+ readonly duration?: TransitionDuration | undefined;
1049
+ readonly from: TransitionDirection;
1050
+ };
1051
+ /** p14 Flip transition; must provide a baseline format fallback for other consumers. */
1052
+ type FlipTransition = {
1053
+ readonly type: "transition";
1054
+ readonly kind: "flip";
1055
+ readonly duration?: TransitionDuration | undefined;
1056
+ readonly direction: "left" | "right";
1057
+ readonly fallback: StandardTransition;
1058
+ };
1059
+ /** p159 Morph transition; must provide a baseline format fallback for other consumers. */
1060
+ type MorphTransition = {
1061
+ readonly type: "transition";
1062
+ readonly kind: "morph";
1063
+ readonly duration?: TransitionDuration | undefined;
1064
+ readonly by: "object" | "word" | "character";
1065
+ readonly fallback: StandardTransition;
1066
+ };
1067
+ type Transition = StandardTransition | FlipTransition | MorphTransition;
1068
+ type FadeTransitionOptions = {
1069
+ readonly duration?: TransitionDuration | undefined;
1070
+ };
1071
+ type StripsTransitionOptions = {
1072
+ readonly duration?: TransitionDuration | undefined;
1073
+ readonly direction?: StripsDirection | undefined;
1074
+ };
1075
+ type PushTransitionOptions = {
1076
+ readonly duration?: TransitionDuration | undefined;
1077
+ readonly from?: TransitionDirection | undefined;
1078
+ };
1079
+ type FlipTransitionOptions = {
1080
+ readonly duration?: TransitionDuration | undefined;
1081
+ readonly direction?: "left" | "right" | undefined;
1082
+ readonly fallback: StandardTransition;
1083
+ };
1084
+ type MorphTransitionOptions = {
1085
+ readonly duration?: TransitionDuration | undefined;
1086
+ readonly by?: "object" | "word" | "character" | undefined;
1087
+ readonly fallback: StandardTransition;
1088
+ };
1089
+ /** Creates baseline and extended transition values used for slide, layout, and master transition declarations. */
1090
+ declare const transitions: Readonly<{
1091
+ /** Uses baseline fade effect; defaults to slow speed. */
1092
+ fade: (options?: FadeTransitionOptions) => StandardTransition;
1093
+ /** Uses baseline strips effect toward the specified diagonal direction. */
1094
+ strips: (options?: StripsTransitionOptions) => StandardTransition;
1095
+ /** Uses baseline push effect entering from the slide edge. */
1096
+ push: (options?: PushTransitionOptions) => StandardTransition;
1097
+ /** Uses p14 Flip with an explicit baseline fallback for targets that exclude extensions. */
1098
+ flip: (options: FlipTransitionOptions) => FlipTransition;
1099
+ /** Uses p159 Morph with an explicit baseline fallback for targets that exclude extensions. */
1100
+ morph: (options: MorphTransitionOptions) => MorphTransition;
1101
+ }>;
1102
+ type VideoSource = ResourceSource;
1103
+ type VideoNode = CommonNode<"video", VideoDeclarationProps, NonNullable<VideoDeclarationProps["style"]>>;
1104
+ type MotionTime = {
1105
+ readonly state: "known";
1106
+ readonly ms: number;
1107
+ } | {
1108
+ readonly state: "unknown";
1109
+ } | {
1110
+ readonly state: "no-natural-completion";
1111
+ };
1112
+ type MotionDecision = {
1113
+ readonly state: "known";
1114
+ readonly value: boolean;
1115
+ } | {
1116
+ readonly state: "unknown";
1117
+ readonly reason: "insufficient-facts" | "different-step";
1118
+ } | {
1119
+ readonly state: "no-natural-completion";
1120
+ };
1121
+ type MotionDifference = {
1122
+ readonly state: "known";
1123
+ readonly ms: number;
1124
+ } | {
1125
+ readonly state: "unknown";
1126
+ readonly reason: "insufficient-facts" | "different-step";
1127
+ readonly minimumMs?: number;
1128
+ readonly maximumMs?: number;
1129
+ } | {
1130
+ readonly state: "no-natural-completion";
1131
+ };
1132
+ type MotionStepRef = object;
1133
+ type MotionEffectRef = {
1134
+ readonly targetId: number;
1135
+ readonly effectIndex: number;
1136
+ readonly partIndex?: number;
1137
+ };
1138
+ type MotionScopeRef = {
1139
+ readonly id: string;
1140
+ };
1141
+ type MotionCueRef = {
1142
+ readonly name: string;
1143
+ readonly scopeId: string;
1144
+ readonly point: "start" | "end";
1145
+ };
1146
+ type MotionMomentRef = {
1147
+ readonly kind: "effect";
1148
+ readonly effect: MotionEffectRef;
1149
+ readonly point: "start" | "end";
1150
+ } | {
1151
+ readonly kind: "scope";
1152
+ readonly scope: MotionScopeRef;
1153
+ readonly point: "start" | "end";
1154
+ };
1155
+ type MotionIntervalRef = MotionEffectRef | MotionScopeRef;
1156
+ type ResolvedMotionMoment = ({
1157
+ readonly ref: MotionMomentRef;
1158
+ } & {
1159
+ readonly state: "known";
1160
+ readonly ms: number;
1161
+ }) | ({
1162
+ readonly ref: MotionMomentRef;
1163
+ } & {
1164
+ readonly state: "unknown";
1165
+ }) | ({
1166
+ readonly ref: MotionMomentRef;
1167
+ } & {
1168
+ readonly state: "no-natural-completion";
1169
+ });
1170
+ type EffectInstance = ResolvedMotionEffect & {
1171
+ readonly ref: MotionEffectRef;
1172
+ readonly effectIndex: number;
1173
+ readonly partIndex?: number;
1174
+ readonly scopes: readonly MotionScopeRef[];
1175
+ readonly start: ResolvedMotionMoment;
1176
+ readonly end: ResolvedMotionMoment;
1177
+ };
1178
+ type MotionScopeQueryMember = {
1179
+ readonly kind: "scope";
1180
+ readonly ref: MotionScopeRef;
1181
+ } | {
1182
+ readonly kind: "effect";
1183
+ readonly ref: MotionEffectRef;
1184
+ };
1185
+ type MotionScopeSchedule = {
1186
+ readonly ref: MotionScopeRef;
1187
+ readonly step: MotionStepRef;
1188
+ readonly parent?: MotionScopeRef;
1189
+ readonly mode: MotionScopeMode;
1190
+ readonly eachMs?: number;
1191
+ readonly delayMs: number;
1192
+ readonly members: readonly MotionScopeQueryMember[];
1193
+ readonly start: ResolvedMotionMoment;
1194
+ readonly end: ResolvedMotionMoment;
1195
+ };
1196
+ type MotionCue = {
1197
+ readonly ref: MotionCueRef;
1198
+ readonly name: string;
1199
+ readonly publishedBy: MotionScopeRef;
1200
+ readonly point: "start" | "end";
1201
+ readonly at: MotionMomentRef;
1202
+ };
1203
+ type MotionDependency = {
1204
+ readonly kind: "scope-start";
1205
+ readonly scope: MotionScopeRef;
1206
+ readonly source: MotionMomentRef;
1207
+ readonly offsetMs: number;
1208
+ } | {
1209
+ readonly kind: "cue-use";
1210
+ readonly scope: MotionScopeRef;
1211
+ readonly cue: MotionCueRef;
1212
+ readonly offsetMs: number;
1213
+ } | {
1214
+ readonly kind: "cue-publish";
1215
+ readonly cue: MotionCueRef;
1216
+ readonly scope: MotionScopeRef;
1217
+ readonly point: "start" | "end";
1218
+ } | {
1219
+ readonly kind: "start-after";
1220
+ readonly effect: MotionEffectRef;
1221
+ readonly source: MotionStartDependency;
1222
+ };
1223
+ type MotionMembership = {
1224
+ readonly complete: boolean;
1225
+ readonly items: readonly {
1226
+ readonly effect: MotionEffectRef;
1227
+ readonly result: MotionDecision;
1228
+ }[];
1229
+ };
1230
+ type MotionStepQuery = {
1231
+ readonly ref: MotionStepRef;
1232
+ readonly trigger: "auto" | "click";
1233
+ readonly number?: number;
1234
+ readonly effects: readonly EffectInstance[];
1235
+ readonly scopes: readonly MotionScopeSchedule[];
1236
+ readonly dependencies: readonly MotionDependency[];
1237
+ readonly cues: readonly MotionCue[];
1238
+ difference(from: MotionMomentRef, to: MotionMomentRef): MotionDifference;
1239
+ before(from: MotionMomentRef, to: MotionMomentRef): MotionDecision;
1240
+ overlap(a: MotionIntervalRef, b: MotionIntervalRef): MotionDecision;
1241
+ intervalsCovering(ms: number, effects?: readonly MotionEffectRef[]): MotionMembership;
1242
+ };
1243
+ type MotionSchedule = {
1244
+ readonly evidence: "generation";
1245
+ readonly steps: readonly MotionStepQuery[];
1246
+ };
1247
+ /** Accepts only resolved slides or slide locators directly emitted by the current build; reread files will not masquerade as build results. */
1248
+ declare function motionSchedule(slide: ResolvedSlide | SlideLocator): MotionSchedule | undefined;
1249
+ type CommentAuthorProps = {
1250
+ readonly id?: AuthorId | undefined;
1251
+ readonly author: string;
1252
+ /** Defaults to the uppercase first character of each whitespace-delimited word in the author name. */
1253
+ readonly initials?: string | undefined;
1254
+ /** Anchor in slide pixels. Defaults to a per-slide diagonal starting at (24, 24). */
1255
+ readonly position?: ScreenPoint | undefined;
1256
+ /** XML date-time string or Date. Omit to leave the timestamp unset. */
1257
+ readonly createdAt?: Date | string | undefined;
1258
+ };
1259
+ type CommentDeclarationProps = CommentAuthorProps & {
1260
+ readonly text: string;
1261
+ };
1262
+ type CommentNode = CommonNode<"comment", CommentDeclarationProps>;
1263
+ /** Attaches a plain-text review comment when appended directly to a slide. */
1264
+ declare function comment(props: CommentAuthorProps, text: string): CommentNode;
1265
+ type DeckProps = DeckCoreProps & {
1266
+ /** Header, date, footer and page number on the notes print master. */
1267
+ readonly notesHeaderFooter?: PrintHeaderFooter | undefined;
1268
+ /** Header, date, footer and page number on the handout print master. */
1269
+ readonly handoutHeaderFooter?: PrintHeaderFooter | undefined;
1270
+ };
1271
+ /** Complete root `DeckProps` schema including capability-owned print header/footer properties. */
1272
+ declare const deckPropsSchema: z.ZodType<DeckProps>;
1273
+ type AnimatedContainerProps = {
1274
+ readonly background?: SlideBackground | undefined;
1275
+ readonly style?: SlideStyle | undefined;
1276
+ readonly transition?: Transition | undefined;
1277
+ readonly advanceAfter?: number | undefined;
1278
+ };
1279
+ type MasterLayoutCapabilityProps = AnimatedContainerProps & {
1280
+ readonly headerFooter?: HeaderFooter | undefined;
1281
+ readonly footerPlaceholders?: FooterPlaceholders | undefined;
1282
+ readonly motion?: OwnerMotion | undefined;
1283
+ };
1284
+ type SlideMasterDataProps = SlideMasterCoreDataProps & MasterLayoutCapabilityProps;
1285
+ type SlideMasterProps = SlideMasterCoreProps & MasterLayoutCapabilityProps;
1286
+ type SlideLayoutDataProps<P extends PlaceholderMap = EmptyPlaceholderMap> = SlideLayoutCoreDataProps<P> & MasterLayoutCapabilityProps;
1287
+ type SlideLayoutDefinition<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutDefinition$1<P, SlideLayoutDataProps<P>>;
1288
+ /** Recognizes a reusable layout while preserving the complete author property type. */
1289
+ declare function isSlideLayoutDefinition(value: unknown): value is SlideLayoutDefinition;
1290
+ type SlideLayoutProps<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutDataProps<P> & {
1291
+ readonly layout?: SlideLayoutDefinition<P> | undefined;
1292
+ };
1293
+ type SlideLayoutSource<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutDefinition<P> | SlideLayoutContainer<P>;
1294
+ declare const slideMasterDataPropsSchema: z.ZodType<SlideMasterDataProps>;
1295
+ declare const slideLayoutDataPropsSchema: z.ZodType<SlideLayoutDataProps<PlaceholderMap>>;
1296
+ /** Defines a reusable native layout with a typed placeholder map. */
1297
+ declare function defineSlideLayout<const P extends PlaceholderMap = EmptyPlaceholderMap>(spec: SlideLayoutDataProps<P>): SlideLayoutDefinition<P>;
1298
+ type DeckAuthorProps = DeckProps;
1299
+ type SlideMasterAuthorProps = SlideMasterProps;
1300
+ type SlideLayoutAuthorProps<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutProps<P>;
1301
+ type SlideLayoutAuthorDataProps<P extends PlaceholderMap = EmptyPlaceholderMap> = SlideLayoutDataProps<P>;
1302
+ type InferPlaceholderMap<L> = L extends SlideLayoutSource<infer P> ? P : EmptyPlaceholderMap;
1303
+ type ImperativeTextPlaceholderValue = string | TextNode | ParagraphNode | SpanNode | SupNode | SubNode | SlideNumberNode | DateTimeNode | readonly (string | ParagraphNode | SpanNode | SupNode | SubNode | SlideNumberNode | DateTimeNode)[];
1304
+ type ImperativePlaceholderFillByKind = {
1305
+ readonly text: ImperativeTextPlaceholderValue;
1306
+ readonly "slide-number": string | SlideNumberNode | TextNode;
1307
+ readonly image: ImageNode;
1308
+ readonly video: VideoNode;
1309
+ readonly table: TableNode;
1310
+ readonly chart: ChartNode;
1311
+ readonly placeholder: PlaceholderNode;
1312
+ };
1313
+ type ImperativePlaceholderFillByRole = { readonly [Role in ContentPlaceholderRole]: ImperativePlaceholderFillByKind[PlaceholderFillKindForRole<Role>]; };
1314
+ type ImperativePlaceholderFillForRole<Role extends ContentPlaceholderRole> = ImperativePlaceholderFillByRole[Role];
1315
+ type ImperativePlaceholders<P extends PlaceholderMap> = { readonly [K in keyof P]?: ImperativePlaceholderFillForRole<P[K]["type"]>; };
1316
+ type SlidePropsBase = SlideCoreDataProps & AnimatedContainerProps & {
1317
+ readonly motion?: OwnerMotion | undefined;
1318
+ readonly dateTime?: SlideDateTimeValue | undefined;
1319
+ readonly footer?: SlideFooterValue | undefined;
1320
+ readonly slideNumber?: SlideNumberValue | undefined;
1321
+ };
1322
+ type SlideLayoutBinding<L, Placeholders> = [L] extends [undefined] ? {
1323
+ readonly layout?: undefined;
1324
+ readonly placeholders?: never;
1325
+ } : {
1326
+ readonly layout: Exclude<L, undefined>;
1327
+ readonly placeholders?: Placeholders;
1328
+ } | (undefined extends L ? {
1329
+ readonly layout?: undefined;
1330
+ readonly placeholders?: never;
1331
+ } : never);
1332
+ type SlideProps<L extends SlideLayoutSource | undefined = SlideLayoutSource | undefined> = SlidePropsBase & SlideLayoutBinding<L, ImperativePlaceholders<InferPlaceholderMap<Exclude<L, undefined>>>>;
1333
+ type SlideAuthorProps<L extends SlideLayoutSource = SlideLayoutSource> = SlidePropsBase & {
1334
+ readonly layout?: L | undefined;
1335
+ readonly placeholders?: ImperativePlaceholders<InferPlaceholderMap<L>> | undefined;
1336
+ };
1337
+ declare const slidePropsSchema: z.ZodType<SlideAuthorProps>;
1338
+ type SectionAuthorProps = SectionProps;
1339
+ type BoxAuthorProps = BoxDeclarationProps;
1340
+ type ImageAuthorProps = ImageDeclarationProps;
1341
+ type LineAuthorProps = LineDeclarationProps;
1342
+ type GroupAuthorProps = GroupDeclarationProps;
1343
+ type ShapeAuthorProps = ShapeDeclarationProps;
1344
+ type TextAuthorProps = TextDeclarationProps;
1345
+ type ParagraphAuthorProps = ParagraphDeclarationProps;
1346
+ type SpanAuthorProps = SpanDeclarationProps;
1347
+ type SupAuthorProps = SupDeclarationProps;
1348
+ type SubAuthorProps = SubDeclarationProps;
1349
+ type SlideNumberAuthorProps = SlideNumberDeclarationProps;
1350
+ type DateTimeAuthorProps = DateTimeDeclarationProps;
1351
+ type ChartAuthorProps = ChartProps;
1352
+ type TableAuthorProps = TableDeclarationProps;
1353
+ type RowAuthorProps = RowDeclarationProps;
1354
+ type CellAuthorProps = CellDeclarationProps;
1355
+ type NotesAuthorProps = NotesDeclarationProps;
1356
+ type PlaceholderAuthorProps = PlaceholderDeclarationProps;
1357
+ type DeckNode = DeckContainer<DeckProps, SlideMasterNode>;
1358
+ type SlideMasterNode = SlideMasterContainer<SlideMasterProps, SlideLayoutNode>;
1359
+ type SlideLayoutNode<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutContainer<P, SlideLayoutProps<P>>;
1360
+ type SlideNode = SlideContainer<SlideAuthorProps, SlideStyle>;
1361
+ type SectionNode = CommonContainer<"section", SectionAuthorProps>;
1362
+ type BoxNode = CommonContainer<"box", BoxAuthorProps, NonNullable<BoxDeclarationProps["style"]>>;
1363
+ type ShapeNode = RichTextContainer<"shape", ShapeDeclarationProps, NonNullable<ShapeDeclarationProps["style"]>>;
1364
+ type TextNode = RichTextContainer<"text", TextAuthorProps, NonNullable<TextDeclarationProps["style"]>>;
1365
+ type NotesNode = RichTextContainer<"notes", NotesAuthorProps, TextStyle>;
1366
+ type ImageNode = CommonNode<"image", ImageDeclarationProps, NonNullable<ImageDeclarationProps["style"]>>;
1367
+ type LineNode = CommonNode<"line", LineDeclarationProps, NonNullable<LineDeclarationProps["style"]>>;
1368
+ type GroupNode = CommonContainer<"group", GroupDeclarationProps, NonNullable<GroupDeclarationProps["style"]>>;
1369
+ type ParagraphNode = RichTextContainer<"paragraph", ParagraphAuthorProps, NonNullable<ParagraphDeclarationProps["style"]>>;
1370
+ type SpanNode = RichTextContainer<"span", SpanAuthorProps, NonNullable<SpanDeclarationProps["style"]>>;
1371
+ type SupNode = RichTextContainer<"sup", SupAuthorProps, NonNullable<SupDeclarationProps["style"]>>;
1372
+ type SubNode = RichTextContainer<"sub", SubAuthorProps, NonNullable<SubDeclarationProps["style"]>>;
1373
+ type DateTimeNode = CommonNode<"date-time", DateTimeAuthorProps, NonNullable<DateTimeDeclarationProps["style"]>>;
1374
+ type SlideNumberNode = CommonNode<"slide-number", SlideNumberAuthorProps, NonNullable<SlideNumberDeclarationProps["style"]>>;
1375
+ type MotionScopeNode = CommonContainer<"motion-scope", MotionScopeAuthorProps>;
1376
+ type MotionStepNode = CommonContainer<"motion-step", MotionStepAuthorProps>;
1377
+ type TextContent = RichTextItem | readonly RichTextItem[];
1378
+ type ParagraphContent = RichTextItem | readonly RichTextItem[];
1379
+ type SpanContent = RichTextItem | readonly RichTextItem[];
1380
+ declare function deck(props?: DeckAuthorProps): DeckNode;
1381
+ /** Creates an editable native SlideMaster container owning SlideLayouts. */
1382
+ declare function slideMaster(props?: SlideMasterAuthorProps): SlideMasterNode;
1383
+ /** Creates an editable native SlideLayout node from inline props or a `defineSlideLayout` spec. */
1384
+ declare function slideLayout<const P extends PlaceholderMap = EmptyPlaceholderMap>(propsOrDefinition?: SlideLayoutAuthorDataProps<P> | SlideLayoutDefinition<P>): SlideLayoutNode<P>;
1385
+ type ImperativeSlideProps<L extends SlideLayoutSource | undefined = SlideLayoutSource | undefined> = SlideProps<L>;
1386
+ declare function slide<const L extends SlideLayoutSource | undefined = undefined>(props: ImperativeSlideProps<L>): SlideNode;
1387
+ declare function section(props: SectionAuthorProps): SectionNode;
1388
+ declare function box(props?: BoxAuthorProps): BoxNode;
1389
+ /** Creates a native shape whose geometry, visuals, and rich text remain editable after attachment. */
1390
+ declare function shape(props?: ShapeAuthorProps): ShapeNode;
1391
+ declare function shape(content?: TextContent, props?: ShapeAuthorProps): ShapeNode;
1392
+ declare function shape(...content: readonly TextContent[]): ShapeNode;
1393
+ declare function shape(...args: [...(readonly TextContent[]), ShapeAuthorProps]): ShapeNode;
1394
+ /** Creates an unpopulated native content placeholder bound to a layout placeholder slot. */
1395
+ declare function placeholder(props?: PlaceholderAuthorProps): PlaceholderNode;
1396
+ /** Creates a native image whose source bytes, crop, fit, and visuals remain editable after attachment. */
1397
+ declare function image(props: ImageAuthorProps): ImageNode;
1398
+ /** Creates a 1D line or connector (`<p:cxnSp>`) with box-layout or anchored `from`/`to` positioning. */
1399
+ declare function line(props?: LineAuthorProps): LineNode;
1400
+ /** Creates a native group preserving member identity and layout children. */
1401
+ declare function group(props?: GroupAuthorProps): GroupNode;
1402
+ /** Creates a native table whose rows and cells remain editable after attachment. */
1403
+ declare function table(props: TableAuthorProps): TableNode;
1404
+ /** Creates a native table row; attach it to a table and add cells through its content operations. */
1405
+ declare function row(props?: RowAuthorProps): RowNode;
1406
+ /** Creates a rich-text table cell whose horizontal and vertical spans remain editable. */
1407
+ declare function cell(content?: TextContent, props?: CellAuthorProps): CellNode;
1408
+ declare function cell(...content: readonly TextContent[]): CellNode;
1409
+ /** Creates a native chart whose data, options, and styles remain editable after attachment. */
1410
+ declare function chart(props: ChartAuthorProps): ChartNode;
1411
+ /** Creates a text box whose original reference remains editable after attachment. */
1412
+ declare function text(content?: TextContent, props?: TextAuthorProps): TextNode;
1413
+ declare function text(...content: readonly TextContent[]): TextNode;
1414
+ /**
1415
+ * Creates a page-affiliated notes container. The node is attached to a Slide; rich-text content
1416
+ * remains editable through the returned reference after attachment.
1417
+ */
1418
+ declare function notes(content?: TextContent, props?: NotesAuthorProps): NotesNode;
1419
+ declare function notes(...content: readonly TextContent[]): NotesNode;
1420
+ declare function paragraph(content?: ParagraphContent, props?: ParagraphAuthorProps): ParagraphNode;
1421
+ declare function paragraph(...content: readonly ParagraphContent[]): ParagraphNode;
1422
+ declare function span(content?: SpanContent, props?: SpanAuthorProps): SpanNode;
1423
+ declare function span(...content: readonly SpanContent[]): SpanNode;
1424
+ /** Creates an inline superscript run (`baseline="30000"`). */
1425
+ declare function sup(content?: SpanContent, props?: SupAuthorProps): SupNode;
1426
+ declare function sup(...content: readonly SpanContent[]): SupNode;
1427
+ /** Creates an inline subscript run (`baseline="-25000"`). */
1428
+ declare function sub(content?: SpanContent, props?: SubAuthorProps): SubNode;
1429
+ declare function sub(...content: readonly SpanContent[]): SubNode;
1430
+ /** Creates a native date/time field that presentation applications can refresh. */
1431
+ declare function dateTime(props?: DateTimeAuthorProps): DateTimeNode;
1432
+ /** Emits the native slide number field, resolved by the presentation application. */
1433
+ declare function slideNumber(props?: SlideNumberAuthorProps): SlideNumberNode;
1434
+ /** Creates an orchestration scope whose parent chain and click step are derived by each build. */
1435
+ declare function motionScope(scope: MotionScopeHandle, props?: Omit<MotionScopeAuthorProps, "scope">): MotionScopeNode;
1436
+ /** Creates a click-step container; omitted n gives this Step its own independent trigger. */
1437
+ declare function step(props?: MotionStepAuthorProps): MotionStepNode;
1438
+ /** Declares a native MP4 video or an external video link. */
1439
+ declare function video(props: VideoDeclarationProps): VideoNode;
1440
+ /** Declares a native audio clip or an external audio link. */
1441
+ declare function audio(props: AudioDeclarationProps): AudioNode;
1442
+ export { SupNode as $, MotionCompletionState as $i, createMotionScopeHandle as $n, ChartLine as $r, MotionScopeSchedule as $t, ShapeNode as A, AudioNode as Ai, ShapeDeclarationProps as An, LineStrokeValue as Ar, span as At, SlideMasterNode as B, Easing as Bi, SpanDeclarationProps as Bn, ChartAxisReferences as Br, EffectInstance as Bt, ParagraphContent as C, path as Ca, ScatterData as Ci, TableDeclarationProps as Cn, LineEndpoint as Cr, slide as Ct, SectionAuthorProps as D, ScatterLine as Di, TableTextStyle as Dn, LineStyle as Dr, slideMasterDataPropsSchema as Dt, RowAuthorProps as E, ScatterErrorBars as Ei, TableStyle as En, LineRouting as Er, slideMaster as Et, SlideLayoutDefinition as F, ImageDeclarationProps as Fi, DateTimeDeclarationProps as Fn, PrintHeaderFooter as Fr, text as Ft, SlideProps as G, EmphasisEffectDeclaration as Gi, MotionStartDependency as Gn, ChartDataLabels as Gr, MotionDifference as Gt, SlideNode as H, EffectOptions as Hi, SupDeclarationProps as Hn, ChartCategoryAxisReferences as Hr, MotionCueRef as Ht, SlideLayoutNode as I, ImageSource as Ii, ParagraphDeclarationProps as In, ChartNode as Ir, video as It, SpanContent as J, ExitEffect as Ji, ResolvedMotionStep as Jn, ChartErrorBarValues as Jr, MotionMembership as Jt, SlidePropsBase as K, EntranceEffect as Ki, ResolvedMotionEffect as Kn, ChartDisplayBlanksAs as Kr, MotionEffectRef as Kt, SlideLayoutProps as L, ImageVisualStyle as Li, ParagraphStyle as Ln, ChartAxis as Lr, CommentAuthorProps as Lt, SlideLayoutAuthorProps as M, AudioDeclarationProps as Mi, PlaceholderDeclarationProps as Mn, radialGradient as Mr, sub as Mt, SlideLayoutBinding as N, MediaPlaybackProps as Ni, PlaceholderNode as Nn, GroupDeclarationProps as Nr, sup as Nt, SectionNode as O, SharedCategoryData as Oi, TableVerticalAlign as On, LineVisualStyle as Or, slideNumber as Ot, SlideLayoutDataProps as P, VideoDeclarationProps as Pi, NotesDeclarationProps as Pn, PrintDateTimeValue as Pr, table as Pt, SupAuthorProps as Q, InstantEffectOptions as Qi, collapse as Qn, ChartKind as Qr, MotionScopeRef as Qt, SlideLayoutSource as R, BreatheEffect as Ri, RunTextStyle as Rn, ChartAxisCrossing as Rr, CommentNode as Rt, ParagraphAuthorProps as S, blockArc as Sa, ScatterChartSeries as Si, TableColumn as Sn, LineDeclarationProps as Sr, shape as St, PlaceholderAuthorProps as T, ScatterDataLabels as Ti, TableSpacing as Tn, LinePort as Tr, slideLayoutDataPropsSchema as Tt, SlideNumberAuthorProps as U, EffectPreset as Ui, TextDeclarationProps as Un, ChartCustomErrorBars as Ur, MotionDecision as Ut, SlideMasterProps as V, Effect as Vi, SubDeclarationProps as Vn, ChartCategoryAxis as Vr, MotionCue as Vt, SlideNumberNode as W, EmphasisEffect as Wi, MotionNativeProjection as Wn, ChartDataLabelOverride as Wr, MotionDependency as Wt, SubAuthorProps as X, ExitPreset as Xi, appear as Xn, ChartGroup as Xr, MotionSchedule as Xt, SpanNode as Y, ExitEffectDeclaration as Yi, after as Yn, ChartErrorBars as Yr, MotionMomentRef as Yt, SubNode as Z, FillColorOptions as Zi, breathe as Zn, ChartGroupData as Zr, MotionScopeQueryMember as Zt, LineNode as _, SpinOptions as _a, IndependentCategorySeries as _i, RowNode as _n, zoom as _r, notes as _t, DateTimeAuthorProps as a, MotionScopeAuthorProps as aa, ChartSeries as ai, VideoNode as an, floatOut as ar, box as at, NotesAuthorProps as b, MorphProps as ba, ScatterChartGroup as bi, RowDeclarationProps as bn, fromFontCollection as br, row as bt, DeckNode as c, MotionStepAuthorProps as ca, ChartTickMark as ci, MorphTransition as cn, flyOut as cr, dateTime as ct, GroupNode as d, OwnerMotion as da, ChartTrendlineType as di, Transition as dn, spin as dr, defineSlideLayout as dt, MotionDirection as ea, ChartLineDash as ei, MotionStepQuery as en, disappear as er, TableAuthorProps as et, ImageAuthorProps as f, OwnerMotionEffect as fa, ChartValueAxis as fi, TransitionDirection as fn, spinIn as fr, group as ft, LineAuthorProps as g, RepeatedEffect as ga, IndependentCategoryData as gi, CellNode as gn, wipeOut as gr, motionScope as gt, InferPlaceholderMap as h, RepeatCount as ha, DoughnutChartGroup as hi, transitions as hn, wipe as hr, line as ht, ChartAuthorProps as i, MotionProps as ia, ChartProps as ii, motionSchedule as in, floatDown as ir, audio as it, SlideAuthorProps as j, AudioSource as ji, PlaceholderFillKindForRole as jn, linearGradient as jr, step as jt, ShapeAuthorProps as k, BoxDeclarationProps as ki, ShapeTextStyle as kn, LineStroke as kr, slidePropsSchema as kt, DeckProps as l, MotionTargetRange as la, ChartTitle as li, StandardTransition as ln, onStep as lr, deck as lt, ImperativePlaceholders as m, OwnerMotionTarget as ma, ColumnOrBarChartGroup as mi, TransitionSpeed as mn, stretch as mr, isSlideLayoutDefinition as mt, BoxNode as n, MotionMoment as na, ChartMarkerSymbol as ni, MotionTime as nn, fadeOut as nr, TextContent as nt, DateTimeNode as o, MotionScopeHandle as oa, ChartSeriesDataLabelOverride as oi, VideoSource as on, floatUp as or, cell as ot, ImageNode as p, OwnerMotionStep as pa, ChartXYAxisReferences as pi, TransitionDuration as pn, spinOut as pr, image as pt, SpanAuthorProps as q, EntranceEffectDeclaration as qi, ResolvedMotionScope as qn, ChartErrorBarInclude as qr, MotionIntervalRef as qt, CellAuthorProps as r, MotionMomentOffset as ra, ChartPoint as ri, ResolvedMotionMoment as rn, fillColor as rr, TextNode as rt, DeckAuthorProps as s, MotionScopeMode as sa, ChartTickLabelPosition as si, FlipTransition as sn, fly as sr, chart as st, BoxAuthorProps as t, MotionGranularity as ta, ChartMarker as ti, MotionStepRef as tn, fade as tr, TextAuthorProps as tt, GroupAuthorProps as u, MotionTiming as ua, ChartTrendline as ui, StripsDirection as un, repeat as ur, deckPropsSchema as ut, MotionScopeNode as v, SteppedEffect as va, LineOrAreaChartGroup as vi, TableNode as vn, zoomOut as vr, paragraph as vt, ParagraphNode as w, preset as wa, ScatterDataLabelOverride as wi, TableRowStyle as wn, LineLayoutStyle as wr, slideLayout as wt, NotesNode as x, PathOptions as xa, ScatterChartPoint as xi, TableCellStyle as xn, LineAdjust as xr, section as xt, MotionStepNode as y, spinOptionsSchema as ya, PieChartGroup as yi, CellDeclarationProps as yn, font as yr, placeholder as yt, SlideMasterAuthorProps as z, BreatheOptions as zi, SlideNumberDeclarationProps as zn, ChartAxisPosition as zr, comment as zt };