@office-open/pptx 0.3.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.
@@ -0,0 +1,1203 @@
1
+ import * as _$_office_open_core0 from "@office-open/core";
2
+ import { AppProperties, BaseXmlComponent, BuilderElement, IContext, IXmlableObject, ImportedXmlComponent, RelationshipType, Relationships, StringContainer, XmlComponent, convertEmuToInches as emusToInches, convertEmuToPixels as emusToPixels, convertEmuToPoints as emusToPoints, convertInchesToEmu as inchesToEmus, convertPixelsToEmu as pixelsToEmus, convertPointsToEmu as pointsToEmus, hashedId, uniqueId, uniqueNumericIdCreator, uniqueUuid } from "@office-open/core";
3
+ import { ChartCollection, ChartType, IChartData } from "@office-open/core/chart";
4
+ import { BevelOptions, BevelPresetType, BlipFillConfigOptions, BlipFillMediaData, ColorTransformOptions, CompoundLine, EffectListOptions, FillOptions, GradientFillOptions as CoreGradientFillOptions, GradientStopOptions, IGradientStop, LineCap, LineJoin, OutlineOptions as CoreOutlineOptions, PathShadeType, PenAlignment, PresetDash, PresetMaterialType, Scene3DOptions, Shape3DOptions, TileFlipMode, buildFill, createBevel, createBottomBevel, createColorElement, createColorTransforms, createEffectList, createGradientFill, createGradientStop, createOutline, createScene3D, createShape3D, extractBlipFillMedia } from "@office-open/core/drawingml";
5
+ import { ITreeNode, SmartArtCollection } from "@office-open/core/smartart";
6
+ import { Readable } from "stream";
7
+ export * from "@office-open/core/values";
8
+
9
+ //#region src/file/background/background.d.ts
10
+ interface IBackgroundOptions {
11
+ readonly fill?: FillOptions;
12
+ }
13
+ declare class Background extends XmlComponent {
14
+ constructor(options?: IBackgroundOptions);
15
+ }
16
+ //#endregion
17
+ //#region src/file/content-types/content-types.d.ts
18
+ declare class ContentTypes extends BaseXmlComponent {
19
+ private readonly dynamicEntries;
20
+ constructor();
21
+ addSlide(index: number): void;
22
+ addNotesSlide(index: number): void;
23
+ addChart(index: number): void;
24
+ addDiagramData(index: number): void;
25
+ addDiagramLayout(index: number): void;
26
+ addDiagramStyle(index: number): void;
27
+ addDiagramColors(index: number): void;
28
+ addDiagramDrawing(index: number): void;
29
+ prepForXml(_context: IContext): IXmlableObject;
30
+ }
31
+ //#endregion
32
+ //#region src/file/core-properties/properties.d.ts
33
+ interface ICorePropertiesOptions {
34
+ readonly title?: string;
35
+ readonly subject?: string;
36
+ readonly creator?: string;
37
+ readonly keywords?: string;
38
+ readonly description?: string;
39
+ readonly lastModifiedBy?: string;
40
+ readonly revision?: number;
41
+ }
42
+ declare class CoreProperties extends BaseXmlComponent {
43
+ private readonly options;
44
+ constructor(options: ICorePropertiesOptions);
45
+ prepForXml(_context: IContext): IXmlableObject;
46
+ }
47
+ //#endregion
48
+ //#region src/file/header-footer/header-footer.d.ts
49
+ interface IHeaderFooterOptions {
50
+ readonly slideNumber?: boolean;
51
+ readonly dateTime?: boolean;
52
+ readonly footer?: string | boolean;
53
+ readonly header?: boolean;
54
+ }
55
+ declare class HeaderFooter extends XmlComponent {
56
+ constructor(options?: IHeaderFooterOptions);
57
+ }
58
+ //#endregion
59
+ //#region src/file/hyperlink-collection.d.ts
60
+ interface IHyperlinkData {
61
+ readonly key: string;
62
+ readonly url: string;
63
+ readonly tooltip?: string;
64
+ }
65
+ declare class HyperlinkCollection {
66
+ private readonly map;
67
+ addHyperlink(key: string, url: string, tooltip?: string): void;
68
+ get Array(): readonly IHyperlinkData[];
69
+ }
70
+ //#endregion
71
+ //#region src/file/media/data.d.ts
72
+ interface IMediaDataTransformation {
73
+ readonly pixels: {
74
+ readonly x: number;
75
+ readonly y: number;
76
+ };
77
+ readonly emus: {
78
+ readonly x: number;
79
+ readonly y: number;
80
+ };
81
+ readonly flip?: {
82
+ readonly vertical?: boolean;
83
+ readonly horizontal?: boolean;
84
+ };
85
+ readonly rotation?: number;
86
+ }
87
+ interface CoreMediaData {
88
+ readonly fileName: string;
89
+ readonly transformation: IMediaDataTransformation;
90
+ readonly data: Uint8Array;
91
+ }
92
+ interface RegularMediaData {
93
+ readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
94
+ }
95
+ interface SvgMediaData {
96
+ readonly type: "svg";
97
+ readonly fallback: RegularMediaData & CoreMediaData;
98
+ }
99
+ interface VideoMediaData {
100
+ readonly type: "mp4" | "mov" | "wmv" | "avi";
101
+ }
102
+ interface AudioMediaData {
103
+ readonly type: "mp3" | "wav" | "wma" | "aac";
104
+ }
105
+ type IMediaData = (RegularMediaData | SvgMediaData | VideoMediaData | AudioMediaData) & CoreMediaData;
106
+ //#endregion
107
+ //#region src/file/media/media.d.ts
108
+ interface IMediaTransformation {
109
+ readonly offset?: {
110
+ readonly top?: number;
111
+ readonly left?: number;
112
+ };
113
+ readonly width: number;
114
+ readonly height: number;
115
+ readonly flip?: {
116
+ readonly vertical?: boolean;
117
+ readonly horizontal?: boolean;
118
+ };
119
+ readonly rotation?: number;
120
+ }
121
+ declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
122
+ declare class Media {
123
+ private readonly map;
124
+ constructor();
125
+ addImage(key: string, mediaData: IMediaData): void;
126
+ addMedia(key: string, mediaData: IMediaData): void;
127
+ get Array(): readonly IMediaData[];
128
+ }
129
+ //#endregion
130
+ //#region src/file/notes/notes-slide.d.ts
131
+ interface INotesSlideOptions {
132
+ readonly text?: string;
133
+ }
134
+ declare class NotesSlide extends XmlComponent {
135
+ constructor(options?: INotesSlideOptions);
136
+ }
137
+ //#endregion
138
+ //#region src/file/presentation-properties.d.ts
139
+ interface IShowOptions$1 {
140
+ readonly loop?: boolean;
141
+ readonly kiosk?: boolean;
142
+ readonly showNarration?: boolean;
143
+ readonly useTimings?: boolean;
144
+ }
145
+ declare class PresentationProperties extends ImportedXmlComponent {
146
+ private static cache;
147
+ constructor(showOptions?: IShowOptions$1);
148
+ prepForXml(): Readonly<Record<string, any>> | undefined;
149
+ private readonly showOptions?;
150
+ }
151
+ //#endregion
152
+ //#region src/file/presentation/presentation.d.ts
153
+ interface IPresentationOptions$1 {
154
+ readonly slideWidth?: number;
155
+ readonly slideHeight?: number;
156
+ readonly slideIds: readonly number[];
157
+ }
158
+ declare class Presentation extends BaseXmlComponent {
159
+ private readonly options;
160
+ constructor(options: IPresentationOptions$1);
161
+ prepForXml(_context: IContext): IXmlableObject | undefined;
162
+ }
163
+ //#endregion
164
+ //#region src/file/presentation/presentation-wrapper.d.ts
165
+ interface IViewWrapper {
166
+ readonly View: BaseXmlComponent;
167
+ readonly Relationships: Relationships;
168
+ }
169
+ declare class PresentationWrapper implements IViewWrapper {
170
+ private readonly presentation;
171
+ private readonly relationships;
172
+ constructor(options: IPresentationOptions$1);
173
+ get View(): Presentation;
174
+ get Relationships(): Relationships;
175
+ }
176
+ //#endregion
177
+ //#region src/file/slide-layout/slide-layout.d.ts
178
+ declare class DefaultSlideLayout extends ImportedXmlComponent {
179
+ private static instance;
180
+ constructor();
181
+ prepForXml(): Readonly<Record<string, any>> | undefined;
182
+ }
183
+ //#endregion
184
+ //#region src/file/slide-master/slide-master.d.ts
185
+ declare class DefaultSlideMaster extends ImportedXmlComponent {
186
+ private static cache;
187
+ private readonly headerFooter?;
188
+ constructor(headerFooter?: IHeaderFooterOptions);
189
+ prepForXml(): Readonly<Record<string, any>> | undefined;
190
+ }
191
+ //#endregion
192
+ //#region src/file/transition/transition.d.ts
193
+ type TransitionType = "fade" | "push" | "wipe" | "split" | "blinds" | "checker" | "comb" | "randomBar" | "cover" | "pull" | "strips" | "wheel" | "zoom" | "circle" | "dissolve" | "diamond" | "newsflash" | "plus" | "wedge" | "random" | "cut";
194
+ interface ITransitionOptions {
195
+ readonly type?: TransitionType;
196
+ readonly speed?: "slow" | "med" | "fast";
197
+ readonly advanceOnClick?: boolean;
198
+ readonly advanceAfterTime?: number;
199
+ readonly dir?: string;
200
+ readonly orient?: "horz" | "vert";
201
+ readonly thruBlk?: boolean;
202
+ readonly spokes?: number;
203
+ }
204
+ declare class Transition extends BaseXmlComponent {
205
+ private readonly options;
206
+ constructor(options?: ITransitionOptions);
207
+ prepForXml(_context: IContext): IXmlableObject;
208
+ }
209
+ //#endregion
210
+ //#region src/file/slide/slide.d.ts
211
+ declare class Slide extends BaseXmlComponent {
212
+ private readonly children;
213
+ private readonly background?;
214
+ private readonly transition?;
215
+ readonly HeaderFooter?: IHeaderFooterOptions;
216
+ constructor(children: readonly BaseXmlComponent[], background?: Background, transition?: ITransitionOptions, headerFooter?: IHeaderFooterOptions);
217
+ prepForXml(context: IContext): IXmlableObject;
218
+ }
219
+ //#endregion
220
+ //#region src/file/table-styles.d.ts
221
+ declare class TableStyles extends ImportedXmlComponent {
222
+ private static instance;
223
+ constructor();
224
+ prepForXml(): Readonly<Record<string, any>> | undefined;
225
+ }
226
+ //#endregion
227
+ //#region src/file/theme/theme.d.ts
228
+ declare class DefaultTheme extends ImportedXmlComponent {
229
+ static instance: ImportedXmlComponent;
230
+ constructor();
231
+ prepForXml(): Readonly<Record<string, any>> | undefined;
232
+ }
233
+ //#endregion
234
+ //#region src/file/view-properties.d.ts
235
+ declare class ViewProperties extends ImportedXmlComponent {
236
+ private static instance;
237
+ constructor();
238
+ prepForXml(): Readonly<Record<string, any>> | undefined;
239
+ }
240
+ //#endregion
241
+ //#region src/file/file.d.ts
242
+ interface ISlideOptions {
243
+ readonly children?: readonly BaseXmlComponent[];
244
+ readonly background?: Background;
245
+ readonly notes?: string;
246
+ readonly transition?: ITransitionOptions;
247
+ readonly headerFooter?: IHeaderFooterOptions;
248
+ }
249
+ interface IShowOptions {
250
+ readonly loop?: boolean;
251
+ readonly kiosk?: boolean;
252
+ readonly showNarration?: boolean;
253
+ readonly useTimings?: boolean;
254
+ }
255
+ interface IPresentationOptions extends ICorePropertiesOptions {
256
+ readonly slideWidth?: number;
257
+ readonly slideHeight?: number;
258
+ readonly slides?: readonly ISlideOptions[];
259
+ readonly show?: IShowOptions;
260
+ }
261
+ declare class File {
262
+ private readonly slideOptions;
263
+ private readonly corePropsOptions;
264
+ private readonly showOptions?;
265
+ private readonly slideWidthEmus?;
266
+ private readonly slideHeightEmus?;
267
+ private coreProperties?;
268
+ private appProperties?;
269
+ private contentTypes?;
270
+ private media?;
271
+ private charts?;
272
+ private smartArts?;
273
+ private hyperlinks?;
274
+ private presentationWrapper?;
275
+ private theme?;
276
+ private tableStyles?;
277
+ private presProps?;
278
+ private viewProps?;
279
+ private slideMaster?;
280
+ private slideLayout?;
281
+ private slideMasterRels?;
282
+ private slideLayoutRels?;
283
+ private notesMasterRels?;
284
+ private slides?;
285
+ private slideWrappers?;
286
+ private notesSlides?;
287
+ private fileRels?;
288
+ constructor(options: IPresentationOptions);
289
+ get CoreProperties(): CoreProperties;
290
+ get AppProperties(): AppProperties;
291
+ get ContentTypes(): ContentTypes;
292
+ get FileRelationships(): Relationships;
293
+ get Media(): Media;
294
+ get Charts(): ChartCollection;
295
+ get SmartArts(): SmartArtCollection;
296
+ get Hyperlinks(): HyperlinkCollection;
297
+ get PresentationWrapper(): PresentationWrapper;
298
+ get Theme(): DefaultTheme;
299
+ get TableStyles(): TableStyles;
300
+ get PresProps(): PresentationProperties;
301
+ get ViewProps(): ViewProperties;
302
+ get SlideMaster(): DefaultSlideMaster;
303
+ get SlideMasterRelationships(): Relationships;
304
+ get SlideLayout(): DefaultSlideLayout;
305
+ get SlideLayoutRelationships(): Relationships;
306
+ get Slides(): readonly Slide[];
307
+ get SlideWrappers(): Array<{
308
+ readonly View: Slide;
309
+ readonly Relationships: Relationships;
310
+ }>;
311
+ get NotesSlides(): readonly NotesSlide[];
312
+ get NotesMasterRelationships(): Relationships;
313
+ }
314
+ //#endregion
315
+ //#region src/file/animation/types.d.ts
316
+ type AnimationType = "appear" | "fade" | "fly" | "wipe" | "dissolve" | "split" | "blinds" | "checker" | "randomBars" | "wheel" | "zoom" | "cover" | "push" | "strips";
317
+ type AnimationTrigger = "onClick" | "withPrevious" | "afterPrevious";
318
+ type AnimationDirection = "left" | "right" | "up" | "down" | "horizontal" | "vertical";
319
+ interface IAnimationOptions {
320
+ readonly type: AnimationType;
321
+ readonly duration?: number;
322
+ readonly delay?: number;
323
+ readonly trigger?: AnimationTrigger;
324
+ readonly direction?: AnimationDirection;
325
+ }
326
+ //#endregion
327
+ //#region src/file/drawingml/effects.d.ts
328
+ declare const ReflectionAlignment: {
329
+ readonly TOP_LEFT: "tl";
330
+ readonly TOP: "t";
331
+ readonly TOP_RIGHT: "tr";
332
+ readonly LEFT: "l";
333
+ readonly CENTER: "ctr";
334
+ readonly RIGHT: "r";
335
+ readonly BOTTOM_LEFT: "bl";
336
+ readonly BOTTOM: "b";
337
+ readonly BOTTOM_RIGHT: "br";
338
+ };
339
+ interface IShadowOptions {
340
+ readonly blur?: number;
341
+ readonly dist?: number;
342
+ readonly direction?: number;
343
+ readonly color?: string;
344
+ readonly alpha?: number;
345
+ readonly rotateWithShape?: boolean;
346
+ }
347
+ interface IGlowOptions {
348
+ readonly radius?: number;
349
+ readonly color?: string;
350
+ readonly alpha?: number;
351
+ }
352
+ interface IReflectionOptions {
353
+ readonly blurRadius?: number;
354
+ readonly dist?: number;
355
+ readonly direction?: number;
356
+ readonly startAlpha?: number;
357
+ readonly startPosition?: number;
358
+ readonly endAlpha?: number;
359
+ readonly endPosition?: number;
360
+ readonly fadeDirection?: number;
361
+ readonly scaleX?: number;
362
+ readonly scaleY?: number;
363
+ readonly skewX?: number;
364
+ readonly skewY?: number;
365
+ readonly alignment?: keyof typeof ReflectionAlignment;
366
+ readonly rotateWithShape?: boolean;
367
+ }
368
+ interface ISoftEdgeOptions {
369
+ readonly radius?: number;
370
+ }
371
+ interface IBevelOptions {
372
+ readonly width?: number;
373
+ readonly height?: number;
374
+ }
375
+ interface IRotation3DOptions {
376
+ readonly x?: number;
377
+ readonly y?: number;
378
+ readonly z?: number;
379
+ readonly perspective?: number;
380
+ }
381
+ interface IEffectsOptions {
382
+ readonly outerShadow?: IShadowOptions;
383
+ readonly innerShadow?: IShadowOptions;
384
+ readonly glow?: IGlowOptions;
385
+ readonly reflection?: IReflectionOptions;
386
+ readonly softEdge?: ISoftEdgeOptions;
387
+ readonly rotation3D?: IRotation3DOptions;
388
+ readonly bevelTop?: IBevelOptions;
389
+ readonly bevelBottom?: IBevelOptions;
390
+ readonly extrusionH?: number;
391
+ readonly material?: "plastic" | "metal" | "matte" | "warmMatte" | "softEdge" | "flat" | "powder";
392
+ readonly lighting?: "flat" | "legacyFlat1" | "legacyFlat2" | "legacyFlat3" | "legacyFlat4" | "legacyHarsh1" | "legacyHarsh2" | "legacyHarsh3" | "legacyHarsh4" | "legacyNormal1" | "legacyNormal2" | "legacyNormal3" | "legacyNormal4" | "threePt" | "balanced" | "soft" | "harsh" | "flood" | "contrasting" | "morning" | "sunrise" | "sunset" | "chilly" | "freezing" | "twoPt" | "brightRoom" | "gallery";
393
+ }
394
+ declare class EffectList extends XmlComponent {
395
+ constructor(options: IEffectsOptions);
396
+ }
397
+ //#endregion
398
+ //#region src/file/drawingml/outline.d.ts
399
+ interface OutlineOptions {
400
+ readonly width?: number;
401
+ readonly color?: string;
402
+ readonly dashStyle?: "solid" | "dash" | "dashDot" | "lgDash" | "sysDot" | "sysDash";
403
+ }
404
+ declare const createOutlineCompat: (options?: OutlineOptions, arrowheads?: {
405
+ readonly beginType?: string;
406
+ readonly endType?: string;
407
+ readonly width?: string;
408
+ readonly length?: string;
409
+ }) => _$_office_open_core0.XmlComponent;
410
+ //#endregion
411
+ //#region src/file/drawingml/shape-properties.d.ts
412
+ interface IConnectionSiteOptions {
413
+ readonly x: number;
414
+ readonly y: number;
415
+ readonly angle?: number;
416
+ }
417
+ interface IShapePropertiesOptions {
418
+ readonly x?: number;
419
+ readonly y?: number;
420
+ readonly width?: number;
421
+ readonly height?: number;
422
+ readonly flipH?: boolean;
423
+ readonly rotation?: number;
424
+ readonly geometry?: string;
425
+ readonly fill?: FillOptions;
426
+ readonly outline?: OutlineOptions;
427
+ readonly effects?: IEffectsOptions;
428
+ readonly connectionSites?: readonly IConnectionSiteOptions[];
429
+ }
430
+ declare class ShapeProperties extends BaseXmlComponent {
431
+ private readonly options;
432
+ constructor(options: IShapePropertiesOptions);
433
+ prepForXml(context: IContext<File>): IXmlableObject | undefined;
434
+ }
435
+ //#endregion
436
+ //#region src/file/table/table-cell-properties.d.ts
437
+ interface ICellBorderOptions {
438
+ readonly width?: number;
439
+ readonly color?: string;
440
+ readonly dashStyle?: "solid" | "dash" | "dashDot" | "lgDash" | "sysDot" | "sysDash";
441
+ }
442
+ declare class TableCellProperties extends BaseXmlComponent {
443
+ private readonly options?;
444
+ constructor(options?: {
445
+ readonly fill?: FillOptions;
446
+ readonly borders?: {
447
+ readonly top?: ICellBorderOptions;
448
+ readonly bottom?: ICellBorderOptions;
449
+ readonly left?: ICellBorderOptions;
450
+ readonly right?: ICellBorderOptions;
451
+ };
452
+ readonly verticalAlign?: "t" | "ctr" | "b";
453
+ });
454
+ prepForXml(context: IContext): IXmlableObject;
455
+ }
456
+ //#endregion
457
+ //#region src/file/table/table-cell.d.ts
458
+ declare const VerticalAlignment: {
459
+ readonly TOP: "t";
460
+ readonly CENTER: "ctr";
461
+ readonly BOTTOM: "b";
462
+ };
463
+ interface ITableCellOptions {
464
+ readonly text?: string;
465
+ readonly children?: readonly BaseXmlComponent[];
466
+ readonly fill?: FillOptions;
467
+ readonly borders?: {
468
+ readonly top?: ICellBorderOptions;
469
+ readonly bottom?: ICellBorderOptions;
470
+ readonly left?: ICellBorderOptions;
471
+ readonly right?: ICellBorderOptions;
472
+ };
473
+ readonly columnSpan?: number;
474
+ readonly rowSpan?: number;
475
+ readonly verticalAlign?: keyof typeof VerticalAlignment;
476
+ readonly margins?: {
477
+ readonly top?: number;
478
+ readonly bottom?: number;
479
+ readonly left?: number;
480
+ readonly right?: number;
481
+ };
482
+ }
483
+ declare class TableCell extends BaseXmlComponent {
484
+ private readonly options;
485
+ private readonly paragraphs?;
486
+ constructor(options?: ITableCellOptions);
487
+ prepForXml(context: IContext): IXmlableObject;
488
+ }
489
+ //#endregion
490
+ //#region src/file/shape/paragraph/paragraph-properties.d.ts
491
+ declare const TextAlignment: {
492
+ readonly LEFT: "l";
493
+ readonly CENTER: "ctr";
494
+ readonly RIGHT: "r";
495
+ readonly JUSTIFY: "just";
496
+ };
497
+ type BulletCharOptions = {
498
+ readonly type: "char";
499
+ readonly char?: string;
500
+ readonly color?: string;
501
+ readonly size?: number;
502
+ };
503
+ type BulletAutoNumOptions = {
504
+ readonly type: "autoNum";
505
+ readonly format?: string;
506
+ readonly startAt?: number;
507
+ readonly color?: string;
508
+ readonly size?: number;
509
+ };
510
+ type BulletNoneOption = {
511
+ readonly type: "none";
512
+ };
513
+ type BulletOptions = BulletCharOptions | BulletAutoNumOptions | BulletNoneOption;
514
+ interface IParagraphPropertiesOptions {
515
+ readonly alignment?: keyof typeof TextAlignment;
516
+ readonly indentLevel?: number;
517
+ readonly marginBottom?: number;
518
+ readonly marginTop?: number;
519
+ readonly bullet?: BulletOptions;
520
+ readonly bulletNone?: boolean;
521
+ readonly lineSpacing?: number;
522
+ readonly lineSpacingPoints?: number;
523
+ readonly marginIndent?: number;
524
+ readonly marginRight?: number;
525
+ readonly defTabSize?: number;
526
+ }
527
+ declare class ParagraphProperties extends XmlComponent {
528
+ private readonly options;
529
+ constructor(options?: IParagraphPropertiesOptions);
530
+ prepForXml(_context: IContext): IXmlableObject | undefined;
531
+ }
532
+ //#endregion
533
+ //#region src/file/shape/paragraph/run-properties.d.ts
534
+ declare const UnderlineStyle: {
535
+ readonly SINGLE: "sng";
536
+ readonly DOUBLE: "dbl";
537
+ readonly NONE: "none";
538
+ };
539
+ declare const StrikeStyle: {
540
+ readonly SINGLE: "sngStrike";
541
+ readonly DOUBLE: "dblStrike";
542
+ readonly NONE: "noStrike";
543
+ };
544
+ declare const TextCapitalization: {
545
+ readonly NONE: "none";
546
+ readonly ALL: "all";
547
+ readonly SMALL: "small";
548
+ };
549
+ interface IHyperlinkOptions {
550
+ readonly url: string;
551
+ readonly tooltip?: string;
552
+ }
553
+ interface IRunPropertiesOptions {
554
+ readonly fontSize?: number;
555
+ readonly bold?: boolean;
556
+ readonly italic?: boolean;
557
+ readonly underline?: keyof typeof UnderlineStyle;
558
+ readonly font?: string;
559
+ readonly lang?: string;
560
+ readonly fill?: FillOptions;
561
+ readonly hyperlink?: IHyperlinkOptions;
562
+ readonly strike?: keyof typeof StrikeStyle;
563
+ readonly baseline?: number;
564
+ readonly spacing?: number;
565
+ readonly capitalization?: keyof typeof TextCapitalization;
566
+ readonly shadow?: boolean;
567
+ readonly outline?: boolean;
568
+ readonly rightToLeft?: boolean;
569
+ readonly noProof?: boolean;
570
+ readonly dirty?: boolean;
571
+ }
572
+ declare class RunProperties extends XmlComponent {
573
+ private readonly options;
574
+ static hasProperties(options: IRunPropertiesOptions): boolean;
575
+ constructor(options?: IRunPropertiesOptions);
576
+ prepForXml(context: IContext): IXmlableObject | undefined;
577
+ }
578
+ //#endregion
579
+ //#region src/file/shape/paragraph/run.d.ts
580
+ interface IRunOptions extends IRunPropertiesOptions {
581
+ readonly text?: string;
582
+ }
583
+ declare class Run extends XmlComponent {
584
+ private readonly options;
585
+ constructor(options?: IRunOptions);
586
+ prepForXml(context: IContext): IXmlableObject | undefined;
587
+ }
588
+ //#endregion
589
+ //#region src/file/shape/paragraph/paragraph.d.ts
590
+ interface IParagraphOptions {
591
+ readonly properties?: IParagraphPropertiesOptions;
592
+ readonly children?: readonly (Run | XmlComponent)[];
593
+ }
594
+ declare class Paragraph extends XmlComponent {
595
+ private readonly options;
596
+ constructor(options?: IParagraphOptions);
597
+ prepForXml(context: IContext): IXmlableObject | undefined;
598
+ }
599
+ //#endregion
600
+ //#region src/file/shape/text-body.d.ts
601
+ interface ITextBodyOptions {
602
+ readonly paragraphs?: readonly (Paragraph | string)[];
603
+ readonly vertical?: "vert" | "vert270" | "horz" | "wordArtVert";
604
+ readonly anchor?: keyof typeof VerticalAlignment;
605
+ readonly autoFit?: "normal" | "shape" | "none";
606
+ readonly wrap?: "square" | "none";
607
+ readonly margins?: {
608
+ readonly top?: number;
609
+ readonly bottom?: number;
610
+ readonly left?: number;
611
+ readonly right?: number;
612
+ };
613
+ readonly columns?: number;
614
+ readonly columnSpacing?: number;
615
+ }
616
+ declare class TextBody extends XmlComponent {
617
+ private readonly options;
618
+ constructor(options?: ITextBodyOptions);
619
+ prepForXml(context: IContext): IXmlableObject | undefined;
620
+ }
621
+ //#endregion
622
+ //#region src/file/shape/shape.d.ts
623
+ interface IShapeOptions {
624
+ readonly id?: number;
625
+ readonly name?: string;
626
+ readonly x?: number;
627
+ readonly y?: number;
628
+ readonly width?: number;
629
+ readonly height?: number;
630
+ readonly geometry?: string;
631
+ readonly fill?: IShapePropertiesOptions["fill"];
632
+ readonly outline?: OutlineOptions;
633
+ readonly effects?: IEffectsOptions;
634
+ readonly flipH?: boolean;
635
+ readonly rotation?: number;
636
+ readonly text?: string;
637
+ readonly paragraphs?: ITextBodyOptions["paragraphs"];
638
+ readonly textVertical?: ITextBodyOptions["vertical"];
639
+ readonly textAnchor?: ITextBodyOptions["anchor"];
640
+ readonly textAutoFit?: ITextBodyOptions["autoFit"];
641
+ readonly textWrap?: ITextBodyOptions["wrap"];
642
+ readonly textMargins?: ITextBodyOptions["margins"];
643
+ readonly textColumns?: ITextBodyOptions["columns"];
644
+ readonly textColumnSpacing?: ITextBodyOptions["columnSpacing"];
645
+ readonly animation?: IAnimationOptions;
646
+ readonly placeholder?: "title" | "body" | "subTitle" | "sldNum" | "dt" | "ftr" | "hdr" | "obj";
647
+ readonly placeholderIndex?: number;
648
+ }
649
+ declare class Shape extends XmlComponent {
650
+ private static nextId;
651
+ private readonly shapeId;
652
+ private readonly animationOptions?;
653
+ private readonly options;
654
+ constructor(options?: IShapeOptions);
655
+ get ShapeId(): number;
656
+ get Animation(): IAnimationOptions | undefined;
657
+ prepForXml(context: IContext): IXmlableObject | undefined;
658
+ }
659
+ //#endregion
660
+ //#region src/file/shape/paragraph/text.d.ts
661
+ declare class Text extends StringContainer {
662
+ constructor(value: string);
663
+ }
664
+ //#endregion
665
+ //#region src/file/shape/paragraph/end-paragraph-run.d.ts
666
+ declare class EndParagraphRunProperties extends BuilderElement<{
667
+ readonly lang: string;
668
+ }> {
669
+ private readonly lang;
670
+ constructor(lang?: string);
671
+ prepForXml(_context: IContext): IXmlableObject | undefined;
672
+ }
673
+ //#endregion
674
+ //#region src/file/shape/paragraph/field.d.ts
675
+ declare class Field extends XmlComponent {
676
+ constructor(fieldType: string, displayText: string);
677
+ }
678
+ declare class SlideNumberField extends Field {
679
+ constructor(displayText?: string);
680
+ }
681
+ declare class DateTimeField extends Field {
682
+ constructor(displayText?: string, format?: string);
683
+ }
684
+ //#endregion
685
+ //#region src/file/drawingml/blip-fill.d.ts
686
+ declare class BlipFill extends XmlComponent {
687
+ constructor(fileName: string);
688
+ }
689
+ //#endregion
690
+ //#region src/file/drawingml/transform-2d.d.ts
691
+ interface ITransform2DOptions {
692
+ readonly x?: number;
693
+ readonly y?: number;
694
+ readonly width?: number;
695
+ readonly height?: number;
696
+ readonly flipH?: boolean;
697
+ readonly rotation?: number;
698
+ }
699
+ declare class Transform2D extends XmlComponent {
700
+ constructor(options: ITransform2DOptions, prefix?: "a" | "p");
701
+ }
702
+ //#endregion
703
+ //#region src/file/drawingml/preset-geometry.d.ts
704
+ declare class PresetGeometry extends BuilderElement<{
705
+ readonly prst: string;
706
+ }> {
707
+ constructor(prst: string, avLst?: BuilderElement);
708
+ }
709
+ //#endregion
710
+ //#region src/file/drawingml/non-visual-drawing-props.d.ts
711
+ declare class NonVisualDrawingProperties extends BuilderElement<{
712
+ readonly id: number;
713
+ readonly name: string;
714
+ }> {
715
+ constructor(id: number, name: string);
716
+ }
717
+ //#endregion
718
+ //#region src/file/drawingml/non-visual-shape-props.d.ts
719
+ declare class NonVisualShapeProperties extends XmlComponent {
720
+ constructor();
721
+ }
722
+ //#endregion
723
+ //#region src/file/drawingml/non-visual-picture-props.d.ts
724
+ declare class NonVisualPictureProperties extends XmlComponent {
725
+ constructor();
726
+ }
727
+ //#endregion
728
+ //#region src/file/drawingml/group-transform-2d.d.ts
729
+ interface IGroupTransform2DOptions extends ITransform2DOptions {
730
+ readonly childOffsetX?: number;
731
+ readonly childOffsetY?: number;
732
+ readonly childExtentWidth?: number;
733
+ readonly childExtentHeight?: number;
734
+ }
735
+ declare class GroupTransform2D extends XmlComponent {
736
+ constructor(options: IGroupTransform2DOptions, prefix?: "a" | "p");
737
+ }
738
+ //#endregion
739
+ //#region src/file/drawingml/group-shape-properties.d.ts
740
+ declare class GroupShapeProperties extends XmlComponent {
741
+ constructor(options?: IGroupTransform2DOptions);
742
+ }
743
+ //#endregion
744
+ //#region src/file/shape/group-shape.d.ts
745
+ interface IGroupShapeOptions {
746
+ readonly x?: number;
747
+ readonly y?: number;
748
+ readonly width?: number;
749
+ readonly height?: number;
750
+ readonly rotation?: number;
751
+ readonly flipH?: boolean;
752
+ readonly children: readonly BaseXmlComponent[];
753
+ }
754
+ declare class GroupShape extends BaseXmlComponent {
755
+ private static nextId;
756
+ private readonly id;
757
+ private readonly options;
758
+ constructor(options: IGroupShapeOptions);
759
+ prepForXml(context: IContext): IXmlableObject;
760
+ }
761
+ //#endregion
762
+ //#region src/file/shape/line-shape.d.ts
763
+ declare class LineShape extends XmlComponent {
764
+ private static nextId;
765
+ private readonly shapeId;
766
+ constructor(options?: ILineShapeOptions);
767
+ get ShapeId(): number;
768
+ }
769
+ interface ILineShapeOptions {
770
+ readonly id?: number;
771
+ readonly name?: string;
772
+ readonly x1?: number;
773
+ readonly y1?: number;
774
+ readonly x2?: number;
775
+ readonly y2?: number;
776
+ readonly fill?: FillOptions;
777
+ readonly outline?: OutlineOptions;
778
+ }
779
+ type ArrowheadType = "triangle" | "stealth" | "diamond" | "oval" | "open" | "none";
780
+ declare class ConnectorShape extends XmlComponent {
781
+ private static nextId;
782
+ private readonly shapeId;
783
+ constructor(options?: IConnectorShapeOptions);
784
+ get ShapeId(): number;
785
+ }
786
+ interface IConnectorShapeOptions {
787
+ readonly id?: number;
788
+ readonly name?: string;
789
+ readonly x1?: number;
790
+ readonly y1?: number;
791
+ readonly x2?: number;
792
+ readonly y2?: number;
793
+ readonly fill?: FillOptions;
794
+ readonly outline?: OutlineOptions;
795
+ readonly beginArrowhead?: ArrowheadType;
796
+ readonly endArrowhead?: ArrowheadType;
797
+ readonly arrowheadWidth?: "sm" | "med" | "lg";
798
+ readonly arrowheadLength?: "sm" | "med" | "lg";
799
+ }
800
+ //#endregion
801
+ //#region src/file/media/video-frame.d.ts
802
+ type VideoType = "mp4" | "mov" | "wmv" | "avi";
803
+ type PosterType = "png" | "jpg";
804
+ interface IVideoFrameOptions {
805
+ readonly x?: number;
806
+ readonly y?: number;
807
+ readonly width?: number;
808
+ readonly height?: number;
809
+ readonly data: Uint8Array;
810
+ readonly type: VideoType;
811
+ readonly name?: string;
812
+ readonly poster?: Uint8Array;
813
+ readonly posterType?: PosterType;
814
+ readonly posterFrameTime?: number;
815
+ }
816
+ declare class VideoFrame extends XmlComponent {
817
+ private static nextId;
818
+ private readonly posterData;
819
+ private readonly videoData;
820
+ constructor(options: IVideoFrameOptions);
821
+ prepForXml(context: IContext): Readonly<Record<string, any>> | undefined;
822
+ }
823
+ //#endregion
824
+ //#region src/file/media/audio-frame.d.ts
825
+ type AudioType = "mp3" | "wav" | "wma" | "aac";
826
+ interface IAudioFrameOptions {
827
+ readonly x?: number;
828
+ readonly y?: number;
829
+ readonly width?: number;
830
+ readonly height?: number;
831
+ readonly data: Uint8Array;
832
+ readonly type: AudioType;
833
+ readonly name?: string;
834
+ }
835
+ declare class AudioFrame extends XmlComponent {
836
+ private static nextId;
837
+ private readonly audioData;
838
+ constructor(options: IAudioFrameOptions);
839
+ prepForXml(context: IContext): Readonly<Record<string, any>> | undefined;
840
+ }
841
+ //#endregion
842
+ //#region src/file/shape-tree/shape-tree.d.ts
843
+ declare class ShapeTree extends XmlComponent {
844
+ constructor(children: readonly XmlComponent[]);
845
+ }
846
+ //#endregion
847
+ //#region src/file/notes-master/notes-master.d.ts
848
+ declare class DefaultNotesMaster extends ImportedXmlComponent {
849
+ private static instance;
850
+ constructor();
851
+ prepForXml(): Readonly<Record<string, any>> | undefined;
852
+ }
853
+ //#endregion
854
+ //#region src/file/picture/picture.d.ts
855
+ interface IPictureOptions {
856
+ readonly x?: number;
857
+ readonly y?: number;
858
+ readonly width?: number;
859
+ readonly height?: number;
860
+ readonly data: Uint8Array;
861
+ readonly type: "png" | "jpg" | "gif" | "bmp" | "emf" | "wmf";
862
+ readonly name?: string;
863
+ }
864
+ declare class Picture extends XmlComponent {
865
+ private static nextId;
866
+ private readonly imageData;
867
+ constructor(options: IPictureOptions);
868
+ prepForXml(context: IContext): Readonly<Record<string, any>> | undefined;
869
+ }
870
+ //#endregion
871
+ //#region src/file/table/table-row.d.ts
872
+ interface ITableRowOptions {
873
+ readonly height?: number;
874
+ readonly cells: readonly ITableCellOptions[];
875
+ }
876
+ declare class TableRow extends BaseXmlComponent {
877
+ private readonly options;
878
+ constructor(options: ITableRowOptions);
879
+ prepForXml(context: IContext): IXmlableObject;
880
+ }
881
+ //#endregion
882
+ //#region src/file/table/table.d.ts
883
+ interface ITableOptions {
884
+ readonly rows: readonly ITableRowOptions[];
885
+ readonly columnWidths?: readonly number[];
886
+ readonly firstRow?: boolean;
887
+ readonly lastRow?: boolean;
888
+ readonly bandRow?: boolean;
889
+ readonly firstCol?: boolean;
890
+ readonly lastCol?: boolean;
891
+ readonly bandCol?: boolean;
892
+ readonly borders?: {
893
+ readonly top?: ICellBorderOptions;
894
+ readonly bottom?: ICellBorderOptions;
895
+ readonly left?: ICellBorderOptions;
896
+ readonly right?: ICellBorderOptions;
897
+ readonly insideHorizontal?: ICellBorderOptions;
898
+ readonly insideVertical?: ICellBorderOptions;
899
+ };
900
+ }
901
+ declare class Table extends BaseXmlComponent {
902
+ private readonly options;
903
+ constructor(options: ITableOptions);
904
+ prepForXml(context: IContext): IXmlableObject;
905
+ }
906
+ //#endregion
907
+ //#region src/file/table/table-frame.d.ts
908
+ interface ITableFrameOptions extends ITableOptions {
909
+ readonly x?: number;
910
+ readonly y?: number;
911
+ readonly width?: number;
912
+ readonly height?: number;
913
+ }
914
+ declare class TableFrame extends XmlComponent {
915
+ constructor(options: ITableFrameOptions);
916
+ }
917
+ //#endregion
918
+ //#region src/file/table/table-properties.d.ts
919
+ declare class TableProperties extends BaseXmlComponent {
920
+ private readonly options?;
921
+ constructor(options?: {
922
+ readonly firstRow?: boolean;
923
+ readonly lastRow?: boolean;
924
+ readonly bandRow?: boolean;
925
+ readonly firstCol?: boolean;
926
+ readonly lastCol?: boolean;
927
+ readonly bandCol?: boolean;
928
+ });
929
+ prepForXml(_context: IContext): IXmlableObject;
930
+ }
931
+ //#endregion
932
+ //#region src/file/chart/chart-space.d.ts
933
+ interface IChartSeriesData {
934
+ readonly name: string;
935
+ readonly values: readonly number[];
936
+ }
937
+ interface IChartSpaceOptions {
938
+ readonly title?: string;
939
+ readonly type: ChartType;
940
+ readonly categories: readonly string[];
941
+ readonly series: readonly IChartSeriesData[];
942
+ readonly showLegend?: boolean;
943
+ readonly style?: number;
944
+ }
945
+ declare class ChartSpace extends XmlComponent {
946
+ constructor(options: IChartSpaceOptions);
947
+ }
948
+ //#endregion
949
+ //#region src/file/chart/chart-frame.d.ts
950
+ interface IChartFrameOptions extends IChartSpaceOptions {
951
+ readonly x?: number;
952
+ readonly y?: number;
953
+ readonly width?: number;
954
+ readonly height?: number;
955
+ }
956
+ declare class ChartFrame extends XmlComponent {
957
+ private readonly chartOptions;
958
+ private readonly chartKey;
959
+ constructor(options: IChartFrameOptions);
960
+ prepForXml(context: IContext): IXmlableObject | undefined;
961
+ get ChartKey(): string;
962
+ }
963
+ //#endregion
964
+ //#region src/file/smartart/smartart-frame.d.ts
965
+ interface ISmartArtFrameOptions {
966
+ readonly x?: number;
967
+ readonly y?: number;
968
+ readonly width?: number;
969
+ readonly height?: number;
970
+ readonly nodes: readonly ITreeNode[];
971
+ readonly name?: string;
972
+ readonly layout?: string;
973
+ readonly style?: string;
974
+ readonly color?: string;
975
+ }
976
+ declare class SmartArtFrame extends XmlComponent {
977
+ private readonly smartArtKey;
978
+ private readonly dataModel;
979
+ private readonly layoutId;
980
+ private readonly styleId;
981
+ private readonly colorId;
982
+ constructor(options: ISmartArtFrameOptions);
983
+ prepForXml(context: IContext): IXmlableObject | undefined;
984
+ }
985
+ //#endregion
986
+ //#region src/export/packer/next-compiler.d.ts
987
+ interface IXmlifyedFile {
988
+ readonly data: string | Uint8Array;
989
+ readonly path: string;
990
+ }
991
+ //#endregion
992
+ //#region src/export/packer/packer.d.ts
993
+ interface OutputByType {
994
+ readonly base64: string;
995
+ readonly string: string;
996
+ readonly text: string;
997
+ readonly binarystring: string;
998
+ readonly array: readonly number[];
999
+ readonly uint8array: Uint8Array;
1000
+ readonly arraybuffer: ArrayBuffer;
1001
+ readonly blob: Blob;
1002
+ readonly nodebuffer: Buffer;
1003
+ }
1004
+ type OutputType = keyof OutputByType;
1005
+ declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T) => OutputByType[T];
1006
+ declare const PrettifyType: {
1007
+ readonly NONE: "";
1008
+ readonly WITH_2_BLANKS: " ";
1009
+ readonly WITH_4_BLANKS: " ";
1010
+ readonly WITH_TAB: "\t";
1011
+ };
1012
+ declare class Packer {
1013
+ static pack<T extends OutputType>(file: File, type: T, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType[T]>;
1014
+ static toBuffer(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
1015
+ static toBlob(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
1016
+ static toBase64String(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
1017
+ static toStream(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Readable;
1018
+ private static readonly compiler;
1019
+ }
1020
+ //#endregion
1021
+ //#region src/util/types.d.ts
1022
+ declare const percentToTHousandths: (percent: number) => number;
1023
+ declare const SlideSizePreset: {
1024
+ readonly WIDE: {
1025
+ readonly width: 960;
1026
+ readonly height: 540;
1027
+ };
1028
+ readonly STANDARD_4X3: {
1029
+ readonly width: 720;
1030
+ readonly height: 540;
1031
+ };
1032
+ readonly WIDESCREEN_16X10: {
1033
+ readonly width: 960;
1034
+ readonly height: 600;
1035
+ };
1036
+ readonly WIDESCREEN_16X9: {
1037
+ readonly width: 960;
1038
+ readonly height: 540;
1039
+ };
1040
+ };
1041
+ declare namespace index_d_exports$1 {
1042
+ export { SlideSizePreset, emusToInches, emusToPixels, emusToPoints, hashedId, inchesToEmus, percentToTHousandths, pixelsToEmus, pointsToEmus, uniqueId, uniqueNumericIdCreator, uniqueUuid };
1043
+ }
1044
+ //#endregion
1045
+ //#region src/parse/types.d.ts
1046
+ interface PptxDocumentJson {
1047
+ slides: SlideJson[];
1048
+ slideWidth?: number;
1049
+ slideHeight?: number;
1050
+ title?: string;
1051
+ creator?: string;
1052
+ subject?: string;
1053
+ keywords?: string;
1054
+ description?: string;
1055
+ lastModifiedBy?: string;
1056
+ }
1057
+ interface SlideJson {
1058
+ children: SlideChildJson[];
1059
+ background?: string | Record<string, unknown>;
1060
+ notes?: string;
1061
+ transition?: Record<string, unknown>;
1062
+ [key: string]: unknown;
1063
+ }
1064
+ type SlideChildJson = ShapeJson | PictureJson | ConnectorShapeJson | TableJson;
1065
+ interface ShapeJson {
1066
+ $type: "shape";
1067
+ id?: number;
1068
+ name?: string;
1069
+ x?: number;
1070
+ y?: number;
1071
+ width?: number;
1072
+ height?: number;
1073
+ geometry?: string;
1074
+ fill?: Record<string, unknown>;
1075
+ outline?: Record<string, unknown>;
1076
+ effects?: Record<string, unknown>;
1077
+ flipH?: boolean;
1078
+ flipV?: boolean;
1079
+ rotation?: number;
1080
+ text?: string;
1081
+ paragraphs?: ParagraphJson[];
1082
+ textVertical?: string;
1083
+ textAnchor?: string;
1084
+ textAutoFit?: string;
1085
+ placeholder?: string;
1086
+ placeholderIndex?: number;
1087
+ [key: string]: unknown;
1088
+ }
1089
+ interface PictureJson {
1090
+ $type: "picture";
1091
+ id?: number;
1092
+ name?: string;
1093
+ x?: number;
1094
+ y?: number;
1095
+ width?: number;
1096
+ height?: number;
1097
+ data?: string;
1098
+ type?: string;
1099
+ outline?: Record<string, unknown>;
1100
+ effects?: Record<string, unknown>;
1101
+ rotation?: number;
1102
+ flipH?: boolean;
1103
+ flipV?: boolean;
1104
+ [key: string]: unknown;
1105
+ }
1106
+ interface ConnectorShapeJson {
1107
+ $type: "connectorShape";
1108
+ id?: number;
1109
+ name?: string;
1110
+ x?: number;
1111
+ y?: number;
1112
+ width?: number;
1113
+ height?: number;
1114
+ outline?: Record<string, unknown>;
1115
+ style?: string;
1116
+ beginX?: number;
1117
+ beginY?: number;
1118
+ endX?: number;
1119
+ endY?: number;
1120
+ [key: string]: unknown;
1121
+ }
1122
+ interface TableJson {
1123
+ $type: "table";
1124
+ id?: number;
1125
+ name?: string;
1126
+ x?: number;
1127
+ y?: number;
1128
+ width?: number;
1129
+ height?: number;
1130
+ rows: TableRowJson[];
1131
+ [key: string]: unknown;
1132
+ }
1133
+ interface TableRowJson {
1134
+ cells: TableCellJson[];
1135
+ height?: number;
1136
+ [key: string]: unknown;
1137
+ }
1138
+ interface TableCellJson {
1139
+ paragraphs?: ParagraphJson[];
1140
+ columnSpan?: number;
1141
+ rowSpan?: number;
1142
+ fill?: Record<string, unknown>;
1143
+ borders?: Record<string, unknown>;
1144
+ verticalAlign?: string;
1145
+ margins?: Record<string, unknown>;
1146
+ width?: number;
1147
+ [key: string]: unknown;
1148
+ }
1149
+ interface ParagraphJson {
1150
+ text?: string;
1151
+ children?: RunJson[];
1152
+ alignment?: string;
1153
+ indent?: {
1154
+ level?: number;
1155
+ left?: number;
1156
+ };
1157
+ spacing?: {
1158
+ before?: number;
1159
+ after?: number;
1160
+ line?: number;
1161
+ };
1162
+ bullet?: {
1163
+ type?: string;
1164
+ level?: number;
1165
+ };
1166
+ numbering?: {
1167
+ type?: string;
1168
+ level?: number;
1169
+ };
1170
+ [key: string]: unknown;
1171
+ }
1172
+ interface RunJson {
1173
+ text?: string;
1174
+ fontSize?: number;
1175
+ bold?: boolean;
1176
+ italic?: boolean;
1177
+ underline?: string;
1178
+ font?: string;
1179
+ lang?: string;
1180
+ fill?: Record<string, unknown>;
1181
+ hyperlink?: {
1182
+ url: string;
1183
+ tooltip?: string;
1184
+ };
1185
+ strike?: string;
1186
+ baseline?: number;
1187
+ spacing?: number;
1188
+ capitalization?: string;
1189
+ shadow?: boolean;
1190
+ outline?: boolean;
1191
+ rightToLeft?: boolean;
1192
+ noProof?: boolean;
1193
+ [key: string]: unknown;
1194
+ }
1195
+ //#endregion
1196
+ //#region src/parse/document.d.ts
1197
+ declare function parsePptx(data: Uint8Array): Promise<PptxDocumentJson>;
1198
+ declare namespace index_d_exports {
1199
+ export { AnimationDirection, AnimationTrigger, AnimationType, AppProperties, AudioFrame, AudioType, Background, BevelOptions, BevelPresetType, BlipFill, BlipFillConfigOptions, BlipFillMediaData, ChartCollection, ChartFrame, ChartSpace, ChartType, ColorTransformOptions, CompoundLine, ConnectorShape, ConnectorShapeJson, ContentTypes, CoreGradientFillOptions, CoreOutlineOptions, CoreProperties, DateTimeField, DefaultNotesMaster, DefaultSlideLayout, DefaultSlideMaster, DefaultTheme, EffectList, EffectListOptions, EndParagraphRunProperties, Field, File, FillOptions, GradientStopOptions, GroupShape, GroupShapeProperties, GroupTransform2D, HeaderFooter, IAnimationOptions, IAudioFrameOptions, IBackgroundOptions, ICellBorderOptions, IChartData, IChartFrameOptions, IChartSeriesData, IChartSpaceOptions, IConnectorShapeOptions, ICorePropertiesOptions, IEffectsOptions, IGlowOptions, IGradientStop, IGroupShapeOptions, IGroupTransform2DOptions, IHeaderFooterOptions, IHyperlinkOptions, ILineShapeOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INotesSlideOptions, IParagraphOptions, IParagraphPropertiesOptions, IPictureOptions, IPresentationOptions, IPresentationOptions$1 as IPresentationXmlOptions, IReflectionOptions, IRunOptions, IRunPropertiesOptions, IShadowOptions, IShapeOptions, IShapePropertiesOptions, ISlideOptions, ISmartArtFrameOptions, ISoftEdgeOptions, ITableCellOptions, ITableFrameOptions, ITableOptions, ITableRowOptions, ITextBodyOptions, ITransform2DOptions, ITransitionOptions, ITreeNode, IVideoFrameOptions, IViewWrapper, LineCap, LineJoin, LineShape, Media, NonVisualDrawingProperties, NonVisualPictureProperties, NonVisualShapeProperties, NotesSlide, OutlineOptions, OutputByType, OutputType, Packer, Paragraph, ParagraphJson, ParagraphProperties, PathShadeType, PenAlignment, Picture, PictureJson, PosterType, PptxDocumentJson, File as Presentation, PresentationWrapper, PresetDash, PresetGeometry, PresetMaterialType, PrettifyType, ReflectionAlignment, RelationshipType, Relationships, Run, RunJson, RunProperties, Scene3DOptions, Shape, Shape3DOptions, ShapeJson, ShapeProperties, ShapeTree, Slide, SlideChildJson, SlideJson, SlideNumberField, SlideSizePreset, SmartArtFrame, StrikeStyle, Table, TableCell, TableCellJson, TableCellProperties, TableFrame, TableJson, TableProperties, TableRow, TableRowJson, Text, TextAlignment, TextBody, TextCapitalization, TileFlipMode, Transform2D, Transition, TransitionType, UnderlineStyle, VerticalAlignment, VideoFrame, VideoType, buildFill, convertOutput, createBevel, createBottomBevel, createColorElement, createColorTransforms, createEffectList, createGradientFill, createGradientStop, createOutline, createOutlineCompat, createScene3D, createShape3D, createTransformation, emusToInches, emusToPixels, emusToPoints, extractBlipFillMedia, hashedId, inchesToEmus, parsePptx, percentToTHousandths, pixelsToEmus, pointsToEmus, uniqueId, uniqueNumericIdCreator, uniqueUuid };
1200
+ }
1201
+ //#endregion
1202
+ export { type AnimationDirection, type AnimationTrigger, type AnimationType, AppProperties, AudioFrame, type AudioType, Background, type BevelOptions, BevelPresetType, BlipFill, type BlipFillConfigOptions, type BlipFillMediaData, ChartCollection, ChartFrame, ChartSpace, type ChartType, type ColorTransformOptions, CompoundLine, ConnectorShape, type ConnectorShapeJson, ContentTypes, type CoreGradientFillOptions, type CoreOutlineOptions, CoreProperties, DateTimeField, DefaultNotesMaster, DefaultSlideLayout, DefaultSlideMaster, DefaultTheme, EffectList, type EffectListOptions, EndParagraphRunProperties, Field, File, File as Presentation, type FillOptions, type GradientStopOptions, GroupShape, GroupShapeProperties, GroupTransform2D, HeaderFooter, type IAnimationOptions, type IAudioFrameOptions, type IBackgroundOptions, type ICellBorderOptions, type IChartData, type IChartFrameOptions, type IChartSeriesData, type IChartSpaceOptions, type IConnectorShapeOptions, type ICorePropertiesOptions, type IEffectsOptions, type IGlowOptions, type IGradientStop, type IGroupShapeOptions, type IGroupTransform2DOptions, type IHeaderFooterOptions, type IHyperlinkOptions, type ILineShapeOptions, type IMediaData, type IMediaDataTransformation, type IMediaTransformation, type INotesSlideOptions, type IParagraphOptions, type IParagraphPropertiesOptions, type IPictureOptions, type IPresentationOptions, type IPresentationOptions$1 as IPresentationXmlOptions, type IReflectionOptions, type IRunOptions, type IRunPropertiesOptions, type IShadowOptions, type IShapeOptions, type IShapePropertiesOptions, type ISlideOptions, type ISmartArtFrameOptions, type ISoftEdgeOptions, type ITableCellOptions, type ITableFrameOptions, type ITableOptions, type ITableRowOptions, type ITextBodyOptions, type ITransform2DOptions, type ITransitionOptions, type ITreeNode, type IVideoFrameOptions, type IViewWrapper, LineCap, LineJoin, LineShape, Media, NonVisualDrawingProperties, NonVisualPictureProperties, NonVisualShapeProperties, NotesSlide, type OutlineOptions, OutputByType, OutputType, Packer, Paragraph, type ParagraphJson, ParagraphProperties, PathShadeType, PenAlignment, Picture, type PictureJson, type PosterType, type PptxDocumentJson, PresentationWrapper, PresetDash, PresetGeometry, PresetMaterialType, PrettifyType, ReflectionAlignment, type RelationshipType, Relationships, Run, type RunJson, RunProperties, type Scene3DOptions, Shape, type Shape3DOptions, type ShapeJson, ShapeProperties, ShapeTree, Slide, type SlideChildJson, type SlideJson, SlideNumberField, SlideSizePreset, SmartArtFrame, StrikeStyle, Table, TableCell, type TableCellJson, TableCellProperties, TableFrame, type TableJson, TableProperties, TableRow, type TableRowJson, Text, TextAlignment, TextBody, TextCapitalization, TileFlipMode, Transform2D, Transition, type TransitionType, UnderlineStyle, VerticalAlignment, VideoFrame, type VideoType, buildFill, convertOutput, createBevel, createBottomBevel, createColorElement, createColorTransforms, createEffectList, createGradientFill, createGradientStop, createOutline, createOutlineCompat, createScene3D, createShape3D, createTransformation, emusToInches, emusToPixels, emusToPoints, extractBlipFillMedia, hashedId, inchesToEmus, parsePptx, percentToTHousandths, pixelsToEmus, pointsToEmus, uniqueId, uniqueNumericIdCreator, uniqueUuid };
1203
+ //# sourceMappingURL=index.d.mts.map