@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,2238 @@
1
+ import { z } from "zod";
2
+ declare const dateTimeFormats: readonly ["datetimeFigureOut", "datetime1", "datetime2", "datetime3", "datetime4", "datetime5", "datetime6", "datetime7", "datetime8", "datetime9", "datetime10", "datetime11", "datetime12", "datetime13"];
3
+ /** Native DrawingML date and time field formats. */
4
+ type DateTimeFormat = (typeof dateTimeFormats)[number];
5
+ /** A date slot can hold fixed text or a native date field. A style-only override inherits content. */
6
+ type DateTimeContent = {
7
+ readonly text?: string | undefined;
8
+ readonly format?: undefined;
9
+ } | {
10
+ readonly format: DateTimeFormat;
11
+ readonly text?: undefined;
12
+ };
13
+ /** Reference to a resource linked from the presentation. */
14
+ type ExternalResourceSource = {
15
+ readonly externalUrl: string;
16
+ };
17
+ /** Local path, file URL, embedded bytes, or a linked external resource. */
18
+ type ResourceSource = string | URL | Uint8Array | ExternalResourceSource;
19
+ declare const externalResourceSourceSchema: z.ZodType<ExternalResourceSource>;
20
+ declare const resourceSourceSchema: z.ZodType<ResourceSource>;
21
+ /**
22
+ * Plain authoring declaration tree consumed by the formal build.
23
+ *
24
+ * React components and command authoring produce editable common nodes that expose this structure
25
+ * once; the formal build reads it without executing React lifecycle or depending on React at
26
+ * runtime. Build-time parsing and layout remain derived structures of the current declaration, not
27
+ * another long-lived authoring model.
28
+ */
29
+ type DeclarationText = {
30
+ readonly type: "#text";
31
+ readonly text: string;
32
+ };
33
+ type DeclarationNode = {
34
+ readonly type: string;
35
+ readonly props: Readonly<Record<string, unknown>>;
36
+ readonly children: readonly DeclarationChild[];
37
+ /**
38
+ * Declaration belongs directly to a slide. Placement is checked before layout can prune hidden
39
+ * canvas ancestors, and capability registration decides whether the declaration can be built.
40
+ */
41
+ readonly pageAffiliated?: boolean;
42
+ };
43
+ type DeclarationChild = DeclarationNode | DeclarationText;
44
+ type DeclarationContainer = {
45
+ readonly children: readonly DeclarationChild[];
46
+ };
47
+ type AuthorId = string;
48
+ /** Non-empty trimmed author identifier unique within its naming scope. */
49
+ declare const authorIdSchema: z.ZodType<AuthorId>;
50
+ declare const formatBaseline: "ECMA-376 5th edition Transitional";
51
+ declare const formatBaselineSchema: z.ZodType<typeof formatBaseline>;
52
+ type Extension = "p14" | "p159" | "c15";
53
+ declare const extensionSchema: z.ZodType<Extension>;
54
+ type FontEmbeddingMode = "full" | "subset";
55
+ declare const fontEmbeddingModeSchema: z.ZodType<FontEmbeddingMode>;
56
+ declare const targets: Readonly<{
57
+ transitional: Readonly<{
58
+ name: "transitional";
59
+ format: "ECMA-376 5th edition Transitional";
60
+ extensions: readonly ["p14", "p159", "c15"];
61
+ }>;
62
+ baselineOnly: Readonly<{
63
+ name: "baseline-only";
64
+ format: "ECMA-376 5th edition Transitional";
65
+ extensions: readonly [];
66
+ }>;
67
+ }>;
68
+ type TargetName = "transitional" | "baseline-only";
69
+ declare const targetNameSchema: z.ZodType<TargetName>;
70
+ type Target = {
71
+ readonly name: string;
72
+ readonly format: typeof formatBaseline;
73
+ readonly extensions: readonly Extension[];
74
+ };
75
+ declare const targetSchema: z.ZodType<Target>;
76
+ type ResolveOptions = {
77
+ /** UTC instant used for dynamic date text. ISO strings without a zone are interpreted as UTC. */
78
+ readonly referenceDate?: Date | string | undefined;
79
+ readonly signal?: AbortSignal | undefined;
80
+ };
81
+ declare const resolveOptionsSchema: z.ZodType<ResolveOptions>;
82
+ type EmitOptions = {
83
+ /** Explicitly request embedding full files or character subsets of fonts actually used by the deck; no embedding by default. */
84
+ readonly embedFonts?: FontEmbeddingMode | undefined;
85
+ readonly target?: Target | undefined;
86
+ /**
87
+ * Cooperative cancellation signal for a single build; no default timeout when unspecified.
88
+ * Completion, unhandled errors, and cancellation follow the first established terminal state; cancelling after completion does not alter the result.
89
+ */
90
+ readonly signal?: AbortSignal | undefined;
91
+ };
92
+ type BuildOptions = EmitOptions & Pick<ResolveOptions, "referenceDate">;
93
+ declare const buildOptionsSchema: z.ZodType<BuildOptions>;
94
+ declare const emitOptionsSchema: z.ZodType<EmitOptions>;
95
+ type BuildDiagnosticFontUnavailableReason = "missing-resource" | "missing-face" | "family-mismatch" | "style-mismatch" | "substitute-required" | "unsupported-format" | "invalid-metrics" | "not-embeddable" | "license-restricted" | "subsetting-forbidden" | "subsetting-failed";
96
+ declare const buildDiagnosticFontUnavailableReasonSchema: z.ZodType<BuildDiagnosticFontUnavailableReason>;
97
+ type BuildDiagnostic = {
98
+ code: "invalid-options";
99
+ path: string;
100
+ message: string;
101
+ field?: string | undefined;
102
+ expected?: string | undefined;
103
+ } | {
104
+ code: "unknown-prop";
105
+ path: string;
106
+ message: string;
107
+ field?: string | undefined;
108
+ prop: string;
109
+ scope?: "props" | "style" | "options" | undefined;
110
+ } | {
111
+ code: "invalid-prop";
112
+ path: string;
113
+ message: string;
114
+ field?: string | undefined;
115
+ expected?: string | undefined;
116
+ } | {
117
+ code: "invalid-style";
118
+ path: string;
119
+ message: string;
120
+ field?: string | undefined;
121
+ expected?: string | undefined;
122
+ } | {
123
+ code: "invalid-structure";
124
+ path: string;
125
+ message: string;
126
+ field?: string | undefined;
127
+ expected?: string | undefined;
128
+ conflictPath?: string | undefined;
129
+ } | {
130
+ code: "duplicate-id";
131
+ path: string;
132
+ message: string;
133
+ field?: string | undefined;
134
+ identifier?: string | undefined;
135
+ conflictPath?: string | undefined;
136
+ } | {
137
+ code: "broken-reference";
138
+ path: string;
139
+ message: string;
140
+ field?: string | undefined;
141
+ reference?: string | undefined;
142
+ targetKind?: "slide" | "layout" | "placeholder" | "object" | "cue" | "scope" | "part" | "resource" | "axis" | undefined;
143
+ } | {
144
+ code: "invalid-continuity";
145
+ path: string;
146
+ message: string;
147
+ field?: string | undefined;
148
+ reason?: "inside-group" | "on-master" | "needs-object" | "unsupported-object" | "kind-mismatch" | "name-conflict" | undefined;
149
+ conflictPath?: string | undefined;
150
+ } | {
151
+ code: "missing-capability";
152
+ path: string;
153
+ message: string;
154
+ field?: string | undefined;
155
+ capability: string;
156
+ } | {
157
+ code: "font-unavailable";
158
+ path: string;
159
+ message: string;
160
+ field?: string | undefined;
161
+ font: {
162
+ family: string;
163
+ weight?: number | undefined;
164
+ style?: "normal" | "italic" | undefined;
165
+ };
166
+ reason: BuildDiagnosticFontUnavailableReason;
167
+ } | {
168
+ code: "font-missing-glyph";
169
+ path: string;
170
+ message: string;
171
+ field?: string | undefined;
172
+ font: {
173
+ family: string;
174
+ weight: number;
175
+ style: "normal" | "italic";
176
+ };
177
+ characters: readonly string[];
178
+ } | {
179
+ code: "invalid-resource";
180
+ path: string;
181
+ message: string;
182
+ field?: string | undefined;
183
+ resourceKind: "image" | "media" | "part" | "capability";
184
+ } | {
185
+ code: "target-violation";
186
+ path: string;
187
+ message: string;
188
+ field?: string | undefined;
189
+ target: string;
190
+ extension?: string | undefined;
191
+ mechanism?: string | undefined;
192
+ } | {
193
+ code: "render-failed";
194
+ path: string;
195
+ message: string;
196
+ field?: string | undefined;
197
+ phase: "expand" | "append";
198
+ };
199
+ /** Typed resolve/emit/expand failure diagnostic discriminated by `code`. */
200
+ declare const buildDiagnosticSchema: z.ZodType<BuildDiagnostic>;
201
+ type PreviewError = {
202
+ code: "preview-missing-font";
203
+ path: string;
204
+ field?: string | undefined;
205
+ message: string;
206
+ font: {
207
+ family: string;
208
+ weight: number;
209
+ style: "normal" | "italic";
210
+ };
211
+ } | {
212
+ code: "preview-unsupported-font";
213
+ path: string;
214
+ field?: string | undefined;
215
+ message: string;
216
+ font: {
217
+ family: string;
218
+ weight?: number | undefined;
219
+ style?: "normal" | "italic" | undefined;
220
+ };
221
+ reason?: string | undefined;
222
+ } | {
223
+ code: "preview-missing-glyph";
224
+ path: string;
225
+ field?: string | undefined;
226
+ message: string;
227
+ font: {
228
+ family: string;
229
+ weight: number;
230
+ style: "normal" | "italic";
231
+ };
232
+ characters: readonly string[];
233
+ } | {
234
+ code: "preview-corrupt-image";
235
+ path: string;
236
+ field?: string | undefined;
237
+ message: string;
238
+ format?: "png" | "jpeg" | "gif" | undefined;
239
+ } | {
240
+ code: "preview-unsupported-capability";
241
+ path: string;
242
+ field?: string | undefined;
243
+ message: string;
244
+ capability: string;
245
+ };
246
+ /** Typed per-page static preview failure discriminated by `code`. */
247
+ declare const previewErrorSchema: z.ZodType<PreviewError>;
248
+ type PreviewPlaceholder = {
249
+ id?: string | undefined;
250
+ path: string;
251
+ url: string;
252
+ };
253
+ /** Offline external image placeholder rendered deterministically during static preview. */
254
+ declare const previewPlaceholderSchema: z.ZodType<PreviewPlaceholder>;
255
+ /** Error thrown when requested preview page numbers exceed the resolved deck slide count. */
256
+ declare class PreviewPageRangeError extends RangeError {
257
+ readonly requestedPages: readonly number[];
258
+ readonly totalSlides: number;
259
+ constructor(requestedPages: readonly number[], totalSlides: number);
260
+ }
261
+ declare class BuildError extends Error {
262
+ readonly diagnostics: readonly BuildDiagnostic[];
263
+ constructor(diagnostics: readonly BuildDiagnostic[]);
264
+ }
265
+ declare class CapabilityError extends Error {
266
+ readonly code: string;
267
+ readonly path: string | undefined;
268
+ readonly details: Readonly<Record<string, unknown>> | undefined;
269
+ /** Subpath relative to the native object triggering the capability, facilitating localization of cell declarations inside the object. */
270
+ constructor(code: string, message: string, path?: string, details?: Readonly<Record<string, unknown>>);
271
+ }
272
+ type FontFaceStyle = "normal" | "italic";
273
+ /**
274
+ * Single font face resource declaration paired with a {@link Font}.
275
+ *
276
+ * When `data` is a static single-font binary and `weight` or `style` is omitted,
277
+ * the SDK infers the effective value from `OS/2.usWeightClass` and italic metadata
278
+ * (`OS/2.fsSelection.italic`, `OS/2.fsSelection.oblique`, or non-zero `post.italicAngle`).
279
+ * Explicit values that disagree with file metadata fail validation during build.
280
+ * When `embedFonts` is enabled, only static TrueType (`glyf`) faces are supported
281
+ * and the owning `Font.family` must match the file's
282
+ * native Unicode legacy family name (`Name ID 1`).
283
+ */
284
+ type FontFace = {
285
+ /** OpenType numeric weight (`1..1000`); defaults to `400` when `data` is omitted. */
286
+ readonly weight?: number | undefined;
287
+ /** Glyph style (`"normal"` or `"italic"`); defaults to `"normal"` when `data` is omitted. */
288
+ readonly style?: FontFaceStyle | undefined;
289
+ /**
290
+ * Static single-font bytes.
291
+ *
292
+ * Content measurement and static preview accept static `TTF`, `OTF`, `WOFF`,
293
+ * and `WOFF2` binaries (variable fonts containing an `fvar` table are rejected).
294
+ * Enabling `embedFonts` (`"subset"` or `"full"`) supports only static TrueType
295
+ * (`glyf`) outlines and rejects other container or outline formats at emit time
296
+ * with a typed `BuildError`.
297
+ */
298
+ readonly data?: Uint8Array | undefined;
299
+ };
300
+ /** Font family and explicit measurement resources referenceable across deck themes and components. */
301
+ type Font = {
302
+ readonly family: string;
303
+ readonly faces?: readonly FontFace[] | undefined;
304
+ readonly substitute?: boolean | undefined;
305
+ readonly embeddable?: boolean | undefined;
306
+ };
307
+ type FontOptions = {
308
+ readonly substitute?: boolean | undefined;
309
+ readonly embeddable?: boolean | undefined;
310
+ };
311
+ declare const themeFontSlots: readonly ["major", "minor"];
312
+ type ThemeFontSlot = (typeof themeFontSlots)[number];
313
+ declare const themeFontSlotSchema: z.ZodType<ThemeFontSlot>;
314
+ declare function isThemeFontSlot(value: unknown): value is ThemeFontSlot;
315
+ type FontReference = ThemeFontSlot | (string & {}) | Font;
316
+ /**
317
+ * Font size for text runs and paragraphs.
318
+ *
319
+ * Positive numbers default to pixels (`px`) converted at `96 dpi` (`1pt = 4/3 px`, so `16` or
320
+ * `"16px"` equals `"12pt"`). Explicit `"pt"` strings such as `"12pt"` are also accepted.
321
+ * Converted sizes must fall within `1pt` to `4000pt`.
322
+ */
323
+ type FontSize = number | `${number}px` | `${number}pt`;
324
+ /**
325
+ * Paragraph line height.
326
+ *
327
+ * Numeric values and `"px"` / `"pt"` strings emit fixed line spacing (`<a:spcPts>`), while positive
328
+ * `"${number}%"` percentage strings emit proportional line spacing (`<a:spcPct>`) scaled by the
329
+ * paragraph's native font single-line height (`0% < pct <= 13200%`).
330
+ */
331
+ type LineHeight = FontSize | `${number}%`;
332
+ type TextAlignment = "left" | "center" | "right" | "justify";
333
+ declare const nativeColorSlots: readonly ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"];
334
+ type NativeColorSlot = (typeof nativeColorSlots)[number];
335
+ declare const schemeColorSlots: readonly ["bg1", "tx1", "bg2", "tx2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"];
336
+ type SchemeColorSlot = (typeof schemeColorSlots)[number];
337
+ declare const schemeColorNames: readonly ["dk1", "lt1", "dk2", "lt2", "bg1", "tx1", "bg2", "tx2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"];
338
+ type SchemeColorName = (typeof schemeColorNames)[number];
339
+ /** Native `<p:clrMap>` / `<a:overrideClrMapping>` mapping the 12 scheme slots to 12 theme palette slots. */
340
+ type ColorMap = {
341
+ readonly bg1: NativeColorSlot;
342
+ readonly tx1: NativeColorSlot;
343
+ readonly bg2: NativeColorSlot;
344
+ readonly tx2: NativeColorSlot;
345
+ readonly accent1: NativeColorSlot;
346
+ readonly accent2: NativeColorSlot;
347
+ readonly accent3: NativeColorSlot;
348
+ readonly accent4: NativeColorSlot;
349
+ readonly accent5: NativeColorSlot;
350
+ readonly accent6: NativeColorSlot;
351
+ readonly hlink: NativeColorSlot;
352
+ readonly folHlink: NativeColorSlot;
353
+ };
354
+ /** Native `<p:clrMap>` / `<a:overrideClrMapping>` mapping the 12 scheme slots to 12 theme palette slots. */
355
+ declare const colorMapSchema: z.ZodType<ColorMap>;
356
+ declare const defaultColorMap: ColorMap;
357
+ type ColorMapOverride = "master" | ColorMap;
358
+ declare const colorMapOverrideSchema: z.ZodType<ColorMapOverride>;
359
+ /** Native theme color represented with DrawingML luminance modulation. */
360
+ type ThemeShade = {
361
+ readonly slot: SchemeColorName;
362
+ readonly lumMod: number;
363
+ readonly lumOff?: number | undefined;
364
+ };
365
+ type HexColor = `#${string}`;
366
+ type ThemeColor = SchemeColorName | HexColor | ThemeShade;
367
+ /** Color entry can directly provide a scheme color, hex color, or theme shade, optionally with alpha. */
368
+ type ColorValue = ThemeColor | {
369
+ readonly color: ThemeColor;
370
+ readonly alpha?: number | undefined;
371
+ };
372
+ /** Final theme value applied to a color entry. */
373
+ type ResolvedColor = {
374
+ readonly hex: string;
375
+ readonly alpha?: number | undefined;
376
+ readonly slot?: NativeColorSlot | undefined;
377
+ readonly scheme?: SchemeColorName | undefined;
378
+ readonly lumMod?: number | undefined;
379
+ readonly lumOff?: number | undefined;
380
+ };
381
+ type GradientStop = {
382
+ readonly color: ColorValue;
383
+ /** Normalized stop position in the closed interval `[0, 1]` (`0` = `0%` start, `1` = `100%` end). */
384
+ readonly position: number;
385
+ };
386
+ type LinearGradient = {
387
+ readonly type: "linear-gradient";
388
+ readonly angle: number;
389
+ readonly stops: readonly GradientStop[];
390
+ };
391
+ type RadialGradient = {
392
+ readonly type: "radial-gradient";
393
+ readonly stops: readonly GradientStop[];
394
+ };
395
+ type ImageBackgroundFit = "fill" | "cover" | "contain";
396
+ declare const imageBackgroundFitSchema: z.ZodType<ImageBackgroundFit>;
397
+ type ImageBackgroundPositionKeyword = "center" | "top" | "bottom" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
398
+ declare const imageBackgroundPositionKeywordSchema: z.ZodType<ImageBackgroundPositionKeyword>;
399
+ type ImageBackgroundPosition = ImageBackgroundPositionKeyword | {
400
+ readonly x?: number | `${number}%` | undefined;
401
+ readonly y?: number | `${number}%` | undefined;
402
+ };
403
+ declare const imageBackgroundPositionSchema: z.ZodType<ImageBackgroundPosition>;
404
+ type ImageBackground = {
405
+ readonly image: ResourceSource;
406
+ readonly fit?: ImageBackgroundFit | undefined;
407
+ readonly position?: ImageBackgroundPosition | undefined;
408
+ readonly opacity?: number | undefined;
409
+ };
410
+ declare const imageBackgroundSchema: z.ZodType<ImageBackground>;
411
+ /** Fill value (`"none"`, color, gradient, or image background). */
412
+ type BackgroundValue = "none" | ColorValue | LinearGradient | RadialGradient | ImageBackground;
413
+ declare const backgroundValueSchema: z.ZodType<BackgroundValue>;
414
+ type BorderStyle = "solid" | "dashed" | "dotted";
415
+ declare const borderStyleSchema: z.ZodType<BorderStyle>;
416
+ type BorderObject = {
417
+ readonly color: ColorValue;
418
+ readonly width?: number | undefined;
419
+ readonly style?: BorderStyle | undefined;
420
+ };
421
+ declare const borderObjectSchema: z.ZodType<BorderObject>;
422
+ type BorderValue = "none" | BorderObject;
423
+ declare const borderValueSchema: z.ZodType<BorderValue>;
424
+ type Shadow = {
425
+ readonly color?: ColorValue | undefined;
426
+ readonly blur?: number | undefined;
427
+ readonly distance?: number | undefined;
428
+ readonly angle?: number | undefined;
429
+ };
430
+ type BoxShadowValue = "none" | Shadow;
431
+ declare const boxShadowValueSchema: z.ZodType<BoxShadowValue>;
432
+ /** Visual fields shared across native DrawingML shapes, images, text boxes, and visible Boxes. */
433
+ type VisualStyle = {
434
+ readonly background?: BackgroundValue | undefined;
435
+ readonly border?: BorderValue | undefined;
436
+ readonly borderRadius?: number | undefined;
437
+ readonly opacity?: number | undefined;
438
+ readonly boxShadow?: BoxShadowValue | undefined;
439
+ readonly softEdge?: number | undefined;
440
+ readonly rotate?: number | undefined;
441
+ readonly flipH?: boolean | undefined;
442
+ readonly flipV?: boolean | undefined;
443
+ };
444
+ /** A solid or gradient fill applied to the glyphs of a text run. */
445
+ type TextFillValue = ColorValue | LinearGradient | RadialGradient;
446
+ /** Inheritable text style fields shared across text objects and containers. */
447
+ type TextStyle = {
448
+ readonly fontFamily?: FontReference | undefined;
449
+ readonly eastAsianFontFamily?: FontReference | undefined;
450
+ readonly fontSize?: FontSize | undefined;
451
+ readonly fontWeight?: "normal" | "bold" | number | undefined;
452
+ readonly fontStyle?: FontFaceStyle | undefined;
453
+ readonly color?: TextFillValue | undefined;
454
+ readonly lineHeight?: LineHeight | undefined;
455
+ readonly verticalAlign?: "top" | "middle" | "bottom" | undefined;
456
+ /** Paragraph alignment when not explicitly overridden. */
457
+ readonly align?: TextAlignment | undefined;
458
+ /** Paragraph space-after when not explicitly overridden, in pixels. */
459
+ readonly spacingAfter?: number | undefined;
460
+ /** Character spacing in pixels. */
461
+ readonly letterSpacing?: number | undefined;
462
+ readonly textTransform?: "none" | "uppercase" | undefined;
463
+ readonly textDecoration?: "none" | "underline" | "line-through" | undefined;
464
+ /** Glyph outline. Use "none" or a zero width to clear an inherited outline. */
465
+ readonly textStroke?: BorderValue | undefined;
466
+ readonly textShadow?: Shadow | "none" | undefined;
467
+ /** Whether the text box wraps normally or keeps each line on a single line. */
468
+ readonly textWrap?: "normal" | "nowrap" | undefined;
469
+ /** Natural language (BCP 47 language tag, e.g. zh-CN, en-US). */
470
+ readonly lang?: string | undefined;
471
+ };
472
+ /** Inheritable text style fields shared across text objects and containers. */
473
+ declare const textStyleSchema: z.ZodType<TextStyle>;
474
+ type FormatColorTransform = {
475
+ readonly color: string;
476
+ readonly alpha?: number | undefined;
477
+ readonly lumMod?: number | undefined;
478
+ readonly lumOff?: number | undefined;
479
+ readonly tint?: number | undefined;
480
+ readonly shade?: number | undefined;
481
+ readonly satMod?: number | undefined;
482
+ };
483
+ type FormatGradientStop = {
484
+ readonly position: number;
485
+ readonly color: FormatColorTransform;
486
+ };
487
+ type FormatFillStyle = {
488
+ readonly kind: "none";
489
+ } | {
490
+ readonly kind: "solid";
491
+ readonly color: FormatColorTransform;
492
+ } | {
493
+ readonly kind: "gradient";
494
+ readonly rotWithShape?: boolean | undefined;
495
+ readonly stops: readonly FormatGradientStop[];
496
+ readonly linear?: {
497
+ readonly angle: number;
498
+ readonly scaled?: boolean | undefined;
499
+ } | undefined;
500
+ readonly path?: {
501
+ readonly shape: "circle" | "rect" | "shape";
502
+ readonly fillToRect?: {
503
+ readonly l: number;
504
+ readonly t: number;
505
+ readonly r: number;
506
+ readonly b: number;
507
+ } | undefined;
508
+ } | undefined;
509
+ };
510
+ type FormatLineStyle = {
511
+ readonly widthEmu?: number | undefined;
512
+ readonly cap?: "rnd" | "sq" | "flat" | undefined;
513
+ readonly compound?: "sng" | "dbl" | "thickThin" | "thinThick" | "tri" | undefined;
514
+ readonly align?: "ctr" | "in" | undefined;
515
+ readonly dash?: string | undefined;
516
+ readonly fill?: FormatFillStyle | undefined;
517
+ };
518
+ type FormatEffectStyle = {
519
+ readonly shadow?: Shadow | undefined;
520
+ };
521
+ /** DrawingML `<a:fmtScheme>` style matrix stored on a native theme or theme override. */
522
+ type FormatScheme = {
523
+ readonly name?: string | undefined;
524
+ readonly fillStyles?: readonly FormatFillStyle[] | undefined;
525
+ readonly lineStyles?: readonly FormatLineStyle[] | undefined;
526
+ readonly effectStyles?: readonly FormatEffectStyle[] | undefined;
527
+ readonly bgFillStyles?: readonly FormatFillStyle[] | undefined;
528
+ };
529
+ /** DrawingML `<a:fmtScheme>` style matrix stored on a native theme or theme override. */
530
+ declare const formatSchemeSchema: z.ZodType<FormatScheme>;
531
+ /** Deck-level or master-level theme input; major/minor fonts and 12 native color slots are written to native PPTX theme. */
532
+ type ThemeInput = {
533
+ readonly name?: string | undefined;
534
+ readonly colors?: {
535
+ readonly dk1?: HexColor | undefined;
536
+ readonly lt1?: HexColor | undefined;
537
+ readonly dk2?: HexColor | undefined;
538
+ readonly lt2?: HexColor | undefined;
539
+ readonly accent1?: HexColor | undefined;
540
+ readonly accent2?: HexColor | undefined;
541
+ readonly accent3?: HexColor | undefined;
542
+ readonly accent4?: HexColor | undefined;
543
+ readonly accent5?: HexColor | undefined;
544
+ readonly accent6?: HexColor | undefined;
545
+ readonly hlink?: HexColor | undefined;
546
+ readonly folHlink?: HexColor | undefined;
547
+ } | undefined;
548
+ readonly fonts?: {
549
+ readonly major?: Font | string | undefined;
550
+ readonly minor?: Font | string | undefined;
551
+ readonly majorEastAsian?: Font | string | undefined;
552
+ readonly minorEastAsian?: Font | string | undefined;
553
+ } | undefined;
554
+ readonly formatScheme?: FormatScheme | undefined;
555
+ };
556
+ /** Deck-level or master-level theme input; major/minor fonts and 12 native color slots are written to native PPTX theme. */
557
+ declare const themeInputSchema: z.ZodType<ThemeInput>;
558
+ /** Native `<a:themeOverride>` partial override for a layout, slide, or chart. */
559
+ type ThemeOverride = {
560
+ readonly colors?: {
561
+ readonly dk1?: HexColor | undefined;
562
+ readonly lt1?: HexColor | undefined;
563
+ readonly dk2?: HexColor | undefined;
564
+ readonly lt2?: HexColor | undefined;
565
+ readonly accent1?: HexColor | undefined;
566
+ readonly accent2?: HexColor | undefined;
567
+ readonly accent3?: HexColor | undefined;
568
+ readonly accent4?: HexColor | undefined;
569
+ readonly accent5?: HexColor | undefined;
570
+ readonly accent6?: HexColor | undefined;
571
+ readonly hlink?: HexColor | undefined;
572
+ readonly folHlink?: HexColor | undefined;
573
+ } | undefined;
574
+ readonly fonts?: {
575
+ readonly major?: Font | string | undefined;
576
+ readonly minor?: Font | string | undefined;
577
+ readonly majorEastAsian?: Font | string | undefined;
578
+ readonly minorEastAsian?: Font | string | undefined;
579
+ } | undefined;
580
+ readonly formatScheme?: FormatScheme | undefined;
581
+ };
582
+ /** Native `<a:themeOverride>` partial override for a layout, slide, or chart. */
583
+ declare const themeOverrideSchema: z.ZodType<ThemeOverride>;
584
+ type ThemeData = {
585
+ readonly name: string;
586
+ readonly colors: {
587
+ readonly dk1: HexColor;
588
+ readonly lt1: HexColor;
589
+ readonly dk2: HexColor;
590
+ readonly lt2: HexColor;
591
+ readonly accent1: HexColor;
592
+ readonly accent2: HexColor;
593
+ readonly accent3: HexColor;
594
+ readonly accent4: HexColor;
595
+ readonly accent5: HexColor;
596
+ readonly accent6: HexColor;
597
+ readonly hlink: HexColor;
598
+ readonly folHlink: HexColor;
599
+ };
600
+ readonly fonts: {
601
+ readonly major: Font | string;
602
+ readonly minor: Font | string;
603
+ readonly majorEastAsian?: Font | string | undefined;
604
+ readonly minorEastAsian?: Font | string | undefined;
605
+ };
606
+ readonly formatScheme?: FormatScheme | undefined;
607
+ };
608
+ declare const themeDataSchema: z.ZodType<ThemeData>;
609
+ type Theme = ThemeData & {
610
+ /** Updates this theme in place while preserving instance identity across all referencing SlideMasters. */
611
+ set(patch: ThemeInput): Theme;
612
+ };
613
+ declare const themeSchema: z.ZodType<Theme>;
614
+ type ResolvedThemeFont = {
615
+ readonly family: string;
616
+ readonly font?: Font | undefined;
617
+ readonly themeFont?: "major" | "minor" | undefined;
618
+ };
619
+ /** Theme, active color map, native overrides, and accumulated container text defaults in a single build. */
620
+ type ThemeContext = {
621
+ readonly theme: Theme;
622
+ readonly colorMap: ColorMap;
623
+ readonly formatScheme: FormatScheme | undefined;
624
+ readonly textStyle: TextStyle;
625
+ with(style?: TextStyle): ThemeContext;
626
+ /** Replaces the accumulated container text defaults while retaining the same theme and overrides. */
627
+ withTextStyle(style: TextStyle): ThemeContext;
628
+ /** Derives a child context applying native theme and color map overrides without mutating `theme`. */
629
+ withNativeOverrides(themeOverride?: ThemeOverride, colorMapOverride?: ColorMapOverride): ThemeContext;
630
+ resolveColor(value: ColorValue): ResolvedColor;
631
+ resolveFont(value: FontReference): ResolvedThemeFont;
632
+ resolveEastAsianFont(value: FontReference): ResolvedThemeFont;
633
+ };
634
+ declare function isSchemeColorSlot(value: string): value is SchemeColorSlot;
635
+ declare function isSchemeColorName(value: string): value is SchemeColorName;
636
+ /** Checks whether a runtime value is an identity-bearing `Theme` instance produced by `defineTheme`. */
637
+ declare function isTheme(value: unknown): value is Theme;
638
+ /** Fill unsupplied theme items using initial Office palette and fonts, returning an identity-bearing `Theme`. */
639
+ declare function defineTheme(input?: ThemeInput): Theme;
640
+ declare const defaultTheme: Theme;
641
+ /** Generate darker variant in PowerPoint native palette. */
642
+ declare function darker(slot: SchemeColorName, amount: number): ThemeShade;
643
+ /** Generate lighter variant in PowerPoint native palette. */
644
+ declare function lighter(slot: SchemeColorName, amount: number): ThemeShade;
645
+ declare function isNativeColorSlot(value: string): value is NativeColorSlot;
646
+ /** Complete DrawingML preset geometry list from ECMA-376 ST_ShapeType (187 shapes). */
647
+ declare const presetGeometryTuple: readonly ["line", "lineInv", "triangle", "rtTriangle", "rect", "diamond", "parallelogram", "trapezoid", "nonIsoscelesTrapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "roundRect", "round1Rect", "round2SameRect", "round2DiagRect", "snipRoundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "plaque", "ellipse", "teardrop", "homePlate", "chevron", "pieWedge", "pie", "blockArc", "donut", "noSmoking", "rightArrow", "leftArrow", "upArrow", "downArrow", "stripedRightArrow", "notchedRightArrow", "bentUpArrow", "leftRightArrow", "upDownArrow", "leftUpArrow", "leftRightUpArrow", "quadArrow", "leftArrowCallout", "rightArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "bentArrow", "uturnArrow", "circularArrow", "leftCircularArrow", "leftRightCircularArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "swooshArrow", "cube", "can", "lightningBolt", "heart", "sun", "moon", "smileyFace", "irregularSeal1", "irregularSeal2", "foldedCorner", "bevel", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "bracketPair", "bracePair", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "cloud", "ribbon", "ribbon2", "ellipseRibbon", "ellipseRibbon2", "leftRightRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave", "plus", "flowChartProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOfflineStorage", "flowChartOnlineStorage", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "flowChartDelay", "flowChartAlternateProcess", "flowChartOffpageConnector", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonForwardNext", "actionButtonBackPrevious", "actionButtonEnd", "actionButtonBeginning", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "gear6", "gear9", "funnel", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "cornerTabs", "squareTabs", "plaqueTabs", "chartX", "chartStar", "chartPlus"];
648
+ type PresetGeometryName = (typeof presetGeometryTuple)[number];
649
+ type PresetGeometry = {
650
+ readonly type: "preset";
651
+ readonly name: PresetGeometryName;
652
+ /** Raw DrawingML adjust values indexed by guide name (adj, adj1, adj2, etc.). */
653
+ readonly adjust?: Readonly<Record<string, number>> | undefined;
654
+ };
655
+ type PathCommand = {
656
+ readonly op: "M";
657
+ readonly x: number;
658
+ readonly y: number;
659
+ } | {
660
+ readonly op: "L";
661
+ readonly x: number;
662
+ readonly y: number;
663
+ } | {
664
+ readonly op: "C";
665
+ readonly x1: number;
666
+ readonly y1: number;
667
+ readonly x2: number;
668
+ readonly y2: number;
669
+ readonly x: number;
670
+ readonly y: number;
671
+ } | {
672
+ readonly op: "Q";
673
+ readonly x1: number;
674
+ readonly y1: number;
675
+ readonly x: number;
676
+ readonly y: number;
677
+ } | {
678
+ readonly op: "Z";
679
+ };
680
+ type GeometryPath = {
681
+ readonly commands: readonly PathCommand[];
682
+ readonly fill?: boolean | undefined;
683
+ readonly stroke?: boolean | undefined;
684
+ };
685
+ /** Custom geometry uses local coordinates and scales to the bounding box allocated by layout. */
686
+ type CustomGeometry = {
687
+ readonly type: "custom";
688
+ readonly width: number;
689
+ readonly height: number;
690
+ readonly paths: readonly GeometryPath[];
691
+ readonly connectionSites?: readonly {
692
+ readonly x: number;
693
+ readonly y: number;
694
+ }[] | undefined;
695
+ };
696
+ type Geometry = PresetGeometryName | PresetGeometry | CustomGeometry;
697
+ type LayoutLength = number | `${number}%` | "auto";
698
+ type LayoutSpacing = number | readonly [number, number] | readonly [number, number, number, number];
699
+ type NonNegativeLayoutSpacing = number | readonly [number, number] | readonly [number, number, number, number];
700
+ type PaddingStyle = {
701
+ readonly padding?: NonNegativeLayoutSpacing | undefined;
702
+ readonly paddingTop?: number | undefined;
703
+ readonly paddingRight?: number | undefined;
704
+ readonly paddingBottom?: number | undefined;
705
+ readonly paddingLeft?: number | undefined;
706
+ };
707
+ /** Fixed canvas CSS layout subset; numeric lengths are interpreted in pixels. */
708
+ type LayoutStyle = {
709
+ readonly display?: "block" | "flex" | "grid" | "none" | undefined;
710
+ readonly position?: "static" | "relative" | "absolute" | undefined;
711
+ readonly inset?: LayoutLength | undefined;
712
+ readonly left?: LayoutLength | undefined;
713
+ readonly top?: LayoutLength | undefined;
714
+ readonly right?: LayoutLength | undefined;
715
+ readonly bottom?: LayoutLength | undefined;
716
+ readonly width?: LayoutLength | undefined;
717
+ readonly height?: LayoutLength | undefined;
718
+ readonly minWidth?: LayoutLength | undefined;
719
+ readonly minHeight?: LayoutLength | undefined;
720
+ readonly maxWidth?: LayoutLength | undefined;
721
+ readonly maxHeight?: LayoutLength | undefined;
722
+ readonly margin?: LayoutSpacing | undefined;
723
+ readonly marginTop?: number | undefined;
724
+ readonly marginRight?: number | undefined;
725
+ readonly marginBottom?: number | undefined;
726
+ readonly marginLeft?: number | undefined;
727
+ readonly padding?: NonNegativeLayoutSpacing | undefined;
728
+ readonly paddingTop?: number | undefined;
729
+ readonly paddingRight?: number | undefined;
730
+ readonly paddingBottom?: number | undefined;
731
+ readonly paddingLeft?: number | undefined;
732
+ readonly gap?: number | undefined;
733
+ readonly rowGap?: number | undefined;
734
+ readonly columnGap?: number | undefined;
735
+ readonly flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
736
+ readonly flexWrap?: "nowrap" | "wrap" | undefined;
737
+ readonly justifyContent?: "start" | "end" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
738
+ readonly alignItems?: "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | "baseline" | undefined;
739
+ readonly alignSelf?: "auto" | "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | "baseline" | undefined;
740
+ readonly alignContent?: "start" | "end" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
741
+ /**
742
+ * Non-negative flex shorthand (equivalent to `flexGrow: value, flexShrink: 1, flexBasis: 0`).
743
+ *
744
+ * Flex items default to automatic minimum content size (`minWidth: "auto"` / `minHeight: "auto"`).
745
+ * For equal-width columns regardless of inner content size, also set `minWidth: 0` or use CSS Grid
746
+ * (`gridTemplateColumns: "1fr 1fr"`).
747
+ */
748
+ readonly flex?: number | undefined;
749
+ readonly flexGrow?: number | undefined;
750
+ readonly flexShrink?: number | undefined;
751
+ readonly flexBasis?: LayoutLength | undefined;
752
+ readonly aspectRatio?: number | undefined;
753
+ readonly gridTemplateColumns?: string | undefined;
754
+ readonly gridTemplateRows?: string | undefined;
755
+ /** Track sizes for implicit Grid rows, cycling in order like CSS `grid-auto-rows`; defaults to `auto`. */
756
+ readonly gridAutoRows?: string | undefined;
757
+ readonly gridColumn?: string | number | undefined;
758
+ readonly gridRow?: string | number | undefined;
759
+ readonly justifyItems?: "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | undefined;
760
+ readonly justifySelf?: "auto" | "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | undefined;
761
+ readonly zIndex?: number | undefined;
762
+ };
763
+ /** Fixed canvas length; numeric values are interpreted in pixels, percentages are evaluated against the parent layout region. */
764
+ declare const layoutLengthSchema: z.ZodType<LayoutLength>;
765
+ declare const layoutSpacingSchema: z.ZodType<LayoutSpacing>;
766
+ declare const paddingStyleSchema: z.ZodType<PaddingStyle>;
767
+ declare const layoutStyleSchema: z.ZodType<LayoutStyle>;
768
+ type TextList = {
769
+ readonly type: "bullet";
770
+ readonly character?: string | undefined;
771
+ readonly level?: number | undefined;
772
+ } | {
773
+ readonly type: "number";
774
+ readonly style?: "arabicPeriod" | undefined;
775
+ readonly startAt?: number | undefined;
776
+ readonly level?: number | undefined;
777
+ };
778
+ declare const textPlaceholderRoles: readonly ["title", "ctrTitle", "subTitle", "body", "dt", "ftr", "hdr"];
779
+ type TextPlaceholderRole = (typeof textPlaceholderRoles)[number];
780
+ declare const contentPlaceholderRoles: readonly ["title", "ctrTitle", "subTitle", "body", "dt", "ftr", "hdr", "pic", "clipArt", "tbl", "chart", "content", "obj", "sldNum", "dgm", "media"];
781
+ /** Placeholder roles. `content` leaves the OOXML `type` attribute absent and `obj` writes it explicitly. */
782
+ type ContentPlaceholderRole = (typeof contentPlaceholderRoles)[number];
783
+ type PlaceholderSize = "full" | "half" | "quarter";
784
+ /** Official OOXML ST_PlaceholderSize values for placeholder slots. */
785
+ declare const placeholderSizeSchema: z.ZodType<PlaceholderSize>;
786
+ type PlaceholderOrient = "horz" | "vert";
787
+ type PlaceholderLevelStyle = TextStyle & {
788
+ readonly list?: TextList | undefined;
789
+ readonly marginLeft?: number | undefined;
790
+ readonly indent?: number | undefined;
791
+ readonly spacingBefore?: number | undefined;
792
+ };
793
+ type PlaceholderListStyles = {
794
+ readonly 1?: PlaceholderLevelStyle | undefined;
795
+ readonly 2?: PlaceholderLevelStyle | undefined;
796
+ readonly 3?: PlaceholderLevelStyle | undefined;
797
+ readonly 4?: PlaceholderLevelStyle | undefined;
798
+ readonly 5?: PlaceholderLevelStyle | undefined;
799
+ readonly 6?: PlaceholderLevelStyle | undefined;
800
+ readonly 7?: PlaceholderLevelStyle | undefined;
801
+ readonly 8?: PlaceholderLevelStyle | undefined;
802
+ readonly 9?: PlaceholderLevelStyle | undefined;
803
+ };
804
+ type PlaceholderStyle = LayoutStyle & PaddingStyle & TextStyle & VisualStyle;
805
+ type LayoutPlaceholderSpec<Role extends ContentPlaceholderRole = ContentPlaceholderRole> = {
806
+ readonly type: Role;
807
+ readonly idx?: number | undefined;
808
+ readonly size?: PlaceholderSize | undefined;
809
+ readonly orient?: PlaceholderOrient | undefined;
810
+ readonly hasCustomPrompt?: boolean | undefined;
811
+ readonly name?: string | undefined;
812
+ readonly geometry?: Geometry | undefined;
813
+ readonly style?: PlaceholderStyle | undefined;
814
+ readonly listStyles?: PlaceholderListStyles | undefined;
815
+ readonly promptText?: string | undefined;
816
+ };
817
+ type MasterPlaceholderSpec = LayoutPlaceholderSpec;
818
+ type PlaceholderMap = Readonly<Record<string, LayoutPlaceholderSpec>>;
819
+ type EmptyPlaceholderMap = Readonly<Record<never, LayoutPlaceholderSpec>>;
820
+ type MasterPlaceholderMap = Readonly<Record<string, MasterPlaceholderSpec>>;
821
+ type MasterTextStyles = {
822
+ readonly titleStyle?: PlaceholderListStyles | undefined;
823
+ readonly bodyStyle?: PlaceholderListStyles | undefined;
824
+ readonly otherStyle?: PlaceholderListStyles | undefined;
825
+ };
826
+ type NativePlaceholderRef = {
827
+ readonly type: ContentPlaceholderRole;
828
+ readonly idx?: number | undefined;
829
+ readonly size?: PlaceholderSize | undefined;
830
+ readonly orient?: PlaceholderOrient | undefined;
831
+ readonly hasCustomPrompt?: boolean | undefined;
832
+ };
833
+ type PlaceholderResolutionContext = {
834
+ readonly key?: string;
835
+ readonly nativeRef: NativePlaceholderRef;
836
+ readonly masterTheme: ThemeContext;
837
+ readonly masterTextStyles?: MasterTextStyles;
838
+ readonly masterPlaceholder?: MasterPlaceholderSpec;
839
+ readonly layoutPlaceholder?: LayoutPlaceholderSpec;
840
+ readonly slideDimensions?: {
841
+ readonly width: number;
842
+ readonly height: number;
843
+ };
844
+ };
845
+ declare const slideLayoutDefinitionSymbol: unique symbol;
846
+ type ContainerScope = "deck" | "master" | "layout" | "slide";
847
+ /** Author property paths provided by a capability at each container level. */
848
+ type ContainerSlots = Readonly<Partial<Record<ContainerScope, readonly string[]>>>;
849
+ /**
850
+ * Directional contract for a native PresentationML canvas mechanism.
851
+ * Every canvas mechanism must declare production emit, paint, and import directions.
852
+ */
853
+ type CanvasMechanismDefinition<Key extends string = string, Model = unknown, ImportSpec = unknown, EmitCtx = EmitContext, EmitOut = EmitOutput, PaintCtx = PaintContext, PaintOut = PaintOutput> = {
854
+ readonly key: Key;
855
+ readonly role: "canvas";
856
+ emit(model: Model, context: EmitCtx): EmitOut;
857
+ paint(model: Model, context: PaintCtx): PaintOut;
858
+ readonly import: ImportSpec;
859
+ };
860
+ /**
861
+ * Directional contract for a native PresentationML slide/show mechanism without static paint output.
862
+ * Every show mechanism must declare production emit and import directions and forbid paint.
863
+ */
864
+ type ShowMechanismDefinition<Key extends string = string, Model = unknown, ImportSpec = unknown, EmitCtx = SlideEmitContext, EmitOut = SlideEmitOutput> = {
865
+ readonly key: Key;
866
+ readonly role: "show";
867
+ emit(model: Model, context: EmitCtx): EmitOut;
868
+ readonly import: ImportSpec;
869
+ readonly paint?: never;
870
+ };
871
+ /** Union of all production native mechanism definitions declared by capability modules. */
872
+ type NativeMechanismDefinition<Key extends string = string, Model = any, ImportSpec = unknown> = CanvasMechanismDefinition<Key, Model, ImportSpec, any, any, any, any> | ShowMechanismDefinition<Key, Model, ImportSpec, any, any>;
873
+ /** Sealed canvas mechanism handle retaining only the literal mechanism key and canvas role. */
874
+ type SealedCanvasMechanism<Key extends string = string> = CanvasMechanismDefinition<Key, any, unknown, any, any, any, any>;
875
+ /** Sealed show mechanism handle retaining only the literal mechanism key and show role. */
876
+ type SealedShowMechanism<Key extends string = string> = ShowMechanismDefinition<Key, any, unknown, any, any>;
877
+ declare const morphKeyBrand: unique symbol;
878
+ declare const morphKeyLabel: unique symbol;
879
+ /** Handle created by MorphScope to explicitly declare cross-slide object continuity. */
880
+ type MorphKey = {
881
+ readonly [morphKeyBrand]: true;
882
+ readonly [morphKeyLabel]: string;
883
+ };
884
+ /**
885
+ * Continuity handle factory for a single logical component instance.
886
+ *
887
+ * Pass the same MorphScope when reusing across slides; duplicated components on the same slide each create their own scope. When created in a React component,
888
+ * use useMemo or useState to keep the scope stable; ordinary function component boundaries do not automatically establish a scope.
889
+ */
890
+ type MorphScope = {
891
+ /** Obtain a stable handle by name within this scope. */
892
+ handle(name: string): MorphKey;
893
+ };
894
+ /**
895
+ * Create an independent continuity scope; handles correspond across slides only when explicitly reused.
896
+ *
897
+ * When created in a React component, use useMemo or useState to keep the return value stable; cross-slide correspondence requires reusing the same scope.
898
+ */
899
+ declare function createMorphScope(): MorphScope;
900
+ declare function isMorphKey(value: unknown): value is MorphKey;
901
+ type TimingIds = {
902
+ take(): number;
903
+ /** Allocated only when a contributor needs to reference the main sequence. */
904
+ readonly mainSequenceId: number;
905
+ };
906
+ type TimingBranches = {
907
+ readonly rootChildren?: readonly string[];
908
+ /** Requests a main sequence even when there are no authored click steps. */
909
+ readonly requiresMainSequence?: boolean;
910
+ readonly mainSequenceSteps?: readonly string[];
911
+ /** Standalone effects to run at slide entry, before the first user click. */
912
+ readonly startupEffects?: readonly string[];
913
+ readonly buildList?: readonly string[];
914
+ };
915
+ /** A capability supplies branches of the part's timing root and allocates every cTn ID from ids. */
916
+ type TimingContribution = (ids: TimingIds) => TimingBranches;
917
+ type LocalFile = string | URL;
918
+ /** Suspends a binding only at points where it needs local resource bytes. */
919
+ type ResolveWork<T> = Generator<LocalFile, T, Uint8Array>;
920
+ type Rect = {
921
+ readonly x: number;
922
+ readonly y: number;
923
+ readonly width: number;
924
+ readonly height: number;
925
+ };
926
+ type FontStyleDescriptor = {
927
+ readonly family: string;
928
+ readonly weight: number;
929
+ readonly style: "normal" | "italic";
930
+ };
931
+ type UnmeasuredFontIssue = FontStyleDescriptor & {
932
+ /** Present when reason === "missing-glyphs": deduplicated visible non-whitespace characters mapped to .notdef. */
933
+ readonly missingGlyphs?: readonly string[];
934
+ };
935
+ /** Tri-state text layout metrics distinguishing measured fit/overflow from unmeasured font or glyph gaps. */
936
+ type TextMetrics = {
937
+ readonly status: "measured";
938
+ readonly available: {
939
+ readonly width: number;
940
+ readonly height: number;
941
+ };
942
+ readonly content: {
943
+ readonly width: number;
944
+ readonly height: number;
945
+ readonly lineCount: number;
946
+ };
947
+ readonly fits: boolean;
948
+ } | {
949
+ readonly status: "unmeasured";
950
+ readonly reason: "missing-font-resource" | "missing-glyphs";
951
+ readonly fonts: readonly UnmeasuredFontIssue[];
952
+ };
953
+ /** Document-level summary of a referenced font face style, its resource status, glyph gaps, and reference paths. */
954
+ type FontUsage = {
955
+ readonly family: string;
956
+ readonly weight: number;
957
+ readonly style: "normal" | "italic";
958
+ readonly hasResource: boolean;
959
+ readonly substitute?: boolean;
960
+ readonly embeddable?: boolean;
961
+ readonly missingGlyphs?: readonly string[];
962
+ readonly paths: readonly string[];
963
+ };
964
+ type ResolvedFooterSlot = {
965
+ readonly format?: DateTimeFormat;
966
+ readonly box: Rect;
967
+ readonly text: string;
968
+ readonly textMetrics: TextMetrics;
969
+ };
970
+ type ResolvedFooter = {
971
+ readonly dateTime?: ResolvedFooterSlot;
972
+ readonly footer?: ResolvedFooterSlot;
973
+ readonly slideNumber?: ResolvedFooterSlot;
974
+ };
975
+ /** Link properties registered by core as relationships or slide actions for native object capabilities to write out. */
976
+ type NativeLink = {
977
+ readonly relationshipId?: string;
978
+ readonly action?: string;
979
+ };
980
+ type ScreenPoint = {
981
+ readonly x: number;
982
+ readonly y: number;
983
+ };
984
+ type ObjectTransform = {
985
+ readonly angle: number;
986
+ readonly flipH: boolean;
987
+ readonly flipV: boolean;
988
+ };
989
+ /** Media playback interval in milliseconds. */
990
+ type MediaTrim = {
991
+ /** Start position measured from the beginning of the source. */
992
+ readonly start?: number | undefined;
993
+ /**
994
+ * End position from the beginning, or the amount to remove from the end.
995
+ * An absolute position requires a known source duration when looping.
996
+ */
997
+ readonly end?: number | {
998
+ readonly fromEnd: number;
999
+ } | undefined;
1000
+ };
1001
+ type ResolvedVideo = Readonly<{
1002
+ readonly contentType: "video/mp4";
1003
+ readonly autoPlay: boolean;
1004
+ readonly loop: boolean;
1005
+ readonly muted: boolean;
1006
+ readonly volume: number;
1007
+ readonly trim?: MediaTrim;
1008
+ } & ({
1009
+ readonly kind: "embedded";
1010
+ } | {
1011
+ readonly kind: "external";
1012
+ readonly url: string;
1013
+ })>;
1014
+ type AudioContentType = "audio/mpeg" | "audio/wav" | "audio/mp4";
1015
+ type ResolvedAudio = Readonly<{
1016
+ readonly autoPlay: boolean;
1017
+ readonly loop: boolean;
1018
+ readonly muted: boolean;
1019
+ readonly volume: number;
1020
+ readonly trim?: MediaTrim;
1021
+ readonly hideDuringShow: boolean;
1022
+ } & ({
1023
+ readonly kind: "embedded";
1024
+ readonly contentType: AudioContentType;
1025
+ } | {
1026
+ readonly kind: "external";
1027
+ readonly url: string;
1028
+ /** Content type inferred from a recognized URL suffix when available. */
1029
+ readonly contentType?: AudioContentType;
1030
+ })>;
1031
+ type ResolvedImage = {
1032
+ readonly kind: "embedded";
1033
+ readonly contentType: string;
1034
+ readonly width: number;
1035
+ readonly height: number;
1036
+ } | {
1037
+ readonly kind: "external";
1038
+ readonly id?: string;
1039
+ readonly path: string;
1040
+ readonly url: string;
1041
+ readonly placeholder: PreviewPlaceholder;
1042
+ };
1043
+ type ResolvedObject = {
1044
+ readonly id: number;
1045
+ readonly kind: string;
1046
+ readonly name: string;
1047
+ /** Author id declared on the source node; numeric `id` remains the build observation identity. */
1048
+ readonly authorId?: string;
1049
+ readonly path: string;
1050
+ readonly placeholder?: string;
1051
+ readonly geometry?: string;
1052
+ readonly box?: Rect;
1053
+ readonly bounds?: Rect;
1054
+ readonly corners?: readonly [ScreenPoint, ScreenPoint, ScreenPoint, ScreenPoint];
1055
+ readonly transform?: ObjectTransform;
1056
+ readonly gridArea?: Rect;
1057
+ readonly text?: string;
1058
+ readonly textMetrics?: TextMetrics;
1059
+ readonly image?: ResolvedImage;
1060
+ readonly video?: ResolvedVideo;
1061
+ readonly audio?: ResolvedAudio;
1062
+ readonly link?: string;
1063
+ readonly table?: ResolvedTable;
1064
+ readonly members?: readonly ResolvedObject[];
1065
+ };
1066
+ type LayoutChildReference = {
1067
+ readonly kind: "layout" | "object";
1068
+ readonly id: number;
1069
+ };
1070
+ type ResolvedLayout = {
1071
+ readonly id: number;
1072
+ readonly authorId?: string;
1073
+ readonly path: string;
1074
+ readonly box: Rect;
1075
+ readonly gridArea?: Rect;
1076
+ readonly columnWidths?: readonly number[];
1077
+ readonly rowHeights?: readonly number[];
1078
+ readonly children: readonly LayoutChildReference[];
1079
+ };
1080
+ type ResolvedTableRow = {
1081
+ readonly index: number;
1082
+ readonly id?: string;
1083
+ readonly path: string;
1084
+ readonly y: number;
1085
+ readonly height: number;
1086
+ readonly box: Rect;
1087
+ };
1088
+ type ResolvedTableCell = {
1089
+ readonly row: number;
1090
+ readonly column: number;
1091
+ readonly rowSpan: number;
1092
+ readonly colSpan: number;
1093
+ readonly id?: string;
1094
+ readonly path: string;
1095
+ readonly box: Rect;
1096
+ readonly text: string;
1097
+ readonly textMetrics: TextMetrics;
1098
+ };
1099
+ /** Table report retains zero-based row and column indexes, corresponding one-to-one with native merge extents. */
1100
+ type ResolvedTable = {
1101
+ readonly columns: readonly number[];
1102
+ readonly rows: readonly ResolvedTableRow[];
1103
+ /** Unconditional anchor cell observations in row-major order. */
1104
+ readonly cells: readonly ResolvedTableCell[];
1105
+ readonly merges: readonly {
1106
+ readonly row: number;
1107
+ readonly column: number;
1108
+ readonly rowSpan: number;
1109
+ readonly colSpan: number;
1110
+ }[];
1111
+ };
1112
+ /** Read-only review metadata in slide pixels, independent of the slide canvas. */
1113
+ type ResolvedComment = {
1114
+ readonly id?: string;
1115
+ readonly path: string;
1116
+ readonly author: string;
1117
+ readonly initials: string;
1118
+ readonly position: ScreenPoint;
1119
+ /** XML date-time as written, including the timezone if one was supplied. */
1120
+ readonly createdAt?: string;
1121
+ readonly text: string;
1122
+ };
1123
+ type ResolvedSlide = {
1124
+ /** Page author id; also the stable identifier written to the slide part. */
1125
+ readonly id: string;
1126
+ /** Author id declared on the Slide, retained as the explicit author observation for pages. */
1127
+ readonly authorId?: string;
1128
+ readonly index: number;
1129
+ readonly path: string;
1130
+ readonly layout?: string;
1131
+ readonly section?: string;
1132
+ readonly hidden?: boolean;
1133
+ readonly showMasterPlaceholderAnimations?: boolean;
1134
+ readonly objects: readonly ResolvedObject[];
1135
+ readonly layouts?: readonly ResolvedLayout[];
1136
+ readonly comments?: readonly ResolvedComment[];
1137
+ readonly footer?: ResolvedFooter;
1138
+ readonly capabilities?: Readonly<Record<string, unknown>>;
1139
+ };
1140
+ type ResolutionDimensionsSummary = {
1141
+ readonly width: number;
1142
+ readonly height: number;
1143
+ };
1144
+ type ResolutionReport = {
1145
+ readonly evidence: "generation";
1146
+ readonly title?: string;
1147
+ readonly dimensions: ResolutionDimensionsSummary;
1148
+ readonly extensions: readonly Extension[];
1149
+ readonly fonts: readonly FontUsage[];
1150
+ readonly masters?: readonly ResolvedMaster[];
1151
+ readonly slides: readonly ResolvedSlide[];
1152
+ };
1153
+ type Resolution = {
1154
+ readonly report: ResolutionReport;
1155
+ readonly slides: readonly SlideLocator[];
1156
+ slide(id: string): SlideLocator;
1157
+ };
1158
+ type BuildReport = {
1159
+ readonly evidence: "generation";
1160
+ readonly title?: string;
1161
+ readonly dimensions: ResolutionDimensionsSummary;
1162
+ readonly target: {
1163
+ readonly name: string;
1164
+ readonly format: typeof formatBaseline;
1165
+ readonly extensions: readonly Extension[];
1166
+ };
1167
+ readonly extensions: readonly Extension[];
1168
+ readonly fonts: readonly FontUsage[];
1169
+ readonly masters?: readonly ResolvedMaster[];
1170
+ readonly slides: readonly ResolvedSlide[];
1171
+ };
1172
+ type BuildResult = {
1173
+ readonly pptx: Uint8Array;
1174
+ readonly report: BuildReport;
1175
+ readonly slides: readonly SlideLocator[];
1176
+ slide(id: string): SlideLocator;
1177
+ };
1178
+ type EmitResult = {
1179
+ readonly pptx: Uint8Array;
1180
+ readonly report: BuildReport;
1181
+ };
1182
+ type ResolvedResource = {
1183
+ readonly part: string;
1184
+ readonly contentType: string;
1185
+ readonly byteLength: number;
1186
+ };
1187
+ type LocatorResource = ResolvedResource & {
1188
+ readonly objectId: number;
1189
+ };
1190
+ /** Read-only locator and field observation for formal content in a successful build. */
1191
+ type Locator = {
1192
+ readonly id?: string;
1193
+ readonly kind: string;
1194
+ readonly path: string;
1195
+ readonly box?: Rect;
1196
+ readonly bounds?: Rect;
1197
+ readonly corners?: readonly [ScreenPoint, ScreenPoint, ScreenPoint, ScreenPoint];
1198
+ readonly transform?: ObjectTransform;
1199
+ readonly text?: string;
1200
+ readonly textMetrics?: TextMetrics;
1201
+ readonly image?: ResolvedImage;
1202
+ readonly video?: ResolvedVideo;
1203
+ readonly audio?: ResolvedAudio;
1204
+ readonly gridArea?: Rect;
1205
+ readonly objects: readonly ResolvedObject[];
1206
+ readonly resources?: readonly LocatorResource[];
1207
+ /** Finds one author id in this locator scope without crossing the next named scope. */
1208
+ get(id: string): Locator;
1209
+ /** Lists matches for an author id in this locator scope; duplicates are already rejected by the build. */
1210
+ getAll(id: string): readonly Locator[];
1211
+ /** Direct structural child locators, including anonymous and named nodes. */
1212
+ children(): readonly Locator[];
1213
+ descendants(): readonly Locator[];
1214
+ };
1215
+ type SlideLocator = Locator & {
1216
+ readonly id: string;
1217
+ readonly index: number;
1218
+ readonly dimensions: ResolutionDimensionsSummary;
1219
+ readonly footer?: ResolvedFooter;
1220
+ };
1221
+ /** Generic node in the React host tree, without exposing React or renderer internal objects. */
1222
+ type CapabilityElement = {
1223
+ readonly type: string;
1224
+ readonly props: Readonly<Record<string, unknown>>;
1225
+ readonly children: readonly CapabilityChild[];
1226
+ /** Identifies a declaration that must be a direct child of a slide. */
1227
+ readonly pageAffiliated?: boolean;
1228
+ };
1229
+ type CapabilityChild = CapabilityElement | {
1230
+ readonly type: "#text";
1231
+ readonly text: string;
1232
+ };
1233
+ type CapabilityInput = CapabilityElement;
1234
+ /** Declaration data submitted by capability modules alongside native objects for consumption by slide modules of the same name. */
1235
+ type CapabilityAnnotation = {
1236
+ readonly capability: string;
1237
+ readonly value: unknown;
1238
+ /**
1239
+ * Annotation that may remain unconsumed when its capability's writer is trimmed.
1240
+ *
1241
+ * Object capabilities emit optional local declarations (for example an object awaiting an inherited
1242
+ * default effect). Capability-owned contribution resolution runs before missing-capability checks and
1243
+ * turns declarations with actual effects into required contributions; required annotations keep the
1244
+ * existing missing-capability diagnostic.
1245
+ */
1246
+ readonly optional?: boolean;
1247
+ /**
1248
+ * Resolver owned by the capability that produced this annotation.
1249
+ *
1250
+ * Producers attach it to every local declaration, including optional ones, so the formal build finds
1251
+ * the resolver from effective contributions rather than from registered modules or their order. The
1252
+ * build applies it once per capability before slide output and missing-capability checks, so a trimmed
1253
+ * writer does not change how the remaining declarations are interpreted.
1254
+ */
1255
+ readonly resolveContributions?: ContributionResolver;
1256
+ };
1257
+ /** Declaration data passed to slide modules after core supplements object identity and diagnostic locations. */
1258
+ type CapabilityContribution = CapabilityAnnotation & {
1259
+ readonly path: string;
1260
+ /** Only native object declarations carry this identity; transparent capability declarations do not generate object IDs. */
1261
+ readonly targetId?: number;
1262
+ /** Preorder index in the slide host tree to preserve ordering of transparent declarations and object members. */
1263
+ readonly order: number;
1264
+ /** Build-local declaration view that produced this contribution; never retained on an editable node. */
1265
+ readonly declaration?: CapabilityElement;
1266
+ };
1267
+ /**
1268
+ * Derives effective annotations for one capability from the current build tree.
1269
+ *
1270
+ * The build calls this before slide output and missing-capability checks, with only that capability's
1271
+ * contributions. The result must contain the effective replacements; hiding an annotation here also
1272
+ * means it no longer makes a trimmed capability mandatory.
1273
+ */
1274
+ type ContributionResolver = (children: readonly CapabilityChild[], contributions: readonly CapabilityContribution[]) => readonly CapabilityContribution[];
1275
+ type CapabilityResource = {
1276
+ readonly bytes: Uint8Array;
1277
+ readonly extension: string;
1278
+ readonly contentType: string;
1279
+ readonly relationshipType: string;
1280
+ } | {
1281
+ readonly externalTarget: string;
1282
+ readonly relationshipType: string;
1283
+ };
1284
+ /** A slide native part and binary resources it references via part relationships. */
1285
+ type CapabilityPackagePart = {
1286
+ readonly part: {
1287
+ /** Fixed package-relative path or a template with one `{n}` sequence placeholder. */
1288
+ readonly pathTemplate: string;
1289
+ readonly contentType: string;
1290
+ };
1291
+ readonly relationshipType: string;
1292
+ /** Receives related part relationship IDs corresponding to relatedParts order. */
1293
+ readonly content: (relatedRelationshipIds: readonly string[]) => string | Uint8Array;
1294
+ readonly relatedParts: readonly {
1295
+ readonly pathTemplate: string;
1296
+ readonly contentType: string;
1297
+ readonly relationshipType: string;
1298
+ readonly bytes: Uint8Array;
1299
+ /** Allocate through the package-wide sequence for this path template. */
1300
+ readonly independentSequence?: boolean;
1301
+ }[];
1302
+ };
1303
+ /** A package relationship target resolved by core while packaging a capability-provided part. */
1304
+ type CapabilityPartRelationshipTarget = {
1305
+ readonly kind: "slide";
1306
+ } | {
1307
+ readonly kind: "part";
1308
+ readonly key: string;
1309
+ } | {
1310
+ readonly kind: "path";
1311
+ readonly path: string;
1312
+ };
1313
+ type CapabilityPartRelationship = {
1314
+ readonly relationshipType: string;
1315
+ readonly target: CapabilityPartRelationshipTarget;
1316
+ };
1317
+ /** A slide-owned part whose content, content type, and relationship declarations stay with the capability. */
1318
+ type CapabilitySlidePackagePart = {
1319
+ readonly part: {
1320
+ /** Fixed package-relative path or a template with one `{n}` sequence placeholder. */
1321
+ readonly pathTemplate: string;
1322
+ readonly contentType: string;
1323
+ };
1324
+ /** Relationship type from the current slide part to this part. */
1325
+ readonly slideRelationshipType: string;
1326
+ readonly relationships?: readonly CapabilityPartRelationship[];
1327
+ /** Receives relationship IDs corresponding to relationships order. */
1328
+ readonly content: (relationshipIds: readonly string[]) => string | Uint8Array;
1329
+ };
1330
+ /**
1331
+ * A deck-shared part registered once per build, such as a notes master.
1332
+ *
1333
+ * Core allocates its path and presentation relationship. The optional presentation element carries
1334
+ * the relationship ID so the capability owns the XML element while core owns schema placement.
1335
+ */
1336
+ type CapabilitySharedPackagePart = {
1337
+ readonly part: {
1338
+ /** Fixed package-relative path or a template with one `{n}` sequence placeholder. */
1339
+ readonly pathTemplate: string;
1340
+ readonly contentType: string;
1341
+ };
1342
+ /**
1343
+ * Relationship type from the presentation part to this part.
1344
+ *
1345
+ * Omit for a shared part that is only referenced by another capability part, such as a second
1346
+ * theme component. Such a part still receives a unique package path and can be targeted by a
1347
+ * `{ kind: "part", key }` relationship, but it has no presentation-level relationship.
1348
+ */
1349
+ readonly presentationRelationshipType?: string;
1350
+ readonly relationships?: readonly CapabilityPartRelationship[];
1351
+ readonly presentationElement?: {
1352
+ readonly position: "before-slides" | "after-notes-master" | "after-notes-size";
1353
+ readonly content: (relationshipId: string) => string;
1354
+ };
1355
+ /** Optional markup for dependent slide parts referencing this shared part. */
1356
+ readonly renderSlideFragment?: ((context: Pick<SlideEmitContext, "slideNumber" | "createTextFieldId">) => string) | undefined;
1357
+ readonly content: (relationshipIds: readonly string[]) => string | Uint8Array;
1358
+ };
1359
+ /** A resource item within a presentation-level XML record, with part and relationship IDs assigned uniformly by core. */
1360
+ type CapabilityPresentationContribution = {
1361
+ readonly collection: string;
1362
+ readonly presentationAttributes?: Readonly<Record<string, string>>;
1363
+ readonly record: {
1364
+ readonly key: string;
1365
+ readonly identity: string;
1366
+ readonly tagName: string;
1367
+ readonly content: string;
1368
+ };
1369
+ readonly item: {
1370
+ readonly key: string;
1371
+ readonly identity: string;
1372
+ /** Schema order of sibling relationship items within the same record. */
1373
+ readonly order: number;
1374
+ readonly relationshipType: string;
1375
+ readonly pathTemplate: string;
1376
+ readonly contentType: string;
1377
+ readonly bytes?: Uint8Array;
1378
+ /** Points to the corresponding shared resource claim when awaiting completion of deck character collection. */
1379
+ readonly resourceClaim?: {
1380
+ readonly kind: string;
1381
+ readonly key: string;
1382
+ };
1383
+ /** Called once after core aggregates characters for this resource claim, returning final part bytes to write. */
1384
+ readonly resolveBytes?: (characters: string, options: {
1385
+ readonly signal?: AbortSignal | undefined;
1386
+ }) => Uint8Array | Promise<Uint8Array>;
1387
+ readonly content: (relationshipId: string) => string;
1388
+ /** Optional domain-specific diagnostic emitted instead of the generic presentation-item conflict error when this item conflicts with an existing item under the same record. */
1389
+ readonly onConflict?: {
1390
+ readonly code: string;
1391
+ readonly message: string;
1392
+ readonly details?: Readonly<Record<string, unknown>>;
1393
+ };
1394
+ };
1395
+ };
1396
+ type CapabilityLayoutRequest = {
1397
+ /** Content width provided by the current layout algorithm in pixels. */
1398
+ readonly availableWidth?: number;
1399
+ /** Whether available width is a shrinkable upper bound or an exact width the layout must allocate. */
1400
+ readonly widthMode?: "at-most" | "exactly";
1401
+ /** Target height provided by the current layout algorithm in pixels. */
1402
+ readonly availableHeight?: number;
1403
+ /** Whether available height is a shrinkable upper bound or an exact target height. */
1404
+ readonly heightMode?: "at-most" | "exactly";
1405
+ /** Distinguishes baseline queries from general intrinsic sizing queries. */
1406
+ readonly purpose?: "baseline" | "layout";
1407
+ /** Theme, native overrides, and container text defaults shared between measurement and object compilation. */
1408
+ readonly theme: ThemeContext;
1409
+ /** 1-based slide number in the deck, used by shared text service to measure native slide number fields. */
1410
+ readonly slideNumber: number;
1411
+ };
1412
+ type NativeElementKind = "sp" | "pic" | "grpSp" | "graphicFrame" | "cxnSp";
1413
+ type CapabilityLayoutAxes = {
1414
+ readonly width: boolean;
1415
+ readonly height: boolean;
1416
+ };
1417
+ type CapabilityExplicitPixelSize = {
1418
+ readonly width?: number;
1419
+ readonly height?: number;
1420
+ };
1421
+ type CapabilityLayoutContract = {
1422
+ readonly nativeKind: NativeElementKind;
1423
+ readonly layoutStyle: LayoutStyle;
1424
+ readonly padding?: {
1425
+ readonly top: number;
1426
+ readonly right: number;
1427
+ readonly bottom: number;
1428
+ readonly left: number;
1429
+ };
1430
+ /** Finite numeric pixel width/height explicitly declared on `style` (percentages and `"auto"` remain `undefined`). */
1431
+ readonly explicitPixelSize?: CapabilityExplicitPixelSize;
1432
+ /** Axes constrained by explicit width/height (pixel or percentage) or opposing absolute offsets (`left+right`, `top+bottom`, `inset`). */
1433
+ readonly fixedAxes?: CapabilityLayoutAxes;
1434
+ /** True when `style.position` is `"relative"` or `"absolute"`. */
1435
+ readonly positioned?: boolean;
1436
+ /** Prevents `display: "block"` `alignItems: "stretch"` from expanding auto-width replaced items to container width. */
1437
+ readonly preservesIntrinsicSize?: boolean;
1438
+ /** Enforces measured content/track dimensions as lower bounds and preserves explicit row sums over target dimensions (CSS table sizing). */
1439
+ readonly contentMinimumsEnforced?: boolean;
1440
+ /** Excludes off-flow objects (such as endpoint-anchored connectors) from layout solver participation and defers resolve() until scope sibling targets exist. */
1441
+ readonly excludedFromLayout?: boolean;
1442
+ };
1443
+ type CapabilityParseContext = {
1444
+ readonly path: string;
1445
+ readonly theme: ThemeContext;
1446
+ readonly options: ResolveOptions;
1447
+ readonly slideNumber: number;
1448
+ readonly placeholder?: PlaceholderResolutionContext;
1449
+ };
1450
+ /** Intrinsic size and main-axis min-content size provided by capability modules, in pixels. */
1451
+ type CapabilityLayoutMeasurement = {
1452
+ /** Natural width after typesetting at the requested width. */
1453
+ readonly width?: number;
1454
+ /** Natural height after typesetting at the requested width. */
1455
+ readonly height?: number;
1456
+ /** Minimum content width used when computing automatic minimum size along the width axis. */
1457
+ readonly minContentWidth?: number;
1458
+ /** Minimum content height used when computing automatic minimum size along the height axis. */
1459
+ readonly minContentHeight?: number;
1460
+ /** Distance in pixels from the object top edge to the first line baseline when reliable text measurement is available, or `"unavailable"` when the object bears text whose baseline cannot be measured. */
1461
+ readonly baseline?: number | "unavailable";
1462
+ };
1463
+ /**
1464
+ * Generic sub-part observation node contributed by a composite object capability
1465
+ * for read-only locator traversal and observation without core knowing capability-specific part kinds.
1466
+ */
1467
+ type CapabilitySubPart = {
1468
+ readonly kind?: string;
1469
+ readonly authorId?: string;
1470
+ readonly path?: string;
1471
+ readonly box?: Rect;
1472
+ readonly text?: string;
1473
+ readonly textMetrics?: TextMetrics;
1474
+ readonly parts?: readonly CapabilitySubPart[];
1475
+ };
1476
+ /** Font usage claim reported by capability modules to assemble document-level FontUsage summaries. */
1477
+ type CapabilityFontUsageClaim = {
1478
+ readonly family: string;
1479
+ readonly weight: number;
1480
+ readonly style: "normal" | "italic";
1481
+ readonly hasResource: boolean;
1482
+ readonly substitute?: boolean;
1483
+ readonly embeddable?: boolean;
1484
+ readonly missingGlyphs?: readonly string[];
1485
+ readonly path?: string;
1486
+ };
1487
+ /** Claim provided by capability to deck-scoped resource processing; character content is generated by the shared text service. */
1488
+ type CapabilityResourceClaim = {
1489
+ readonly kind: string;
1490
+ readonly key: string;
1491
+ readonly identity: string;
1492
+ /** Actual output text from the shared text service, used for subsequent font resource processing. */
1493
+ readonly characters?: string;
1494
+ };
1495
+ type PreviewTransform = {
1496
+ readonly box: Rect;
1497
+ readonly angle: number;
1498
+ readonly flipH: boolean;
1499
+ readonly flipV: boolean;
1500
+ };
1501
+ /**
1502
+ * Generic native object collaboration facts submitted by a bound object capability.
1503
+ * Core coordinates Morph continuity, explicit name conflicts, and click relationships without reading leaf props.
1504
+ */
1505
+ type BoundObjectNativeCollaboration = {
1506
+ readonly morphKey?: MorphKey;
1507
+ /** True when the capability claims an explicit native object name, conflicting with morphKey. */
1508
+ readonly hasExplicitName?: boolean;
1509
+ /** Whether this bound instance produces a native slide object; defaults to true when omitted. */
1510
+ readonly emitsObject?: boolean;
1511
+ readonly link?: LinkTarget;
1512
+ };
1513
+ /**
1514
+ * Generic container collaboration facts submitted by a bound object capability.
1515
+ * Core coordinates child layout/compilation, active theme context propagation, layout observation,
1516
+ * baseline propagation, and native object qualification without hardcoding container names.
1517
+ */
1518
+ type BoundContainerCollaboration = {
1519
+ /** Child declarations owned by this layout container. */
1520
+ readonly children: readonly CapabilityChild[];
1521
+ /** Native theme overrides and inherited container text defaults applied to descendants and container compilation. */
1522
+ readonly theme?: ThemeContext;
1523
+ /** True when this container produces a native PresentationML object rather than remaining layout-only. */
1524
+ readonly emitsObject: boolean;
1525
+ /**
1526
+ * Controls whether resolved children remain siblings of the container or are enclosed as native
1527
+ * members inside `bound.resolve` via `context.resolveChildren`. Defaults to `"siblings"`.
1528
+ */
1529
+ readonly childComposition?: "siblings" | "members";
1530
+ /** True when members inside this container cannot declare continuity keys (e.g. native group members). Defaults to false. */
1531
+ readonly restrictsMemberContinuity?: boolean;
1532
+ /** True when this container contributes a layout-region observation (`kind: "layout"`). Defaults to true. */
1533
+ readonly observesLayout?: boolean;
1534
+ /** True when single-child flex rows propagate text baseline through this container. Defaults to true. */
1535
+ readonly propagatesBaseline?: boolean;
1536
+ };
1537
+ type ResolvedLink = {
1538
+ readonly target: LinkTarget;
1539
+ readonly summary: string;
1540
+ };
1541
+ type ResolvedObjectChildren = {
1542
+ readonly objects: readonly ResolvedObject[];
1543
+ };
1544
+ type ScopeTargetObject = {
1545
+ readonly spid: number;
1546
+ readonly kind: string;
1547
+ readonly box: Rect;
1548
+ readonly transform?: PreviewTransform;
1549
+ readonly connectionSites?: readonly ScreenPoint[];
1550
+ };
1551
+ type ObjectResolveContext = {
1552
+ readonly id: number;
1553
+ readonly path: string;
1554
+ /** Active theme context (deck theme, native theme overrides, and inherited container text defaults) available to the current element. */
1555
+ readonly theme: ThemeContext;
1556
+ readonly options: ResolveOptions;
1557
+ readonly slideNumber: number;
1558
+ readonly layoutBox?: Rect;
1559
+ /** Axes whose final size is determined by layout constraints (explicit/percentage size, opposing offsets, flex sizing, or grid/flex stretch). */
1560
+ readonly layoutSizedAxes?: CapabilityLayoutAxes;
1561
+ readonly placeholder?: PlaceholderResolutionContext;
1562
+ /** Convert an explicit continuity handle into an OOXML object name; objects without declared continuity omit this value. */
1563
+ readonly morphName?: string;
1564
+ /** Link target already validated during resolve before relationship ID allocation in emit. */
1565
+ readonly link?: ResolvedLink;
1566
+ /** Look up a resolved native object in the current naming scope by authorId (populated before excludedFromLayout resolve runs). */
1567
+ resolveTargetObject?(authorId: string): ScopeTargetObject | undefined;
1568
+ /** Recursively resolve member child objects using the same registered modules. */
1569
+ resolveChildren(children: readonly CapabilityChild[]): ResolvedObjectChildren;
1570
+ };
1571
+ type EmitContext = {
1572
+ readonly id: number;
1573
+ readonly path: string;
1574
+ readonly theme: ThemeContext;
1575
+ readonly options: EmitOptions;
1576
+ readonly slideNumber: number;
1577
+ readonly nativeLink?: NativeLink;
1578
+ readonly childrenXml: string;
1579
+ readonly createTextFieldId: () => string;
1580
+ registerResource(resource: CapabilityResource): string;
1581
+ registerPackagePart(part: CapabilityPackagePart): string;
1582
+ };
1583
+ type EmitOutput = {
1584
+ readonly xml: string;
1585
+ readonly timing?: TimingContribution;
1586
+ readonly presentationContributions?: readonly CapabilityPresentationContribution[];
1587
+ };
1588
+ /** Raster image payload submitted by a capability during static preview painting. */
1589
+ type PaintRasterResource = {
1590
+ readonly contentType: "image/png" | "image/jpeg" | "image/gif";
1591
+ readonly bytes: Uint8Array;
1592
+ };
1593
+ type PaintContext = {
1594
+ readonly path: string;
1595
+ readonly slideNumber: number;
1596
+ readonly objectId: number;
1597
+ readonly box?: Rect;
1598
+ readonly theme: ThemeContext;
1599
+ readonly childrenSvg?: string;
1600
+ /**
1601
+ * Registers raster image bytes for the current preview page and returns an SVG `href` token
1602
+ * for `<image href="..."/>`. Set `normalizeToPng` to decode PNG, JPEG, or the first
1603
+ * GIF frame and register the resulting PNG. The preview stage reports corrupt image data
1604
+ * at the supplied diagnostic location.
1605
+ *
1606
+ * When provided by `@pptxdk/preview`, identical raster payloads on the same page are encoded
1607
+ * to Base64 at most once after offscreen/clip sanitization: a single surviving `<image>`
1608
+ * receives an inline `data:` URI, while two or more surviving `<image>` elements share a
1609
+ * page-level `<defs>` entry and `<use>` references.
1610
+ */
1611
+ readonly registerRasterResource: (resource: PaintRasterResource, options?: {
1612
+ readonly normalizeToPng?: boolean;
1613
+ readonly diagnostic?: {
1614
+ readonly path?: string;
1615
+ readonly field: string;
1616
+ };
1617
+ }) => string;
1618
+ };
1619
+ type PaintPlaceholderRecord = {
1620
+ readonly id?: string;
1621
+ readonly path?: string;
1622
+ readonly url: string;
1623
+ };
1624
+ type PaintOutput = {
1625
+ readonly svg: string;
1626
+ readonly placeholders?: readonly PaintPlaceholderRecord[];
1627
+ };
1628
+ /** Internal capability protocol result returned by `BoundObjectCapability.resolve()`. */
1629
+ type ObjectResolution = {
1630
+ readonly observation: Omit<ResolvedObject, "path"> & {
1631
+ readonly path?: string;
1632
+ };
1633
+ readonly transform?: PreviewTransform;
1634
+ readonly connectionSites?: readonly ScreenPoint[];
1635
+ readonly parts?: readonly CapabilitySubPart[];
1636
+ readonly extensions: readonly Extension[];
1637
+ readonly annotations?: readonly CapabilityAnnotation[];
1638
+ readonly resourceClaims?: readonly CapabilityResourceClaim[];
1639
+ readonly fontUsages?: readonly CapabilityFontUsageClaim[];
1640
+ emit(context: EmitContext): EmitOutput;
1641
+ paint?(context: PaintContext): PaintOutput;
1642
+ };
1643
+ /**
1644
+ * Per-build bound object instance whose private parsed state remains encapsulated inside the module closure.
1645
+ */
1646
+ type BoundObjectCapability = {
1647
+ readonly contract: CapabilityLayoutContract;
1648
+ readonly native?: BoundObjectNativeCollaboration;
1649
+ readonly container?: BoundContainerCollaboration;
1650
+ measureLayout?(request: CapabilityLayoutRequest): CapabilityLayoutMeasurement | undefined;
1651
+ resolve(context: ObjectResolveContext): ObjectResolution;
1652
+ };
1653
+ /** Structural placement checked against the author tree before layout can remove hidden objects. */
1654
+ type CapabilityPlacementContext = {
1655
+ readonly insideSlide: boolean;
1656
+ /** Outer to inner ancestor declarations within the canvas. */
1657
+ readonly ancestors: readonly CapabilityElement[];
1658
+ };
1659
+ /**
1660
+ * Object capability module that binds per-build declaration state into a closed handle without exposing private parsed state.
1661
+ */
1662
+ type ObjectCapabilityModule<Bound extends BoundObjectCapability = BoundObjectCapability, Mechanisms extends readonly NativeMechanismDefinition[] = readonly NativeMechanismDefinition[]> = {
1663
+ readonly declaration: string;
1664
+ readonly mechanisms?: Mechanisms;
1665
+ readonly codegen?: unknown;
1666
+ validatePlacement?(input: CapabilityInput, context: CapabilityPlacementContext): void;
1667
+ bind(input: CapabilityInput, context: CapabilityParseContext): Bound | ResolveWork<Bound>;
1668
+ };
1669
+ /** Transparent host node that does not generate native objects, submitting declarations only to its parent slide capability. */
1670
+ type TransparentCapabilityModule = {
1671
+ /** Host type generated by the declared component, such as `motion-scope`. */
1672
+ readonly declaration: string;
1673
+ /**
1674
+ * Whether the parent slide capability traverses this declaration's children as ordinary content.
1675
+ *
1676
+ * `"owned"` means the capability consumes the subtree itself: children never become layout nodes,
1677
+ * native objects, paint layers, or motion targets. Core still validates author ids and reports the
1678
+ * declaration to its owner, and owned declarations are collected even below hidden canvas parents.
1679
+ */
1680
+ readonly children?: "traverse" | "owned";
1681
+ compileDeclaration(input: CapabilityInput, context: {
1682
+ readonly path: string;
1683
+ readonly theme?: ThemeContext;
1684
+ readonly slideNumber?: number;
1685
+ readonly options?: ResolveOptions;
1686
+ }): readonly CapabilityAnnotation[];
1687
+ };
1688
+ type SlideCapabilitySlot = "background" | "shape-tree" | "transition" | "timing";
1689
+ type SlideMasterInheritanceContext = {
1690
+ readonly master?: {
1691
+ readonly headerFooter?: HeaderFooter;
1692
+ readonly footerPlaceholders?: FooterPlaceholders;
1693
+ };
1694
+ readonly layout?: {
1695
+ readonly headerFooter?: HeaderFooter;
1696
+ readonly footerPlaceholders?: FooterPlaceholders;
1697
+ };
1698
+ };
1699
+ type SlideCapabilityParseContext = {
1700
+ readonly path: string;
1701
+ readonly dimensions: {
1702
+ readonly width: number;
1703
+ readonly height: number;
1704
+ };
1705
+ readonly theme: ThemeContext;
1706
+ readonly options: ResolveOptions;
1707
+ readonly slideNumber: number;
1708
+ readonly contributions: readonly CapabilityContribution[];
1709
+ readonly inheritance?: SlideMasterInheritanceContext;
1710
+ };
1711
+ /**
1712
+ * Generic cross-slide continuity collaboration facts submitted by a bound slide capability.
1713
+ */
1714
+ type BoundSlideContinuityCollaboration = {
1715
+ /**
1716
+ * When true, core validates that each MorphKey object declared on this slide
1717
+ * has the same native element kind as matching objects on reachable source slides.
1718
+ */
1719
+ readonly matchSourceKinds?: boolean;
1720
+ };
1721
+ type SlideResolveContext = {
1722
+ readonly path: string;
1723
+ readonly dimensions: {
1724
+ readonly width: number;
1725
+ readonly height: number;
1726
+ };
1727
+ readonly contributions: readonly CapabilityContribution[];
1728
+ readonly children: readonly CapabilityChild[];
1729
+ readonly theme: ThemeContext;
1730
+ readonly options: ResolveOptions;
1731
+ readonly slideNumber: number;
1732
+ readonly inheritance?: SlideMasterInheritanceContext;
1733
+ };
1734
+ type SlideEmitContext = {
1735
+ readonly path: string;
1736
+ /** Complete resolved page list for slide parts with document-wide metadata. */
1737
+ readonly slides?: readonly ResolvedSlide[];
1738
+ readonly dimensions: {
1739
+ readonly width: number;
1740
+ readonly height: number;
1741
+ };
1742
+ readonly theme: ThemeContext;
1743
+ readonly options: EmitOptions;
1744
+ readonly slideNumber: number;
1745
+ readonly createTextFieldId: () => string;
1746
+ readonly allocateObjectId?: () => number;
1747
+ readonly registerResource: (resource: CapabilityResource) => string;
1748
+ readonly registerPackagePart: (part: CapabilitySlidePackagePart) => string;
1749
+ readonly registerSharedPart: (key: string, part: CapabilitySharedPackagePart) => {
1750
+ readonly path: string;
1751
+ readonly relationshipId?: string;
1752
+ readonly renderSlideFragment?: CapabilitySharedPackagePart["renderSlideFragment"];
1753
+ };
1754
+ };
1755
+ type DeckEmitContext = Pick<SlideEmitContext, "createTextFieldId" | "registerSharedPart">;
1756
+ type DeckCapabilityBinding = (context: DeckEmitContext) => void;
1757
+ type SlideEmitOutput = {
1758
+ readonly xml: string;
1759
+ readonly timing?: TimingContribution;
1760
+ readonly placeholderSpPrByKey?: Readonly<Record<string, string>>;
1761
+ readonly presentationContributions?: readonly CapabilityPresentationContribution[];
1762
+ };
1763
+ type SlidePaintContext = {
1764
+ readonly path: string;
1765
+ readonly dimensions: {
1766
+ readonly width: number;
1767
+ readonly height: number;
1768
+ };
1769
+ readonly theme: ThemeContext;
1770
+ readonly slideNumber: number;
1771
+ /**
1772
+ * Registers raster image bytes for the current preview page and returns an SVG `href` token
1773
+ * for `<image href="..."/>`. See {@link PaintContext.registerRasterResource}.
1774
+ */
1775
+ readonly registerRasterResource: PaintContext["registerRasterResource"];
1776
+ };
1777
+ type SlidePaintOutput = {
1778
+ readonly svg: string;
1779
+ readonly placeholders?: readonly PaintPlaceholderRecord[];
1780
+ };
1781
+ /** Internal capability protocol result returned by `BoundSlideCapability.resolveSlide()`. */
1782
+ type SlideResolution = {
1783
+ readonly observation?: unknown;
1784
+ readonly comments?: readonly ResolvedComment[];
1785
+ readonly footer?: ResolvedFooter;
1786
+ readonly extensions: readonly Extension[];
1787
+ readonly resourceClaims?: readonly CapabilityResourceClaim[];
1788
+ readonly fontUsages?: readonly CapabilityFontUsageClaim[];
1789
+ emit(context: SlideEmitContext): SlideEmitOutput;
1790
+ paint?(context: SlidePaintContext): SlidePaintOutput;
1791
+ };
1792
+ type BoundSlideCapability = {
1793
+ readonly continuity?: BoundSlideContinuityCollaboration;
1794
+ resolveSlide(context: SlideResolveContext): SlideResolution;
1795
+ };
1796
+ type PptxRelationship = {
1797
+ readonly id: string;
1798
+ readonly type: string;
1799
+ readonly target: string;
1800
+ readonly targetMode?: "External";
1801
+ };
1802
+ type EmittedSlideLayoutSpec = {
1803
+ readonly key: string;
1804
+ readonly name?: string;
1805
+ readonly type?: string;
1806
+ readonly preserve?: boolean;
1807
+ readonly matchingName?: string;
1808
+ readonly userDrawn?: boolean;
1809
+ readonly showMasterShapes?: boolean;
1810
+ readonly showMasterPlaceholderAnimations?: boolean;
1811
+ readonly placeholders?: Readonly<Record<string, LayoutPlaceholderSpec>>;
1812
+ readonly placeholderSpPrByKey?: Readonly<Record<string, string>>;
1813
+ readonly colorMapOverride?: ColorMapOverride;
1814
+ readonly themeOverride?: ThemeOverride;
1815
+ readonly headerFooter?: HeaderFooter;
1816
+ readonly backgroundXml?: string;
1817
+ readonly shapeXml?: string;
1818
+ readonly extraRelationships?: readonly PptxRelationship[];
1819
+ readonly transitionXml?: string;
1820
+ readonly timingXml?: string;
1821
+ };
1822
+ type EmittedSlideMasterSpec = {
1823
+ readonly key: string;
1824
+ readonly name?: string;
1825
+ readonly preserve?: boolean;
1826
+ readonly theme?: Theme;
1827
+ readonly themeContext?: ThemeContext;
1828
+ readonly colorMap?: ColorMap;
1829
+ readonly headerFooter?: HeaderFooter;
1830
+ readonly backgroundXml?: string;
1831
+ readonly shapeXml?: string;
1832
+ readonly extraRelationships?: readonly PptxRelationship[];
1833
+ readonly placeholders?: Readonly<Record<string, MasterPlaceholderSpec>>;
1834
+ readonly placeholderSpPrByKey?: Readonly<Record<string, string>>;
1835
+ readonly textStyles?: MasterTextStyles;
1836
+ readonly transitionXml?: string;
1837
+ readonly timingXml?: string;
1838
+ readonly layouts: readonly EmittedSlideLayoutSpec[];
1839
+ };
1840
+ type MastersEmitDriver = {
1841
+ emitMaster(spec: EmittedSlideMasterSpec, layoutIds: readonly {
1842
+ readonly id: number;
1843
+ readonly rId: string;
1844
+ }[], themeContext: ThemeContext): string;
1845
+ emitLayout(spec: EmittedSlideLayoutSpec, themeContext: ThemeContext): string;
1846
+ emitTheme(theme: Theme): string;
1847
+ emitColorMap(model: {
1848
+ readonly colorMap?: ColorMap;
1849
+ readonly colorMapOverride?: ColorMapOverride;
1850
+ }): string;
1851
+ emitThemeOverride(override: ThemeOverride, baseTheme?: Theme): string;
1852
+ emitSharedCanvas(fragments: readonly string[]): string;
1853
+ };
1854
+ /** Slide capability module that binds per-build slide declaration state into a closed handle. */
1855
+ type SlideCapabilityModule<Bound extends BoundSlideCapability = BoundSlideCapability, Mechanisms extends readonly NativeMechanismDefinition[] = readonly NativeMechanismDefinition[]> = {
1856
+ /** Container properties owned by this capability, including supported nested style paths. */
1857
+ readonly containerSlots?: ContainerSlots;
1858
+ /** Written to the slide following PresentationML fixed child element order. */
1859
+ readonly slot: SlideCapabilitySlot;
1860
+ /** Runs once regardless of whether Slide provides the corresponding property. */
1861
+ readonly always?: boolean;
1862
+ /** Stable capability key in reports. */
1863
+ readonly declaration: string;
1864
+ /** Handlers wired by this capability for internal transparent declaration hosts. */
1865
+ readonly transparentDeclarations?: readonly TransparentCapabilityModule[];
1866
+ readonly mechanisms?: Mechanisms;
1867
+ readonly codegen?: unknown;
1868
+ readonly mastersCanvas?: {
1869
+ paintBackdrop(input: {
1870
+ readonly theme: ThemeContext;
1871
+ readonly hasCustomColorMap?: boolean;
1872
+ readonly colorMapOverride?: ColorMapOverride;
1873
+ readonly themeOverride?: ThemeOverride;
1874
+ }): PaintOutput;
1875
+ paintMasterLayers(fragments: readonly string[]): PaintOutput;
1876
+ paintLayoutLayers(fragments: readonly string[]): PaintOutput;
1877
+ paintSharedObject(svg: string): PaintOutput;
1878
+ };
1879
+ readonly mastersEmitDriver?: MastersEmitDriver;
1880
+ /** Binds owned Deck properties before the per-slide emitters run. */
1881
+ bindDeck?(props: Readonly<Record<string, unknown>>, context: {
1882
+ readonly theme: ThemeContext;
1883
+ readonly options: ResolveOptions;
1884
+ }): DeckCapabilityBinding;
1885
+ bindSections?(sections: readonly {
1886
+ readonly name: string;
1887
+ readonly slideIndexes: readonly number[];
1888
+ }[]): {
1889
+ readonly extensions: readonly Extension[];
1890
+ emit(): SlideEmitOutput;
1891
+ };
1892
+ bindSlide(input: CapabilityInput, context: SlideCapabilityParseContext): Bound | ResolveWork<Bound>;
1893
+ };
1894
+ type CapabilityModule = ObjectCapabilityModule | SlideCapabilityModule;
1895
+ /** Modules registered inside a resolver; transparent declarations can only be owned by slide capability modules. */
1896
+ type RegisteredCapabilityModule = CapabilityModule | TransparentCapabilityModule;
1897
+ /** OOXML `<p:hf>` header/footer visibility flags on SlideMaster and SlideLayout (ECMA-376 §19.3.1.24). */
1898
+ type HeaderFooter = {
1899
+ readonly dateTime?: boolean | undefined;
1900
+ readonly footer?: boolean | undefined;
1901
+ readonly header?: boolean | undefined;
1902
+ readonly slideNumber?: boolean | undefined;
1903
+ };
1904
+ /** OOXML `<p:hf>` header/footer visibility flags on SlideMaster and SlideLayout (ECMA-376 §19.3.1.24). */
1905
+ declare const headerFooterSchema: z.ZodType<HeaderFooter>;
1906
+ /** Geometry, placeholder metadata, and default text/style for a `dt`, `ftr`, or `sldNum` slot. */
1907
+ type FooterPlaceholderSpec = {
1908
+ readonly idx?: number | undefined;
1909
+ readonly size?: PlaceholderSize | undefined;
1910
+ readonly text?: string | undefined;
1911
+ readonly style?: FooterPlaceholderStyle | undefined;
1912
+ readonly visible?: boolean | undefined;
1913
+ };
1914
+ /** Geometry, placeholder metadata, and default text/style for a `dt`, `ftr`, or `sldNum` slot. */
1915
+ declare const footerPlaceholderSpecSchema: z.ZodType<FooterPlaceholderSpec>;
1916
+ /** Date placeholder defaults on a master or layout. */
1917
+ type DateTimeFooterPlaceholderSpec = Omit<FooterPlaceholderSpec, "text"> & DateTimeContent;
1918
+ declare const dateTimeFooterPlaceholderSpecSchema: z.ZodType<DateTimeFooterPlaceholderSpec>;
1919
+ /** Collection of date, footer, and slide-number metadata placeholder definitions on a master or layout. */
1920
+ type FooterPlaceholders = {
1921
+ readonly dateTime?: DateTimeFooterPlaceholderSpec | undefined;
1922
+ readonly footer?: FooterPlaceholderSpec | undefined;
1923
+ readonly slideNumber?: FooterPlaceholderSpec | undefined;
1924
+ };
1925
+ /** Collection of date, footer, and slide-number metadata placeholder definitions on a master or layout. */
1926
+ declare const footerPlaceholdersSchema: z.ZodType<FooterPlaceholders>;
1927
+ /** Official OOXML ST_SlideLayoutType enumeration values (ECMA-376 §19.7.15). */
1928
+ declare const slideLayoutTypeValues: readonly ["title", "tx", "twoColTx", "tbl", "txAndChart", "chartAndTx", "dgm", "chart", "txAndClipArt", "clipArtAndTx", "titleOnly", "blank", "txAndObj", "objAndTx", "objOnly", "obj", "txAndMedia", "mediaAndTx", "objOverTx", "txOverObj", "txAndTwoObj", "twoObjAndTx", "twoObjOverTx", "fourObj", "vertTx", "clipArtAndVertTx", "vertTitleAndTx", "vertTitleAndTxOverChart", "twoObj", "objAndTwoObj", "twoObjAndObj", "cust", "secHead", "twoTxTwoObj", "objTx", "picTx"];
1929
+ type SlideLayoutType = (typeof slideLayoutTypeValues)[number];
1930
+ declare const slideLayoutTypeSchema: z.ZodType<SlideLayoutType>;
1931
+ type SlideMasterCoreDataProps = {
1932
+ readonly id?: string | undefined;
1933
+ readonly name?: string | undefined;
1934
+ readonly preserve?: boolean | undefined;
1935
+ readonly placeholders?: MasterPlaceholderMap | undefined;
1936
+ readonly textStyles?: MasterTextStyles | undefined;
1937
+ readonly colorMap?: ColorMap | undefined;
1938
+ readonly style?: SlideCoreStyle | undefined;
1939
+ };
1940
+ type SlideMasterCoreProps = SlideMasterCoreDataProps & {
1941
+ readonly theme?: ThemeInput | Theme | undefined;
1942
+ };
1943
+ type SlideLayoutCoreDataProps<P extends PlaceholderMap = EmptyPlaceholderMap> = {
1944
+ readonly id?: string | undefined;
1945
+ readonly name?: string | undefined;
1946
+ readonly type?: SlideLayoutType | undefined;
1947
+ readonly preserve?: boolean | undefined;
1948
+ readonly matchingName?: string | undefined;
1949
+ readonly userDrawn?: boolean | undefined;
1950
+ readonly showMasterShapes?: boolean | undefined;
1951
+ readonly showMasterPlaceholderAnimations?: boolean | undefined;
1952
+ readonly placeholders?: P | undefined;
1953
+ readonly colorMapOverride?: ColorMapOverride | undefined;
1954
+ readonly themeOverride?: ThemeOverride | undefined;
1955
+ readonly style?: SlideCoreStyle | undefined;
1956
+ };
1957
+ type ResolvedPlaceholder = {
1958
+ readonly key: string;
1959
+ readonly type: ContentPlaceholderRole;
1960
+ readonly idx?: number | undefined;
1961
+ readonly size?: PlaceholderSize | undefined;
1962
+ readonly box?: Rect | undefined;
1963
+ readonly style?: Readonly<Record<string, unknown>> | undefined;
1964
+ };
1965
+ declare const resolvedPlaceholderSchema: z.ZodType<ResolvedPlaceholder>;
1966
+ type ResolvedSlideLayout = {
1967
+ readonly id: string;
1968
+ readonly name?: string | undefined;
1969
+ readonly type?: SlideLayoutType | undefined;
1970
+ readonly preserve?: boolean | undefined;
1971
+ readonly matchingName?: string | undefined;
1972
+ readonly userDrawn?: boolean | undefined;
1973
+ readonly showMasterShapes?: boolean | undefined;
1974
+ readonly showMasterPlaceholderAnimations?: boolean | undefined;
1975
+ readonly colorMapOverride?: ColorMapOverride | undefined;
1976
+ readonly themeOverride?: ThemeOverride | undefined;
1977
+ readonly style?: SlideStyle | undefined;
1978
+ readonly background?: SlideBackground | undefined;
1979
+ readonly headerFooter?: HeaderFooter | undefined;
1980
+ readonly objects: readonly ResolvedObject[];
1981
+ readonly placeholders: readonly ResolvedPlaceholder[];
1982
+ readonly capabilities?: Readonly<Record<string, unknown>> | undefined;
1983
+ };
1984
+ declare const resolvedSlideLayoutSchema: z.ZodType<ResolvedSlideLayout>;
1985
+ type ResolvedMaster = {
1986
+ readonly id: string;
1987
+ readonly name?: string | undefined;
1988
+ readonly preserve?: boolean | undefined;
1989
+ readonly colorMap?: ColorMap | undefined;
1990
+ readonly headerFooter?: HeaderFooter | undefined;
1991
+ readonly objects: readonly ResolvedObject[];
1992
+ readonly placeholders: readonly ResolvedPlaceholder[];
1993
+ readonly capabilities?: Readonly<Record<string, unknown>> | undefined;
1994
+ readonly layouts: readonly ResolvedSlideLayout[];
1995
+ };
1996
+ declare const resolvedMasterSchema: z.ZodType<ResolvedMaster>;
1997
+ /** Stateless, schema-validated slide layout specification shareable across authoring entries. */
1998
+ type SlideLayoutDefinition<P extends PlaceholderMap = PlaceholderMap, Props extends SlideLayoutCoreDataProps<P> = SlideLayoutCoreDataProps<P>> = Props & {
1999
+ readonly [slideLayoutDefinitionSymbol]: true;
2000
+ readonly props: Props;
2001
+ };
2002
+ type SlideLayoutCoreProps<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutCoreDataProps<P> & {
2003
+ readonly layout?: SlideLayoutDefinition<P> | undefined;
2004
+ };
2005
+ /**
2006
+ * Operation keys shared by the editable document and the React host adapter.
2007
+ *
2008
+ * The adapter must insert, reorder, and replace complete JSX declarations without exposing those
2009
+ * reconciliation operations as author API. These symbols are internal to the core package and are
2010
+ * not re-exported by the public document entry.
2011
+ */
2012
+ declare const replaceDeclarationProps: unique symbol;
2013
+ declare const insertDeclarationChild: unique symbol;
2014
+ declare const removeDeclarationChild: unique symbol;
2015
+ type DocumentProps = Readonly<Record<string, unknown>>;
2016
+ type DocumentStyle = Readonly<Record<string, unknown>>;
2017
+ type DocumentUpdate<Props extends object> = { [Key in keyof Omit<Props, "children" | "style">]?: Omit<Props, "children" | "style">[Key] | undefined; };
2018
+ type StyleUpdate<Style extends object> = { [Key in keyof Style]?: Style[Key] | undefined; };
2019
+ type RichTextItem = string | CommonNode;
2020
+ /**
2021
+ * Common editable document node shared by command authoring and the React handoff.
2022
+ *
2023
+ * The node exposes a read-only declaration view to the formal build. Author mutations go through
2024
+ * `set`, `style`, and structure operations so parent ownership, value isolation, and update timing
2025
+ * stay in one place. Declaration getters return fresh isolated values; live nodes keep identity.
2026
+ */
2027
+ declare class CommonNode<Kind extends string = string, Props extends object = DocumentProps, Style extends object = DocumentStyle> implements DeclarationNode {
2028
+ #private;
2029
+ readonly type: string;
2030
+ readonly kind: Kind;
2031
+ /** Page-affiliated declarations must be direct children of a slide. */
2032
+ readonly pageAffiliated: boolean;
2033
+ constructor(kind: Kind, type: string, props?: Props, options?: {
2034
+ readonly pageAffiliated?: boolean;
2035
+ });
2036
+ /** Isolated declaration values for external inspection; mutating the returned value cannot edit the node. */
2037
+ get props(): Readonly<Record<string, unknown>>;
2038
+ /** Author id declared on this node, ignoring non-string values rejected by the formal build. */
2039
+ get id(): string | undefined;
2040
+ /** Current parent container, or undefined while detached. */
2041
+ get parent(): CommonNode | undefined;
2042
+ /** Scoped author query rooted at this node; it searches children and stops at the next named scope. */
2043
+ get query(): AuthorQuery<this>;
2044
+ /** Read-only child declaration view; node entries keep their editable identity. */
2045
+ get children(): readonly DeclarationChild[];
2046
+ /**
2047
+ * Adapter-only complete declaration replacement for one React commit.
2048
+ *
2049
+ * React commits all current JSX props, so absent fields must disappear instead of surviving from a
2050
+ * previous commit as they would under the author-facing single-level update. Values still pass
2051
+ * through the same field-level input snapshot as construction.
2052
+ */
2053
+ [replaceDeclarationProps](props: Readonly<Record<string, unknown>>): void;
2054
+ /**
2055
+ * Adapter-only insertion or same-document reordering during React reconciliation.
2056
+ *
2057
+ * React may reposition an attached host instance with `insertBefore`; author `append` remains
2058
+ * strict and the adapter reaches this operation explicitly. Text entries are accepted so rich-text
2059
+ * containers can be reconciled in place without rebuilding their content.
2060
+ */
2061
+ [insertDeclarationChild](child: DeclarationChild, before?: DeclarationChild): void;
2062
+ /** Adapter-only removal during React reconciliation; author removal remains `remove()`. */
2063
+ [removeDeclarationChild](child: DeclarationChild): void;
2064
+ /** Applies an ordinary property update; `style` and `children` use their dedicated operations. */
2065
+ set(patch: DocumentUpdate<Props>): this;
2066
+ /** Applies a single-level local style update; nested values replace and undefined removes a local declaration. */
2067
+ style(patch: StyleUpdate<Style>): this;
2068
+ /** Detaches this node while retaining its document ownership, mirroring explicit removal semantics. */
2069
+ remove(): this;
2070
+ /** Moves a node in the same document or attaches a detached node, preserving identity. */
2071
+ moveTo(parent: CommonNode, before?: CommonNode): this;
2072
+ protected assertCanInsert(child: CommonNode, allowAttached?: boolean): void;
2073
+ protected insertNode(child: CommonNode, before?: CommonNode): void;
2074
+ protected insertRichTextItems(items: readonly RichTextItem[], replace: boolean): void;
2075
+ }
2076
+ /** Editable structural container: deck, slide, section, box, and annotation-only containers. */
2077
+ declare class CommonContainer<Kind extends string = string, Props extends object = DocumentProps, Style extends object = DocumentStyle> extends CommonNode<Kind, Props, Style> {
2078
+ append(...children: readonly CommonNode[]): this;
2079
+ }
2080
+ /** Rich-text container whose children may also be literal text. */
2081
+ declare class RichTextContainer<Kind extends string = string, Props extends object = DocumentProps, Style extends object = DocumentStyle> extends CommonContainer<Kind, Props, Style> {
2082
+ append(...items: readonly RichTextItem[]): this;
2083
+ /** Replaces all rich-text content atomically after validating every new item. */
2084
+ content(...items: readonly RichTextItem[]): this;
2085
+ }
2086
+ /** Public type-narrowing predicate used by scoped author queries. */
2087
+ type AuthorNodeGuard<Node extends CommonNode> = (node: CommonNode) => node is Node;
2088
+ /** Explicit failures raised by scoped author queries instead of returning unchecked nodes. */
2089
+ declare class AuthorQueryError extends Error {
2090
+ readonly code: "invalid-id" | "missing-id" | "ambiguous-id" | "type-mismatch";
2091
+ constructor(code: AuthorQueryError["code"], message: string);
2092
+ }
2093
+ /**
2094
+ * Author-facing locator over the live editable document.
2095
+ *
2096
+ * A query is scoped to one node. Lookups traverse anonymous layout nodes but stop at the next node
2097
+ * declaring an author id, so callers descend explicitly through named scopes. Pages always declare
2098
+ * their author id and act as the root author scope. Returned `.node` values are the same editable
2099
+ * instances the document holds; they are never build observations.
2100
+ */
2101
+ declare class AuthorQuery<Node extends CommonNode = CommonNode> {
2102
+ #private;
2103
+ constructor(node: Node);
2104
+ /** Editable node at this query scope. */
2105
+ get node(): Node;
2106
+ /** Readable path derived from the current parent chain and declared author ids. */
2107
+ get path(): string;
2108
+ /** Returns the single editable node named `id` directly in this scope. */
2109
+ getNode(id: string): CommonNode;
2110
+ /** Returns a scoped query handle for the single node named `id`, enabling stepwise lookups. */
2111
+ get(id: string): AuthorQuery;
2112
+ /** Lists every node named `id` in this scope; duplicates remain visible to callers before build validation. */
2113
+ getAll(id: string): readonly AuthorQuery[];
2114
+ /**
2115
+ * Returns the node named `id` after checking the caller's type predicate.
2116
+ *
2117
+ * Missing, ambiguous, and type-mismatched results throw `AuthorQueryError` with distinct codes so
2118
+ * callers never need an unchecked assertion to reach an editable capability node.
2119
+ */
2120
+ getAs<Selected extends CommonNode>(id: string, guard: AuthorNodeGuard<Selected>): Selected;
2121
+ }
2122
+ /** Editable SlideLayout node owned by a SlideMaster. */
2123
+ declare class SlideLayoutContainer<P extends PlaceholderMap = PlaceholderMap, Props extends object = SlideLayoutCoreProps<P>> extends CommonContainer<"slide-layout", Props, SlideStyle> {
2124
+ readonly "~placeholderMap"?: P;
2125
+ }
2126
+ /** Editable Slide node exposing named placeholder lookup alongside slide styling. */
2127
+ declare class SlideContainer<Props extends object = SlideCoreProps, Style extends object = SlideCoreStyle> extends CommonContainer<"slide", Props, Style> {
2128
+ /** Finds a bound placeholder node on this slide by its layout placeholder key. */
2129
+ placeholder(key: string): CommonNode | undefined;
2130
+ }
2131
+ /** Editable SlideMaster node owning its SlideLayouts in declaration order. */
2132
+ declare class SlideMasterContainer<Props extends object = SlideMasterCoreProps, Layout extends CommonNode = SlideLayoutContainer> extends CommonContainer<"slide-master", Props, SlideStyle> {
2133
+ /** Native theme bound to this master (shared by object identity across masters when reused). */
2134
+ get theme(): Theme | ThemeInput | undefined;
2135
+ /** Direct SlideLayout children owned by this master in `<p:sldLayoutIdLst>` order. */
2136
+ get layouts(): readonly Layout[];
2137
+ }
2138
+ /** Editable Deck root node exposing its explicit SlideMasters. */
2139
+ declare class DeckContainer<Props extends object = DeckCoreProps, Master extends CommonNode = SlideMasterContainer> extends CommonContainer<"deck", Props, TextStyle> {
2140
+ /** Direct SlideMaster children owned by this deck in `<p:sldMasterIdLst>` order. */
2141
+ get masters(): readonly Master[];
2142
+ }
2143
+ /** DrawingML `<p:bgRef idx="1001..1003">` reference resolved against `Theme.formatScheme.bgFillStyles`. */
2144
+ type BackgroundRef = {
2145
+ readonly ref: 1001 | 1002 | 1003;
2146
+ readonly color?: ColorValue | undefined;
2147
+ };
2148
+ /** DrawingML `<p:bgRef idx="1001..1003">` reference resolved against `Theme.formatScheme.bgFillStyles`. */
2149
+ declare const backgroundRefSchema: z.ZodType<BackgroundRef>;
2150
+ /** Slide background can use theme colors, gradients supported by the shared visual writer, formal image resource inputs, `"none"`, or theme background fill references (`p:bgRef`). */
2151
+ type SlideBackground = BackgroundValue | BackgroundRef;
2152
+ /** Slide background can use theme colors, gradients supported by the shared visual writer, formal image resource inputs, `"none"`, or theme background fill references (`p:bgRef`). */
2153
+ declare const slideBackgroundSchema: z.ZodType<SlideBackground>;
2154
+ /** Core deck properties defining slide canvas dimensions in pixels (`1280 × 720` default), theme, default text style, and presentation title. */
2155
+ type DeckCoreProps = {
2156
+ /** Slide canvas width in CSS pixels (`px`); defaults to `1280` (16:9 widescreen) when omitted. */
2157
+ readonly width?: number | undefined;
2158
+ /** Slide canvas height in CSS pixels (`px`); defaults to `720` (16:9 widescreen) when omitted. */
2159
+ readonly height?: number | undefined;
2160
+ /** Deck-level theme definition or inline theme input inherited by slides unless overridden. */
2161
+ readonly theme?: ThemeInput | Theme | undefined;
2162
+ /** Inherited root text style applied across slides unless overridden. */
2163
+ readonly style?: TextStyle | undefined;
2164
+ /** Presentation metadata title written to core document properties. */
2165
+ readonly title?: string | undefined;
2166
+ };
2167
+ type SlideCoreStyle = TextStyle & Omit<LayoutStyle, "zIndex">;
2168
+ /** Footer placeholder slot style combining inherited text styles and LayoutStyle placement. */
2169
+ type FooterPlaceholderStyle = TextStyle & LayoutStyle;
2170
+ /** Per-slide footer override declaration (`false` hides; string sets text; object overrides text/style/slot). */
2171
+ type SlideFooterValue = boolean | string | {
2172
+ readonly text?: string | undefined;
2173
+ readonly style?: FooterPlaceholderStyle | undefined;
2174
+ readonly idx?: number | undefined;
2175
+ readonly size?: PlaceholderSize | undefined;
2176
+ readonly visible?: boolean | undefined;
2177
+ };
2178
+ /** Per-slide footer override declaration (`false` hides; string sets text; object overrides text/style/slot). */
2179
+ declare const slideFooterValueSchema: z.ZodType<SlideFooterValue>;
2180
+ /** Per-slide date override, with inherited content when only style or slot metadata is specified. */
2181
+ type SlideDateTimeValue = boolean | string | (Omit<Exclude<SlideFooterValue, boolean | string>, "text"> & DateTimeContent);
2182
+ declare const slideDateTimeValueSchema: z.ZodType<SlideDateTimeValue>;
2183
+ /** Per-slide slide-number override declaration (`false` hides; `true` enables; object overrides style/slot). */
2184
+ type SlideNumberValue = boolean | {
2185
+ readonly style?: FooterPlaceholderStyle | undefined;
2186
+ readonly idx?: number | undefined;
2187
+ readonly size?: PlaceholderSize | undefined;
2188
+ readonly visible?: boolean | undefined;
2189
+ };
2190
+ /** Per-slide slide-number override declaration (`false` hides; `true` enables; object overrides style/slot). */
2191
+ declare const slideNumberValueSchema: z.ZodType<SlideNumberValue>;
2192
+ type SlideCoreDataProps = {
2193
+ /** Page author id; unique within the deck and written as the stable slide identifier. */
2194
+ readonly id: AuthorId;
2195
+ /** Optional PowerPoint display name written to `<p:cSld name="...">` without altering the stable `id`. */
2196
+ readonly name?: string | undefined;
2197
+ readonly colorMapOverride?: ColorMapOverride | undefined;
2198
+ readonly themeOverride?: ThemeOverride | undefined;
2199
+ readonly style?: SlideCoreStyle | undefined;
2200
+ readonly hidden?: boolean | undefined;
2201
+ readonly showMasterPlaceholderAnimations?: boolean | undefined;
2202
+ readonly showMasterShapes?: boolean | undefined;
2203
+ };
2204
+ /**
2205
+ * Organizes contiguous child slides into a named native PowerPoint section.
2206
+ *
2207
+ * Emitted via the Office 2010 `p14:sectionLst` presentation extension
2208
+ * (subject to target extension policy under Strict OOXML).
2209
+ */
2210
+ type SectionProps = {
2211
+ /** Non-empty section title shown in PowerPoint's slide sorter and outline. */
2212
+ readonly name: string;
2213
+ };
2214
+ /** Organizes slides into collapsible flat sections in PowerPoint. */
2215
+ declare const sectionPropsSchema: z.ZodType<SectionProps>;
2216
+ /** Target declaration interpreted by PowerPoint upon clicking an object; internal targets are resolved by page author id. */
2217
+ type LinkTarget = {
2218
+ readonly id: string;
2219
+ } | {
2220
+ readonly url: string;
2221
+ } | {
2222
+ readonly action: "home";
2223
+ };
2224
+ /** Target declaration interpreted by PowerPoint upon clicking an object; internal targets are resolved by page author id. */
2225
+ declare const linkTargetSchema: z.ZodType<LinkTarget>;
2226
+ type SlideCoreProps = SlideCoreDataProps & {
2227
+ readonly layout?: SlideLayoutSource | undefined;
2228
+ readonly placeholders?: Readonly<Record<string, unknown>> | undefined;
2229
+ };
2230
+ type SlideLayoutSource = SlideLayoutDefinition | SlideLayoutContainer;
2231
+ type SlideStyle = SlideCoreStyle & {
2232
+ readonly background?: SlideBackground | undefined;
2233
+ };
2234
+ declare class BuildQueryError extends Error {
2235
+ readonly code: "missing-slide" | "missing-match" | "ambiguous-match" | "invalid-query" | "invalid-reference" | "foreign-reference" | "unbound-observation";
2236
+ constructor(code: BuildQueryError["code"], message: string);
2237
+ }
2238
+ export { slideLayoutTypeSchema as $, TextStyle as $n, TargetName as $r, MasterTextStyles as $t, SlideContainer as A, ColorMapOverride as An, nativeColorSlots as Ar, ResolvedResource as At, ResolvedSlideLayout as B, HexColor as Bn, BuildError as Br, UnmeasuredFontIssue as Bt, CommonNode as C, resourceSourceSchema as Ci, PresetGeometryName as Cn, imageBackgroundSchema as Cr, ResolvedAudio as Ct, DocumentUpdate as D, BorderValue as Dn, isTheme as Dr, ResolvedImage as Dt, DocumentStyle as E, BorderStyle as En, isSchemeColorSlot as Er, ResolvedFooterSlot as Et, FooterPlaceholderSpec as F, FontOptions as Fn, themeFontSlotSchema as Fr, ResolvedVideo as Ft, SlideMasterCoreProps as G, LinearGradient as Gn, EmitOptions as Gr, isMorphKey as Gt, SlideLayoutDefinition as H, ImageBackgroundFit as Hn, BuildDiagnostic as Hr, MorphKey as Ht, FooterPlaceholders as I, FontReference as In, themeFontSlots as Ir, ScreenPoint as It, footerPlaceholdersSchema as J, SchemeColorName as Jn, PreviewError as Jr, ContentPlaceholderRole as Jt, dateTimeFooterPlaceholderSpecSchema as K, NativeColorSlot as Kn, Extension as Kr, SealedCanvasMechanism as Kt, HeaderFooter as L, FontSize as Ln, themeInputSchema as Lr, SlideCapabilityModule as Lt, SlideMasterContainer as M, Font as Mn, schemeColorSlots as Mr, ResolvedTable as Mt, StyleUpdate as N, FontFace as Nn, textStyleSchema as Nr, ResolvedTableCell as Nt, RichTextContainer as O, BoxShadowValue as On, isThemeFontSlot as Or, ResolvedLayout as Ot, DateTimeFooterPlaceholderSpec as P, FontFaceStyle as Pn, themeDataSchema as Pr, ResolvedTableRow as Pt, resolvedSlideLayoutSchema as Q, TextFillValue as Qn, Target as Qr, MasterPlaceholderSpec as Qt, ResolvedMaster as R, FormatScheme as Rn, themeOverrideSchema as Rr, SlideLocator as Rt, CommonContainer as S, externalResourceSourceSchema as Si, PresetGeometry as Sn, imageBackgroundPositionSchema as Sr, ResolutionReport as St, DocumentProps as T, BorderObject as Tn, isSchemeColorName as Tr, ResolvedFooter as Tt, SlideLayoutType as U, ImageBackgroundPosition as Un, BuildDiagnosticFontUnavailableReason as Ur, MorphScope as Ut, SlideLayoutCoreDataProps as V, ImageBackground as Vn, CapabilityError as Vr, ResolveWork as Vt, SlideMasterCoreDataProps as W, LineHeight as Wn, BuildOptions as Wr, createMorphScope as Wt, resolvedMasterSchema as X, Shadow as Xn, PreviewPlaceholder as Xr, LayoutPlaceholderSpec as Xt, headerFooterSchema as Y, SchemeColorSlot as Yn, PreviewPageRangeError as Yr, EmptyPlaceholderMap as Yt, resolvedPlaceholderSchema as Z, TextAlignment as Zn, ResolveOptions as Zr, MasterPlaceholderMap as Zt, slideFooterValueSchema as _, DeclarationContainer as _i, paddingStyleSchema as _n, defaultTheme as _r, PreviewTransform as _t, SectionProps as a, fontEmbeddingModeSchema as ai, PlaceholderStyle as an, ThemeOverride as ar, CapabilityInput as at, AuthorQuery as b, ExternalResourceSource as bi, GeometryPath as bn, imageBackgroundFitSchema as br, Resolution as bt, SlideDateTimeValue as c, previewErrorSchema as ci, placeholderSizeSchema as cn, backgroundValueSchema as cr, EmitResult as ct, SlideStyle as d, targetNameSchema as di, LayoutStyle as dn, borderValueSchema as dr, LayoutChildReference as dt, buildDiagnosticFontUnavailableReasonSchema as ei, PlaceholderLevelStyle as en, Theme as er, slideLayoutTypeValues as et, backgroundRefSchema as f, targetSchema as fi, NonNegativeLayoutSpacing as fn, boxShadowValueSchema as fr, Locator as ft, slideDateTimeValueSchema as g, DeclarationChild as gi, layoutStyleSchema as gn, defaultColorMap as gr, ObjectTransform as gt, slideBackgroundSchema as h, authorIdSchema as hi, layoutSpacingSchema as hn, darker as hr, ObjectCapabilityModule as ht, LinkTarget as i, extensionSchema as ii, PlaceholderSize as in, ThemeInput as ir, BuildResult as it, SlideLayoutContainer as j, ColorValue as jn, schemeColorNames as jr, ResolvedSlide as jt, RichTextItem as k, ColorMap as kn, lighter as kr, ResolvedObject as kt, SlideFooterValue as l, previewPlaceholderSchema as li, LayoutLength as ln, borderObjectSchema as lr, FontStyleDescriptor as lt, sectionPropsSchema as m, AuthorId as mi, layoutLengthSchema as mn, colorMapSchema as mr, MediaTrim as mt, BackgroundRef as n, buildOptionsSchema as ni, PlaceholderMap as nn, ThemeData as nr, BoundSlideCapability as nt, SlideBackground as o, formatBaseline as oi, TextList as on, ThemeShade as or, CapabilityModule as ot, linkTargetSchema as p, targets as pi, PaddingStyle as pn, colorMapOverrideSchema as pr, LocatorResource as pt, footerPlaceholderSpecSchema as q, RadialGradient as qn, FontEmbeddingMode as qr, SealedShowMechanism as qt, DeckCoreProps as r, emitOptionsSchema as ri, PlaceholderOrient as rn, ThemeFontSlot as rr, BuildReport as rt, SlideCoreDataProps as s, formatBaselineSchema as si, TextPlaceholderRole as sn, VisualStyle as sr, CapabilityParseContext as st, BuildQueryError as t, buildDiagnosticSchema as ti, PlaceholderListStyles as tn, ThemeColor as tr, BoundObjectCapability as tt, SlideNumberValue as u, resolveOptionsSchema as ui, LayoutSpacing as un, borderStyleSchema as ur, FontUsage as ut, slideNumberValueSchema as v, DeclarationNode as vi, CustomGeometry as vn, defineTheme as vr, Rect as vt, DeckContainer as w, DateTimeFormat as wi, BackgroundValue as wn, isNativeColorSlot as wr, ResolvedComment as wt, AuthorQueryError as x, ResourceSource as xi, PathCommand as xn, imageBackgroundPositionKeywordSchema as xr, ResolutionDimensionsSummary as xt, AuthorNodeGuard as y, DeclarationText as yi, Geometry as yn, formatSchemeSchema as yr, RegisteredCapabilityModule as yt, ResolvedPlaceholder as z, GradientStop as zn, themeSchema as zr, TextMetrics as zt };