@officedk/pptxdk 0.0.0-stage → 0.2.0

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