@office-open/core 0.9.6 → 0.9.8

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.
@@ -1,4 +1,4 @@
1
- import { c as CustomDescriptor, u as ReadContext } from "./index-C4r2WLEy.mjs";
1
+ import { _ as CustomDescriptor, y as ReadContext } from "./index-L82O3q6V.mjs";
2
2
  import { s as UniversalMeasure } from "./values-Dqj8cbcy.mjs";
3
3
  import { Element } from "@office-open/xml";
4
4
  import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8 as strFromU8$1, unzipSync as unzipSync$1 } from "fflate";
@@ -570,6 +570,162 @@ declare const createColorElement: (color: SolidFillOptions) => string;
570
570
  */
571
571
  declare const createSolidFill: (options: SolidFillOptions) => string;
572
572
  //#endregion
573
+ //#region src/opc/output.d.ts
574
+ /**
575
+ * Output type definitions for OOXML document export.
576
+ *
577
+ * @module
578
+ */
579
+ interface OutputByType {
580
+ base64: string;
581
+ string: string;
582
+ text: string;
583
+ binarystring: string;
584
+ array: readonly number[];
585
+ uint8array: Uint8Array;
586
+ arraybuffer: ArrayBuffer;
587
+ blob: Blob;
588
+ nodebuffer: Buffer;
589
+ }
590
+ type OutputType = keyof OutputByType;
591
+ declare const OoxmlMimeType: {
592
+ readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
593
+ readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
594
+ readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
595
+ };
596
+ declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T, mimeType?: string) => OutputByType[T];
597
+ //#endregion
598
+ //#region src/opc/packer.d.ts
599
+ type DataType = ArrayBufferLike | Blob | DataView | number[] | ReadableStream | string | Uint8Array;
600
+ /** Test whether a string is a base64 data URL (`data:[mime];base64,...`). */
601
+ declare function isBase64DataURL(input: string): boolean;
602
+ /**
603
+ * Decode a base64 string into a Uint8Array using the most efficient path
604
+ * available: Node `Buffer` (zero-copy) > `Uint8Array.fromBase64()` (2025
605
+ * baseline, no intermediate binary string) > `atob` fallback. Prefer this over
606
+ * raw `atob` for large payloads — `atob` materializes a UCS-2 binary string
607
+ * (~2x memory) before the byte array.
608
+ */
609
+ declare function decodeBase64(input: string): Uint8Array;
610
+ declare function toUint8Array(data: DataType): Uint8Array;
611
+ interface XmlifyedFile {
612
+ path: string;
613
+ data: string | Uint8Array;
614
+ }
615
+ /** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
616
+ declare const ZIP_DEFLATE_LEVEL = 1;
617
+ /** Default level for media entries (STORE — no compression). */
618
+ declare const ZIP_STORED_LEVEL = 0;
619
+ /**
620
+ * Resolve the ZIP level for a media entry by file-name extension, matching MS
621
+ * Office: already-compressed raster formats → STORE (0), everything else →
622
+ * DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
623
+ * therefore applies only to compressible formats, never forcing DEFLATE onto
624
+ * pre-compressed assets.
625
+ */
626
+ declare const levelForMediaName: (fileName: string, mediaLevel: number) => number;
627
+ /** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
628
+ interface CompressionOptions {
629
+ /** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
630
+ xml?: number;
631
+ /**
632
+ * DEFLATE level for compressible media (EMF/WMF/BMP/TIFF/…). Already-compressed
633
+ * formats (PNG/JPEG/GIF) are always STOREd regardless, matching MS Office.
634
+ * Default: 1 (SuperFast).
635
+ */
636
+ media?: number;
637
+ }
638
+ /** Options for Packer output methods. */
639
+ interface PackerOptions<T extends OutputType = "nodebuffer"> {
640
+ /** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
641
+ type?: T;
642
+ /** Custom XML/ZIP file overrides. */
643
+ overrides?: XmlifyedFile[];
644
+ /** Compression levels for ZIP entries. */
645
+ compression?: CompressionOptions;
646
+ }
647
+ /**
648
+ * Asynchronously compress files and convert to the requested output format.
649
+ *
650
+ * Uses fflate Web Workers for non-blocking DEFLATE compression.
651
+ * XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
652
+ * split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
653
+ * are STOREd, everything else uses the `media` level (default SuperFast).
654
+ * Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
655
+ */
656
+ declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
657
+ /**
658
+ * Synchronously compress files and convert to the requested output format.
659
+ *
660
+ * Uses synchronous DEFLATE compression for maximum throughput.
661
+ * Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
662
+ */
663
+ declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
664
+ /**
665
+ * Create a `ReadableStream<Uint8Array>` from compressed file entries.
666
+ *
667
+ * Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
668
+ * `STORED` entries (media) pass through synchronously.
669
+ * Works in both Node.js and browsers (Web Streams API).
670
+ */
671
+ declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
672
+ /**
673
+ * Compile function provided by each package to convert a file object into a Zippable map.
674
+ */
675
+ type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
676
+ /**
677
+ * Packer interface returned by {@link createPacker}.
678
+ *
679
+ * Async methods use fflate Web Workers for non-blocking compression.
680
+ * Sync methods use synchronous compression for maximum throughput in
681
+ * CLI scripts and build tools.
682
+ */
683
+ interface Packer<TFile> {
684
+ /** Compile file to Zippable map (synchronous). */
685
+ compile: CompileFn<TFile>;
686
+ /** Generic async output — returns the requested OutputType. */
687
+ pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
688
+ /** Generic sync output — returns the requested OutputType. */
689
+ packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
690
+ /** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
691
+ toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
692
+ /** Sync → `Uint8Array`. */
693
+ toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
694
+ /** Async → `Promise<string>` (raw ZIP content as string). */
695
+ toString(file: TFile, options?: PackerOptions): Promise<string>;
696
+ /** Sync → `string`. */
697
+ toStringSync(file: TFile, options?: PackerOptions): string;
698
+ /** Async → `Promise<Buffer>` (Node.js). */
699
+ toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
700
+ /** Sync → `Buffer` (Node.js). */
701
+ toBufferSync(file: TFile, options?: PackerOptions): Buffer;
702
+ /** Async → `Promise<string>` (base64-encoded). */
703
+ toBase64(file: TFile, options?: PackerOptions): Promise<string>;
704
+ /** Sync → `string` (base64-encoded). */
705
+ toBase64Sync(file: TFile, options?: PackerOptions): string;
706
+ /** Async → `Promise<Blob>` (browser). */
707
+ toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
708
+ /** Sync → `Blob`. */
709
+ toBlobSync(file: TFile, options?: PackerOptions): Blob;
710
+ /** Async → `Promise<ArrayBuffer>`. */
711
+ toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
712
+ /** Sync → `ArrayBuffer`. */
713
+ toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
714
+ /** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
715
+ toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
716
+ }
717
+ /**
718
+ * Create a Packer object with all output format methods.
719
+ *
720
+ * Centralises the ZIP → convert pipeline and the streaming implementation
721
+ * so that each OOXML package only needs to provide a `compile` function and
722
+ * a MIME type.
723
+ */
724
+ declare const createPacker: <TFile>(options: {
725
+ compile: CompileFn<TFile>;
726
+ mimeType: string;
727
+ }) => Packer<TFile>;
728
+ //#endregion
573
729
  //#region src/drawingml/blip/blip-effects.d.ts
574
730
  /**
575
731
  * Options for luminance (brightness/contrast) effect.
@@ -972,7 +1128,7 @@ interface PathShadeOptions {
972
1128
  *
973
1129
  * Defines the rectangle to which the gradient fills.
974
1130
  */
975
- fillToRect?: RelativeRect;
1131
+ fillToRectangle?: RelativeRect;
976
1132
  }
977
1133
  /**
978
1134
  * Gradient shade options (linear or path).
@@ -1010,7 +1166,7 @@ interface GradientFillOptions {
1010
1166
  *
1011
1167
  * Defines the rectangle used for gradient tiling.
1012
1168
  */
1013
- tileRect?: RelativeRect;
1169
+ tileRectangle?: RelativeRect;
1014
1170
  /** Whether gradient rotates with the shape */
1015
1171
  rotateWithShape?: boolean;
1016
1172
  }
@@ -1065,8 +1221,8 @@ interface GradientStopOptions {
1065
1221
  * Blip fill options (image fill) for DrawingML shapes.
1066
1222
  */
1067
1223
  interface BlipFillConfigOptions {
1068
- /** Image data (raw bytes) */
1069
- data: Uint8Array | ArrayBuffer | Buffer;
1224
+ /** Image data: raw bytes, ArrayBuffer, or a base64 data URL string. */
1225
+ data: DataType;
1070
1226
  /** Image type */
1071
1227
  imageType: "png" | "jpg" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1072
1228
  /** DPI of the image */
@@ -1076,7 +1232,7 @@ interface BlipFillConfigOptions {
1076
1232
  /** Image adjustment effects (brightness, contrast, grayscale, etc.) */
1077
1233
  blipEffects?: BlipEffectsOptions;
1078
1234
  /** Source rectangle for cropping */
1079
- srcRect?: SourceRectangleOptions;
1235
+ sourceRectangle?: SourceRectangleOptions;
1080
1236
  /** Tile fill mode (if omitted, defaults to stretch) */
1081
1237
  tile?: TileOptions;
1082
1238
  }
@@ -1145,8 +1301,13 @@ type FillOptions = string | {
1145
1301
  *
1146
1302
  * The returned data should be registered with the document's media store
1147
1303
  * during serialization so the packer can resolve the `{fileName}` placeholder.
1304
+ *
1305
+ * @param fill - Fill options to inspect
1306
+ * @param nameAllocator - Optional sequential name provider (e.g. a format
1307
+ * package's media counter). When omitted, falls back to a random id so the
1308
+ * function stays usable from contexts without a shared counter.
1148
1309
  */
1149
- declare const extractBlipFillMedia: (fill: FillOptions) => BlipFillMediaData | undefined;
1310
+ declare const extractBlipFillMedia: (fill: FillOptions, nameAllocator?: (type: string) => string) => BlipFillMediaData | undefined;
1150
1311
  /**
1151
1312
  * Builds a DrawingML fill XML string from a FillOptions config.
1152
1313
  */
@@ -1325,7 +1486,7 @@ declare const createGroupFill: () => string;
1325
1486
  declare const APP_PROPS_XML = "<Properties xmlns=\"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\" xmlns:vt=\"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\"><Application>Microsoft Office Word</Application></Properties>";
1326
1487
  //#endregion
1327
1488
  //#region src/opc/relationships.d.ts
1328
- type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideSyncProperties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" | "http://schemas.microsoft.com/office/2007/relationships/media" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath";
1489
+ type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideSyncProperties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" | "http://schemas.microsoft.com/office/2007/relationships/media" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath";
1329
1490
  declare const TargetModeType: {
1330
1491
  readonly EXTERNAL: "External";
1331
1492
  };
@@ -1355,16 +1516,16 @@ declare class Relationships {
1355
1516
  * @module
1356
1517
  */
1357
1518
  interface DefaultAttributes {
1358
- readonly contentType: string;
1359
- readonly extension?: string;
1519
+ contentType: string;
1520
+ extension?: string;
1360
1521
  }
1361
1522
  /**
1362
1523
  * Creates a Default element mapping a file extension to a MIME content type.
1363
1524
  */
1364
1525
  declare const createDefault: (contentType: string, extension?: string) => string;
1365
1526
  interface OverrideAttributes {
1366
- readonly contentType: string;
1367
- readonly partName?: string;
1527
+ contentType: string;
1528
+ partName?: string;
1368
1529
  }
1369
1530
  /**
1370
1531
  * Creates an Override element mapping a specific part path to a MIME content type.
@@ -1396,13 +1557,13 @@ declare function parseCorePropsElement(el: Element | undefined): CoreProperties;
1396
1557
  * and Dublin Core property construction.
1397
1558
  */
1398
1559
  declare function buildCorePropertiesXml(opts: {
1399
- readonly title?: string;
1400
- readonly subject?: string;
1401
- readonly creator?: string;
1402
- readonly keywords?: string;
1403
- readonly description?: string;
1404
- readonly lastModifiedBy?: string;
1405
- readonly revision?: number;
1560
+ title?: string;
1561
+ subject?: string;
1562
+ creator?: string;
1563
+ keywords?: string;
1564
+ description?: string;
1565
+ lastModifiedBy?: string;
1566
+ revision?: number;
1406
1567
  }): IXmlableObject;
1407
1568
  /**
1408
1569
  * Build a cp:coreProperties XML string directly (fast path).
@@ -1410,147 +1571,15 @@ declare function buildCorePropertiesXml(opts: {
1410
1571
  * Shared by pptx and xlsx to bypass the toXml() → xml() pipeline.
1411
1572
  */
1412
1573
  declare function buildCorePropertiesXmlString(opts: {
1413
- readonly title?: string;
1414
- readonly subject?: string;
1415
- readonly creator?: string;
1416
- readonly keywords?: string;
1417
- readonly description?: string;
1418
- readonly lastModifiedBy?: string;
1419
- readonly revision?: number;
1574
+ title?: string;
1575
+ subject?: string;
1576
+ creator?: string;
1577
+ keywords?: string;
1578
+ description?: string;
1579
+ lastModifiedBy?: string;
1580
+ revision?: number;
1420
1581
  }): string;
1421
1582
  //#endregion
1422
- //#region src/opc/output.d.ts
1423
- /**
1424
- * Output type definitions for OOXML document export.
1425
- *
1426
- * @module
1427
- */
1428
- interface OutputByType {
1429
- readonly base64: string;
1430
- readonly string: string;
1431
- readonly text: string;
1432
- readonly binarystring: string;
1433
- readonly array: readonly number[];
1434
- readonly uint8array: Uint8Array;
1435
- readonly arraybuffer: ArrayBuffer;
1436
- readonly blob: Blob;
1437
- readonly nodebuffer: Buffer;
1438
- }
1439
- type OutputType = keyof OutputByType;
1440
- declare const OoxmlMimeType: {
1441
- readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
1442
- readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
1443
- readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
1444
- };
1445
- declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T, mimeType?: string) => OutputByType[T];
1446
- //#endregion
1447
- //#region src/opc/packer.d.ts
1448
- type DataType = ArrayBufferLike | Blob | DataView | number[] | ReadableStream | string | Uint8Array;
1449
- declare function toUint8Array(data: DataType): Uint8Array;
1450
- interface XmlifyedFile {
1451
- path: string;
1452
- data: string | Uint8Array;
1453
- }
1454
- /** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
1455
- declare const ZIP_DEFLATE_LEVEL = 1;
1456
- /** Default level for media entries (STORE — no compression). */
1457
- declare const ZIP_STORED_LEVEL = 0;
1458
- /** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
1459
- interface CompressionOptions {
1460
- /** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
1461
- xml?: number;
1462
- /** DEFLATE level for media files. Default: 0 (STORE, no compression). */
1463
- media?: number;
1464
- }
1465
- /** Options for Packer output methods. */
1466
- interface PackerOptions<T extends OutputType = "nodebuffer"> {
1467
- /** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
1468
- type?: T;
1469
- /** Custom XML/ZIP file overrides. */
1470
- overrides?: XmlifyedFile[];
1471
- /** Compression levels for ZIP entries. */
1472
- compression?: CompressionOptions;
1473
- }
1474
- /**
1475
- * Asynchronously compress files and convert to the requested output format.
1476
- *
1477
- * Uses fflate Web Workers for non-blocking DEFLATE compression.
1478
- * XML entries use DEFLATE by default; media entries should explicitly set
1479
- * `{ level: ZIP_STORED_LEVEL }` to avoid redundant compression.
1480
- */
1481
- declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
1482
- /**
1483
- * Synchronously compress files and convert to the requested output format.
1484
- *
1485
- * Uses synchronous DEFLATE compression for maximum throughput.
1486
- * Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
1487
- */
1488
- declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
1489
- /**
1490
- * Create a `ReadableStream<Uint8Array>` from compressed file entries.
1491
- *
1492
- * Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
1493
- * `STORED` entries (media) pass through synchronously.
1494
- * Works in both Node.js and browsers (Web Streams API).
1495
- */
1496
- declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
1497
- /**
1498
- * Compile function provided by each package to convert a file object into a Zippable map.
1499
- */
1500
- type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
1501
- /**
1502
- * Packer interface returned by {@link createPacker}.
1503
- *
1504
- * Async methods use fflate Web Workers for non-blocking compression.
1505
- * Sync methods use synchronous compression for maximum throughput in
1506
- * CLI scripts and build tools.
1507
- */
1508
- interface Packer<TFile> {
1509
- /** Compile file to Zippable map (synchronous). */
1510
- compile: CompileFn<TFile>;
1511
- /** Generic async output — returns the requested OutputType. */
1512
- pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
1513
- /** Generic sync output — returns the requested OutputType. */
1514
- packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
1515
- /** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
1516
- toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
1517
- /** Sync → `Uint8Array`. */
1518
- toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
1519
- /** Async → `Promise<string>` (raw ZIP content as string). */
1520
- toString(file: TFile, options?: PackerOptions): Promise<string>;
1521
- /** Sync → `string`. */
1522
- toStringSync(file: TFile, options?: PackerOptions): string;
1523
- /** Async → `Promise<Buffer>` (Node.js). */
1524
- toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
1525
- /** Sync → `Buffer` (Node.js). */
1526
- toBufferSync(file: TFile, options?: PackerOptions): Buffer;
1527
- /** Async → `Promise<string>` (base64-encoded). */
1528
- toBase64(file: TFile, options?: PackerOptions): Promise<string>;
1529
- /** Sync → `string` (base64-encoded). */
1530
- toBase64Sync(file: TFile, options?: PackerOptions): string;
1531
- /** Async → `Promise<Blob>` (browser). */
1532
- toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
1533
- /** Sync → `Blob`. */
1534
- toBlobSync(file: TFile, options?: PackerOptions): Blob;
1535
- /** Async → `Promise<ArrayBuffer>`. */
1536
- toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
1537
- /** Sync → `ArrayBuffer`. */
1538
- toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
1539
- /** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
1540
- toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
1541
- }
1542
- /**
1543
- * Create a Packer object with all output format methods.
1544
- *
1545
- * Centralises the ZIP → convert pipeline and the streaming implementation
1546
- * so that each OOXML package only needs to provide a `compile` function and
1547
- * a MIME type.
1548
- */
1549
- declare const createPacker: <TFile>(options: {
1550
- readonly compile: CompileFn<TFile>;
1551
- readonly mimeType: string;
1552
- }) => Packer<TFile>;
1553
- //#endregion
1554
1583
  //#region src/opc/parser.d.ts
1555
1584
  /**
1556
1585
  * Parsed OOXML archive backed by an unzipped ZIP map.
@@ -1583,6 +1612,590 @@ declare class ParsedArchive {
1583
1612
  /** Parse an OOXML archive (.docx, .pptx, .xlsx) into a ParsedArchive. */
1584
1613
  declare function parseArchive(data: Uint8Array): ParsedArchive;
1585
1614
  //#endregion
1615
+ //#region src/opc/part-registry.d.ts
1616
+ /**
1617
+ * Declarative part registry — the machine-readable source of truth for which
1618
+ * parts each OOXML package is expected to contain.
1619
+ *
1620
+ * Consumed by {@link validateOpcConsistency} to detect two failure classes the
1621
+ * XSD single-part validator cannot see:
1622
+ * - O1 orphan part — a part present in the ZIP that no rule accounts for
1623
+ * - O2 missing part — an `always` part the ZIP lacks
1624
+ *
1625
+ * Content-type and relationship integrity (O3/O5/O6/O7) are derived directly
1626
+ * from the ZIP + `.rels` + `[Content_Types].xml`, so they need no registry.
1627
+ *
1628
+ * Presence semantics:
1629
+ * - `always` — present in *any* valid package (content-types map,
1630
+ * root rels, main part only). O2 fires when absent. Kept
1631
+ * minimal so template/round-trip packages — whose
1632
+ * `[Content_Types]` and part set are passed through from a
1633
+ * source rather than rebuilt — do not false-positive.
1634
+ * - `conditional` — emitted by a fresh `compileDocument` run but a
1635
+ * round-tripped/template package may omit it. Absence is
1636
+ * legitimate; O6 (stale Override) still catches the case
1637
+ * where its content type is declared but the part is gone.
1638
+ * - `repeated` — one per index (slides, worksheets, headers, …).
1639
+ *
1640
+ * Reference: ECMA-376 Part 2 (OPC). Content-type values mirror the per-package
1641
+ * `content-types.ts` builders; relationship `@Type` URLs mirror
1642
+ * {@link RelationshipType}.
1643
+ *
1644
+ * @module
1645
+ */
1646
+ type PartPresence = {
1647
+ readonly kind: "always";
1648
+ } | {
1649
+ readonly kind: "conditional";
1650
+ readonly flag: string;
1651
+ } | {
1652
+ readonly kind: "repeated";
1653
+ readonly countFrom: string;
1654
+ };
1655
+ interface PartDef {
1656
+ /**
1657
+ * ZIP path template. `${i}` expands per repeated index (1-based); a template
1658
+ * without the placeholder denotes a singleton part.
1659
+ */
1660
+ path: string;
1661
+ /**
1662
+ * `[Content_Types].xml` Override value the part carries when generated.
1663
+ * `undefined` when the part relies on a `<Default>` extension mapping
1664
+ * (e.g. media, fonts, docx theme under raw-part passthrough).
1665
+ */
1666
+ contentType?: string;
1667
+ presence: PartPresence;
1668
+ }
1669
+ interface PackagePartRegistry {
1670
+ format: "docx" | "pptx" | "xlsx";
1671
+ parts: readonly PartDef[];
1672
+ /**
1673
+ * Path prefixes that are always legitimate even when undeclared — media,
1674
+ * fonts, embeddings, altChunks, custom XML, and `.rels` parts. Used to
1675
+ * suppress O1 false positives from round-tripped / pass-through content.
1676
+ */
1677
+ orphanWhitelist: readonly string[];
1678
+ }
1679
+ declare const DOCX_PARTS: {
1680
+ readonly format: "docx";
1681
+ readonly orphanWhitelist: readonly ["word/media/", "word/fonts/", "word/embeddings/", "word/afchunks/", "customXml/", "_rels/", "word/_rels/", "docProps/", "[Content_Types].xml"];
1682
+ readonly parts: readonly [{
1683
+ readonly path: "[Content_Types].xml";
1684
+ readonly presence: {
1685
+ readonly kind: "always";
1686
+ };
1687
+ }, {
1688
+ readonly path: "_rels/.rels";
1689
+ readonly presence: {
1690
+ readonly kind: "always";
1691
+ };
1692
+ }, {
1693
+ readonly path: "word/document.xml";
1694
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml";
1695
+ readonly presence: {
1696
+ readonly kind: "always";
1697
+ };
1698
+ }, {
1699
+ readonly path: "word/styles.xml";
1700
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml";
1701
+ readonly presence: {
1702
+ readonly kind: "conditional";
1703
+ readonly flag: "freshCompile";
1704
+ };
1705
+ }, {
1706
+ readonly path: "word/numbering.xml";
1707
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml";
1708
+ readonly presence: {
1709
+ readonly kind: "conditional";
1710
+ readonly flag: "freshCompile";
1711
+ };
1712
+ }, {
1713
+ readonly path: "word/footnotes.xml";
1714
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml";
1715
+ readonly presence: {
1716
+ readonly kind: "conditional";
1717
+ readonly flag: "freshCompile";
1718
+ };
1719
+ }, {
1720
+ readonly path: "word/endnotes.xml";
1721
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml";
1722
+ readonly presence: {
1723
+ readonly kind: "conditional";
1724
+ readonly flag: "freshCompile";
1725
+ };
1726
+ }, {
1727
+ readonly path: "word/settings.xml";
1728
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml";
1729
+ readonly presence: {
1730
+ readonly kind: "conditional";
1731
+ readonly flag: "freshCompile";
1732
+ };
1733
+ }, {
1734
+ readonly path: "word/fontTable.xml";
1735
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml";
1736
+ readonly presence: {
1737
+ readonly kind: "conditional";
1738
+ readonly flag: "freshCompile";
1739
+ };
1740
+ }, {
1741
+ readonly path: "docProps/core.xml";
1742
+ readonly contentType: "application/vnd.openxmlformats-package.core-properties+xml";
1743
+ readonly presence: {
1744
+ readonly kind: "conditional";
1745
+ readonly flag: "freshCompile";
1746
+ };
1747
+ }, {
1748
+ readonly path: "docProps/app.xml";
1749
+ readonly contentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml";
1750
+ readonly presence: {
1751
+ readonly kind: "conditional";
1752
+ readonly flag: "freshCompile";
1753
+ };
1754
+ }, {
1755
+ readonly path: "docProps/custom.xml";
1756
+ readonly contentType: "application/vnd.openxmlformats-officedocument.custom-properties+xml";
1757
+ readonly presence: {
1758
+ readonly kind: "conditional";
1759
+ readonly flag: "freshCompile";
1760
+ };
1761
+ }, {
1762
+ readonly path: "word/comments.xml";
1763
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml";
1764
+ readonly presence: {
1765
+ readonly kind: "conditional";
1766
+ readonly flag: "hasComments";
1767
+ };
1768
+ }, {
1769
+ readonly path: "word/header${i}.xml";
1770
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml";
1771
+ readonly presence: {
1772
+ readonly kind: "repeated";
1773
+ readonly countFrom: "headerCount";
1774
+ };
1775
+ }, {
1776
+ readonly path: "word/footer${i}.xml";
1777
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";
1778
+ readonly presence: {
1779
+ readonly kind: "repeated";
1780
+ readonly countFrom: "footerCount";
1781
+ };
1782
+ }, {
1783
+ readonly path: "word/charts/chart${i}.xml";
1784
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
1785
+ readonly presence: {
1786
+ readonly kind: "repeated";
1787
+ readonly countFrom: "chartCount";
1788
+ };
1789
+ }, {
1790
+ readonly path: "word/diagrams/data${i}.xml";
1791
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml";
1792
+ readonly presence: {
1793
+ readonly kind: "repeated";
1794
+ readonly countFrom: "smartArtCount";
1795
+ };
1796
+ }, {
1797
+ readonly path: "word/diagrams/layout${i}.xml";
1798
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml";
1799
+ readonly presence: {
1800
+ readonly kind: "repeated";
1801
+ readonly countFrom: "smartArtCount";
1802
+ };
1803
+ }, {
1804
+ readonly path: "word/diagrams/quickStyle${i}.xml";
1805
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml";
1806
+ readonly presence: {
1807
+ readonly kind: "repeated";
1808
+ readonly countFrom: "smartArtCount";
1809
+ };
1810
+ }, {
1811
+ readonly path: "word/diagrams/colors${i}.xml";
1812
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml";
1813
+ readonly presence: {
1814
+ readonly kind: "repeated";
1815
+ readonly countFrom: "smartArtCount";
1816
+ };
1817
+ }, {
1818
+ readonly path: "word/diagrams/drawing${i}.xml";
1819
+ readonly contentType: "application/vnd.ms-office.drawingml.diagramDrawing+xml";
1820
+ readonly presence: {
1821
+ readonly kind: "repeated";
1822
+ readonly countFrom: "smartArtCount";
1823
+ };
1824
+ }, {
1825
+ readonly path: "word/bibliography.xml";
1826
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.bibliography+xml";
1827
+ readonly presence: {
1828
+ readonly kind: "conditional";
1829
+ readonly flag: "hasBibliography";
1830
+ };
1831
+ }, {
1832
+ readonly path: "word/glossary/document.xml";
1833
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.glossary+xml";
1834
+ readonly presence: {
1835
+ readonly kind: "conditional";
1836
+ readonly flag: "hasGlossary";
1837
+ };
1838
+ }, {
1839
+ readonly path: "word/webSettings.xml";
1840
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml";
1841
+ readonly presence: {
1842
+ readonly kind: "conditional";
1843
+ readonly flag: "hasWebSettings";
1844
+ };
1845
+ }, {
1846
+ readonly path: "word/theme/theme1.xml";
1847
+ readonly presence: {
1848
+ readonly kind: "conditional";
1849
+ readonly flag: "rawParts theme";
1850
+ };
1851
+ }];
1852
+ };
1853
+ declare const PPTX_PARTS: {
1854
+ readonly format: "pptx";
1855
+ readonly orphanWhitelist: readonly ["ppt/media/", "ppt/embeddings/", "_rels/", "ppt/_rels/", "ppt/slideMasters/_rels/", "ppt/slideLayouts/_rels/", "ppt/slides/_rels/", "ppt/notesMasters/_rels/", "ppt/notesSlides/_rels/", "ppt/charts/_rels/", "ppt/diagrams/_rels/", "docProps/", "[Content_Types].xml"];
1856
+ readonly parts: readonly [{
1857
+ readonly path: "[Content_Types].xml";
1858
+ readonly presence: {
1859
+ readonly kind: "always";
1860
+ };
1861
+ }, {
1862
+ readonly path: "_rels/.rels";
1863
+ readonly presence: {
1864
+ readonly kind: "always";
1865
+ };
1866
+ }, {
1867
+ readonly path: "ppt/presentation.xml";
1868
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml";
1869
+ readonly presence: {
1870
+ readonly kind: "always";
1871
+ };
1872
+ }, {
1873
+ readonly path: "docProps/core.xml";
1874
+ readonly contentType: "application/vnd.openxmlformats-package.core-properties+xml";
1875
+ readonly presence: {
1876
+ readonly kind: "conditional";
1877
+ readonly flag: "freshCompile";
1878
+ };
1879
+ }, {
1880
+ readonly path: "docProps/app.xml";
1881
+ readonly contentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml";
1882
+ readonly presence: {
1883
+ readonly kind: "conditional";
1884
+ readonly flag: "freshCompile";
1885
+ };
1886
+ }, {
1887
+ readonly path: "ppt/theme/theme${i}.xml";
1888
+ readonly contentType: "application/vnd.openxmlformats-officedocument.theme+xml";
1889
+ readonly presence: {
1890
+ readonly kind: "repeated";
1891
+ readonly countFrom: "masters + notes/handout masters";
1892
+ };
1893
+ }, {
1894
+ readonly path: "ppt/presProps.xml";
1895
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.presProps+xml";
1896
+ readonly presence: {
1897
+ readonly kind: "conditional";
1898
+ readonly flag: "freshCompile";
1899
+ };
1900
+ }, {
1901
+ readonly path: "ppt/viewProps.xml";
1902
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml";
1903
+ readonly presence: {
1904
+ readonly kind: "conditional";
1905
+ readonly flag: "freshCompile";
1906
+ };
1907
+ }, {
1908
+ readonly path: "ppt/tableStyles.xml";
1909
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml";
1910
+ readonly presence: {
1911
+ readonly kind: "conditional";
1912
+ readonly flag: "freshCompile";
1913
+ };
1914
+ }, {
1915
+ readonly path: "ppt/slideMasters/slideMaster${i}.xml";
1916
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml";
1917
+ readonly presence: {
1918
+ readonly kind: "repeated";
1919
+ readonly countFrom: "masters.length";
1920
+ };
1921
+ }, {
1922
+ readonly path: "ppt/slideLayouts/slideLayout${i}.xml";
1923
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml";
1924
+ readonly presence: {
1925
+ readonly kind: "repeated";
1926
+ readonly countFrom: "layouts.length";
1927
+ };
1928
+ }, {
1929
+ readonly path: "ppt/slides/slide${i}.xml";
1930
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slide+xml";
1931
+ readonly presence: {
1932
+ readonly kind: "repeated";
1933
+ readonly countFrom: "slides.length";
1934
+ };
1935
+ }, {
1936
+ readonly path: "ppt/notesMasters/notesMaster1.xml";
1937
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml";
1938
+ readonly presence: {
1939
+ readonly kind: "conditional";
1940
+ readonly flag: "any slide has notes";
1941
+ };
1942
+ }, {
1943
+ readonly path: "ppt/handoutMasters/handoutMaster1.xml";
1944
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.handoutMaster+xml";
1945
+ readonly presence: {
1946
+ readonly kind: "conditional";
1947
+ readonly flag: "includeHandoutMaster";
1948
+ };
1949
+ }, {
1950
+ readonly path: "ppt/notesSlides/notesSlide${i}.xml";
1951
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml";
1952
+ readonly presence: {
1953
+ readonly kind: "repeated";
1954
+ readonly countFrom: "slides with notes";
1955
+ };
1956
+ }, {
1957
+ readonly path: "ppt/commentAuthors.xml";
1958
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.commentAuthors+xml";
1959
+ readonly presence: {
1960
+ readonly kind: "conditional";
1961
+ readonly flag: "any slide has comments";
1962
+ };
1963
+ }, {
1964
+ readonly path: "ppt/comments/comment${i}.xml";
1965
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.comments+xml";
1966
+ readonly presence: {
1967
+ readonly kind: "repeated";
1968
+ readonly countFrom: "slides with comments";
1969
+ };
1970
+ }, {
1971
+ readonly path: "ppt/charts/chart${i}.xml";
1972
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
1973
+ readonly presence: {
1974
+ readonly kind: "repeated";
1975
+ readonly countFrom: "charts";
1976
+ };
1977
+ }, {
1978
+ readonly path: "ppt/diagrams/data${i}.xml";
1979
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml";
1980
+ readonly presence: {
1981
+ readonly kind: "repeated";
1982
+ readonly countFrom: "smartArts";
1983
+ };
1984
+ }, {
1985
+ readonly path: "ppt/diagrams/layout${i}.xml";
1986
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml";
1987
+ readonly presence: {
1988
+ readonly kind: "repeated";
1989
+ readonly countFrom: "smartArts";
1990
+ };
1991
+ }, {
1992
+ readonly path: "ppt/diagrams/quickStyle${i}.xml";
1993
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml";
1994
+ readonly presence: {
1995
+ readonly kind: "repeated";
1996
+ readonly countFrom: "smartArts";
1997
+ };
1998
+ }, {
1999
+ readonly path: "ppt/diagrams/colors${i}.xml";
2000
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml";
2001
+ readonly presence: {
2002
+ readonly kind: "repeated";
2003
+ readonly countFrom: "smartArts";
2004
+ };
2005
+ }, {
2006
+ readonly path: "ppt/diagrams/drawing${i}.xml";
2007
+ readonly contentType: "application/vnd.ms-office.drawingml.diagramDrawing+xml";
2008
+ readonly presence: {
2009
+ readonly kind: "repeated";
2010
+ readonly countFrom: "smartArts";
2011
+ };
2012
+ }, {
2013
+ readonly path: "ppt/slideSyncPr/slideSyncPr${i}.xml";
2014
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slideSyncProperties+xml";
2015
+ readonly presence: {
2016
+ readonly kind: "repeated";
2017
+ readonly countFrom: "slides with slideSync";
2018
+ };
2019
+ }];
2020
+ };
2021
+ declare const XLSX_PARTS: {
2022
+ readonly format: "xlsx";
2023
+ readonly orphanWhitelist: readonly ["xl/media/", "xl/embeddings/", "_rels/", "xl/_rels/", "xl/worksheets/_rels/", "xl/chartsheets/_rels/", "xl/drawings/_rels/", "xl/pivotTables/_rels/", "xl/pivotCache/_rels/", "xl/externalLinks/_rels/", "docProps/", "[Content_Types].xml"];
2024
+ readonly parts: readonly [{
2025
+ readonly path: "[Content_Types].xml";
2026
+ readonly presence: {
2027
+ readonly kind: "always";
2028
+ };
2029
+ }, {
2030
+ readonly path: "_rels/.rels";
2031
+ readonly presence: {
2032
+ readonly kind: "always";
2033
+ };
2034
+ }, {
2035
+ readonly path: "xl/workbook.xml";
2036
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml";
2037
+ readonly presence: {
2038
+ readonly kind: "always";
2039
+ };
2040
+ }, {
2041
+ readonly path: "docProps/core.xml";
2042
+ readonly contentType: "application/vnd.openxmlformats-package.core-properties+xml";
2043
+ readonly presence: {
2044
+ readonly kind: "conditional";
2045
+ readonly flag: "freshCompile";
2046
+ };
2047
+ }, {
2048
+ readonly path: "docProps/app.xml";
2049
+ readonly contentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml";
2050
+ readonly presence: {
2051
+ readonly kind: "conditional";
2052
+ readonly flag: "freshCompile";
2053
+ };
2054
+ }, {
2055
+ readonly path: "xl/styles.xml";
2056
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml";
2057
+ readonly presence: {
2058
+ readonly kind: "conditional";
2059
+ readonly flag: "freshCompile";
2060
+ };
2061
+ }, {
2062
+ readonly path: "xl/theme/theme1.xml";
2063
+ readonly contentType: "application/vnd.openxmlformats-officedocument.theme+xml";
2064
+ readonly presence: {
2065
+ readonly kind: "conditional";
2066
+ readonly flag: "freshCompile";
2067
+ };
2068
+ }, {
2069
+ readonly path: "xl/sharedStrings.xml";
2070
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml";
2071
+ readonly presence: {
2072
+ readonly kind: "conditional";
2073
+ readonly flag: "sharedStrings.count > 0";
2074
+ };
2075
+ }, {
2076
+ readonly path: "xl/worksheets/sheet${i}.xml";
2077
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml";
2078
+ readonly presence: {
2079
+ readonly kind: "repeated";
2080
+ readonly countFrom: "worksheets.length";
2081
+ };
2082
+ }, {
2083
+ readonly path: "xl/chartsheets/sheet${i}.xml";
2084
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml";
2085
+ readonly presence: {
2086
+ readonly kind: "repeated";
2087
+ readonly countFrom: "chartsheets.length";
2088
+ };
2089
+ }, {
2090
+ readonly path: "xl/drawings/drawing${i}.xml";
2091
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawing+xml";
2092
+ readonly presence: {
2093
+ readonly kind: "conditional";
2094
+ readonly flag: "worksheet has drawing";
2095
+ };
2096
+ }, {
2097
+ readonly path: "xl/comments${i}.xml";
2098
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml";
2099
+ readonly presence: {
2100
+ readonly kind: "conditional";
2101
+ readonly flag: "worksheet.comments.length > 0";
2102
+ };
2103
+ }, {
2104
+ readonly path: "xl/drawings/vmlDrawing${i}.vml";
2105
+ readonly presence: {
2106
+ readonly kind: "conditional";
2107
+ readonly flag: "worksheet.comments (legacy VML)";
2108
+ };
2109
+ }, {
2110
+ readonly path: "xl/charts/chart${i}.xml";
2111
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
2112
+ readonly presence: {
2113
+ readonly kind: "repeated";
2114
+ readonly countFrom: "charts";
2115
+ };
2116
+ }, {
2117
+ readonly path: "xl/pivotTables/pivotTable${i}.xml";
2118
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml";
2119
+ readonly presence: {
2120
+ readonly kind: "repeated";
2121
+ readonly countFrom: "pivotTables";
2122
+ };
2123
+ }, {
2124
+ readonly path: "xl/pivotCache/pivotCacheDefinition${i}.xml";
2125
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml";
2126
+ readonly presence: {
2127
+ readonly kind: "repeated";
2128
+ readonly countFrom: "pivotCaches";
2129
+ };
2130
+ }, {
2131
+ readonly path: "xl/pivotCache/pivotCacheRecords${i}.xml";
2132
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml";
2133
+ readonly presence: {
2134
+ readonly kind: "repeated";
2135
+ readonly countFrom: "pivotCaches";
2136
+ };
2137
+ }, {
2138
+ readonly path: "xl/tables/table${i}.xml";
2139
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml";
2140
+ readonly presence: {
2141
+ readonly kind: "repeated";
2142
+ readonly countFrom: "tables";
2143
+ };
2144
+ }, {
2145
+ readonly path: "xl/externalLinks/externalLink${i}.xml";
2146
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml";
2147
+ readonly presence: {
2148
+ readonly kind: "repeated";
2149
+ readonly countFrom: "externalLinks.length";
2150
+ };
2151
+ }, {
2152
+ readonly path: "xl/calcChain.xml";
2153
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml";
2154
+ readonly presence: {
2155
+ readonly kind: "conditional";
2156
+ readonly flag: "any formula cell";
2157
+ };
2158
+ }];
2159
+ };
2160
+ declare const PART_REGISTRIES: Record<PackagePartRegistry["format"], PackagePartRegistry>;
2161
+ //#endregion
2162
+ //#region src/opc/opc-consistency.d.ts
2163
+ type OpcSeverity = "error" | "warn";
2164
+ type OpcCode = "O1" | "O2" | "O3" | "O5" | "O6" | "O7";
2165
+ interface OpcIssue {
2166
+ code: OpcCode;
2167
+ severity: OpcSeverity;
2168
+ /** Path of the offending part, `.rels`, or Override `PartName`. */
2169
+ part: string;
2170
+ message: string;
2171
+ }
2172
+ /**
2173
+ * Validate OPC consistency of an unzipped package.
2174
+ *
2175
+ * @param entries ZIP path → decoded XML/binary text. Binary parts (media,
2176
+ * fonts) are never parsed here — only their presence matters.
2177
+ * @param registry Declarative part expectations for the package format.
2178
+ * @returns Issues sorted by code then part. Empty array = consistent.
2179
+ */
2180
+ declare function validateOpcConsistency(entries: ReadonlyMap<string, string>, registry: PackagePartRegistry): OpcIssue[];
2181
+ declare function summarizeOpcIssues(issues: readonly OpcIssue[]): {
2182
+ errors: number;
2183
+ warnings: number;
2184
+ };
2185
+ //#endregion
2186
+ //#region src/opc/content-type-overrides.d.ts
2187
+ interface ContentTypeOverrideEntry {
2188
+ partName: string;
2189
+ contentType: string;
2190
+ }
2191
+ /**
2192
+ * Derive [Content_Types].xml Override entries for every registry part present
2193
+ * under `facts`. The `facts` keys mirror the registry's `flag` / `countFrom`
2194
+ * tokens: a boolean for `conditional` parts, a count for `repeated` parts.
2195
+ * Order follows `registry.parts`; OPC does not mandate Override order.
2196
+ */
2197
+ declare function buildContentTypeOverrides(registry: PackagePartRegistry, facts: ReadonlyMap<string, boolean | number>): ContentTypeOverrideEntry[];
2198
+ //#endregion
1586
2199
  //#region src/util/compile.d.ts
1587
2200
  /**
1588
2201
  * Convert a mapping of XML files + overrides + media into a Zippable structure.
@@ -1617,6 +2230,12 @@ declare const convertInchesToTwip: (inches: number) => number;
1617
2230
  declare const convertPixelsToEmu: (pixels: number) => number;
1618
2231
  /**
1619
2232
  * Converts EMU to pixels (96 DPI).
2233
+ *
2234
+ * Returns a possibly fractional (sub-pixel) value. The integer rounding that
2235
+ * lived here before permanently discarded sub-pixel precision, which made an
2236
+ * EMU → pixel → EMU round-trip lossy (e.g. 5521960 EMU → 580 px → 5524500 EMU).
2237
+ * Keeping the fraction lets convertPixelsToEmu restore the exact original EMU.
2238
+ * Callers needing an integer pixel for display should Math.round the result.
1620
2239
  */
1621
2240
  declare const convertEmuToPixels: (emus: number) => number;
1622
2241
  /**
@@ -1637,17 +2256,17 @@ declare const convertPointsToEmu: (points: number) => number;
1637
2256
  declare const convertEmuToPoints: (emus: number) => number;
1638
2257
  /** A rectangular position in pixels. */
1639
2258
  interface PixelPosition {
1640
- readonly x: number;
1641
- readonly y: number;
1642
- readonly width: number;
1643
- readonly height: number;
2259
+ x: number;
2260
+ y: number;
2261
+ width: number;
2262
+ height: number;
1644
2263
  }
1645
2264
  /** An EMU-based rectangular position. */
1646
2265
  interface EmuPosition {
1647
- readonly x: number;
1648
- readonly y: number;
1649
- readonly cx: number;
1650
- readonly cy: number;
2266
+ x: number;
2267
+ y: number;
2268
+ cx: number;
2269
+ cy: number;
1651
2270
  }
1652
2271
  /**
1653
2272
  * Converts a pixel-based position to EMU coordinates.
@@ -3329,7 +3948,7 @@ declare const PathFillMode: {
3329
3948
  *
3330
3949
  * Coordinates can be absolute values or references to geometry guide names.
3331
3950
  */
3332
- interface AdjPoint {
3951
+ interface AdjustPoint {
3333
3952
  /** X coordinate (absolute value or guide name) */
3334
3953
  x: string;
3335
3954
  /** Y coordinate (absolute value or guide name) */
@@ -3338,12 +3957,12 @@ interface AdjPoint {
3338
3957
  /** Move-to path command (CT_Path2DMoveTo). */
3339
3958
  interface PathMoveTo {
3340
3959
  command: "moveTo";
3341
- point: AdjPoint;
3960
+ point: AdjustPoint;
3342
3961
  }
3343
3962
  /** Line-to path command (CT_Path2DLineTo). */
3344
3963
  interface PathLineTo {
3345
3964
  command: "lineTo";
3346
- point: AdjPoint;
3965
+ point: AdjustPoint;
3347
3966
  }
3348
3967
  /** Arc-to path command (CT_Path2DArcTo). */
3349
3968
  interface PathArcTo {
@@ -3356,12 +3975,12 @@ interface PathArcTo {
3356
3975
  /** Quadratic Bezier-to path command (CT_Path2DQuadBezierTo). */
3357
3976
  interface PathQuadBezTo {
3358
3977
  command: "quadBezTo";
3359
- points: readonly [AdjPoint, AdjPoint];
3978
+ points: readonly [AdjustPoint, AdjustPoint];
3360
3979
  }
3361
3980
  /** Cubic Bezier-to path command (CT_Path2DCubicBezierTo). */
3362
3981
  interface PathCubicBezTo {
3363
3982
  command: "cubicBezTo";
3364
- points: readonly [AdjPoint, AdjPoint, AdjPoint];
3983
+ points: readonly [AdjustPoint, AdjustPoint, AdjustPoint];
3365
3984
  }
3366
3985
  /** Close path command (CT_Path2DClose). */
3367
3986
  interface PathClose {
@@ -3511,7 +4130,7 @@ interface CustomGeometryOptions {
3511
4130
  /** Connection sites (a:cxnLst) */
3512
4131
  connectionSites?: readonly ConnectionSite[];
3513
4132
  /** Text insertion rectangle (a:rect) */
3514
- textRect?: GeomRect;
4133
+ textRectangle?: GeomRect;
3515
4134
  /** Path definitions (a:pathLst) — required */
3516
4135
  pathList: readonly PathOptions[];
3517
4136
  }
@@ -3531,7 +4150,7 @@ interface CustomGeometryOptions {
3531
4150
  * { command: "close" },
3532
4151
  * ],
3533
4152
  * }],
3534
- * textRect: { left: "2000000", top: "2000000", right: "8000000", bottom: "8000000" },
4153
+ * textRectangle: { left: "2000000", top: "2000000", right: "8000000", bottom: "8000000" },
3535
4154
  * });
3536
4155
  * ```
3537
4156
  */
@@ -3607,7 +4226,7 @@ interface BlipFillOptions {
3607
4226
  /** Image adjustment effects (brightness, contrast, grayscale, etc.) */
3608
4227
  blipEffects?: BlipEffectsOptions;
3609
4228
  /** Source rectangle for cropping */
3610
- srcRect?: SourceRectangleOptions;
4229
+ sourceRectangle?: SourceRectangleOptions;
3611
4230
  /** Tile fill mode (if omitted, defaults to stretch) */
3612
4231
  tile?: TileOptions;
3613
4232
  }
@@ -3775,7 +4394,7 @@ interface TableTextStyleOptions {
3775
4394
  /** Italic style */
3776
4395
  italic?: OnOffStyleType;
3777
4396
  /** Font reference (themeable) */
3778
- fontRef?: StyleMatrixReferenceOptions;
4397
+ fontReference?: StyleMatrixReferenceOptions;
3779
4398
  /** Color element */
3780
4399
  color?: string;
3781
4400
  }
@@ -3783,7 +4402,7 @@ interface TableCellStyleOptions {
3783
4402
  /** Cell borders */
3784
4403
  borders?: TableCellBorderOptions;
3785
4404
  /** Fill reference (themeable) */
3786
- fillRef?: StyleMatrixReferenceOptions;
4405
+ fillReference?: StyleMatrixReferenceOptions;
3787
4406
  /** Direct fill */
3788
4407
  fill?: string;
3789
4408
  }
@@ -3800,8 +4419,8 @@ interface ThemeableLineStyleOptions {
3800
4419
  width?: number;
3801
4420
  /** Fill color component */
3802
4421
  color?: string;
3803
- /** Line reference index into theme style matrix */
3804
- lineRefIdx?: number;
4422
+ /** Line reference (a:lnRef) into the theme style matrix */
4423
+ lineReference?: StyleMatrixReferenceOptions;
3805
4424
  }
3806
4425
  interface StyleMatrixReferenceOptions {
3807
4426
  /** Index into the theme style matrix */
@@ -3884,44 +4503,44 @@ declare function createGroupLocking(opts: GroupLockingOptions): string;
3884
4503
  declare function createGraphicFrameLocking(opts: GraphicFrameLockingOptions): string;
3885
4504
  //#endregion
3886
4505
  //#region src/drawingml/diagram/layout-vars.d.ts
3887
- interface AdjOptions {
4506
+ interface AdjustOptions {
3888
4507
  /** 1-based index (required) */
3889
4508
  idx: number;
3890
4509
  /** Adjustment value (required) */
3891
4510
  val: number;
3892
4511
  }
3893
4512
  /** Creates a dgm:adj element. */
3894
- declare const createAdj: (options: AdjOptions) => string;
3895
- declare const AnimLevelValue: {
4513
+ declare const createAdjust: (options: AdjustOptions) => string;
4514
+ declare const AnimationLevelValue: {
3896
4515
  readonly NONE: "none";
3897
4516
  readonly LEVEL: "lvl";
3898
4517
  readonly CENTER: "ctr";
3899
4518
  };
3900
- interface AnimLvlOptions {
3901
- val?: (typeof AnimLevelValue)[keyof typeof AnimLevelValue];
4519
+ interface AnimationLevelOptions {
4520
+ val?: (typeof AnimationLevelValue)[keyof typeof AnimationLevelValue];
3902
4521
  }
3903
4522
  /** Creates a dgm:animLvl element. */
3904
- declare const createAnimLvl: (options?: AnimLvlOptions) => string;
3905
- declare const AnimOneValue: {
4523
+ declare const createAnimationLevel: (options?: AnimationLevelOptions) => string;
4524
+ declare const AnimateOneByOneValue: {
3906
4525
  readonly NONE: "none";
3907
4526
  readonly ONE: "one";
3908
4527
  readonly BRANCH: "branch";
3909
4528
  };
3910
- interface AnimOneOptions {
3911
- val?: (typeof AnimOneValue)[keyof typeof AnimOneValue];
4529
+ interface AnimateOneByOneOptions {
4530
+ val?: (typeof AnimateOneByOneValue)[keyof typeof AnimateOneByOneValue];
3912
4531
  }
3913
4532
  /** Creates a dgm:animOne element. */
3914
- declare const createAnimOne: (options?: AnimOneOptions) => string;
3915
- interface ChMaxOptions {
4533
+ declare const createAnimateOneByOne: (options?: AnimateOneByOneOptions) => string;
4534
+ interface MaxChildrenOptions {
3916
4535
  val?: number;
3917
4536
  }
3918
4537
  /** Creates a dgm:chMax element. */
3919
- declare const createChMax: (options?: ChMaxOptions) => string;
3920
- interface ChPrefOptions {
4538
+ declare const createMaxChildren: (options?: MaxChildrenOptions) => string;
4539
+ interface PreferredChildrenOptions {
3921
4540
  val?: number;
3922
4541
  }
3923
4542
  /** Creates a dgm:chPref element. */
3924
- declare const createChPref: (options?: ChPrefOptions) => string;
4543
+ declare const createPreferredChildren: (options?: PreferredChildrenOptions) => string;
3925
4544
  interface OrgChartOptions {
3926
4545
  val?: boolean;
3927
4546
  }
@@ -3939,12 +4558,12 @@ interface HierBranchOptions {
3939
4558
  }
3940
4559
  /** Creates a dgm:hierBranch element. */
3941
4560
  declare const createHierBranch: (options?: HierBranchOptions) => string;
3942
- interface PresLayoutVarsOptions {
4561
+ interface PresentationLayoutVariablesOptions {
3943
4562
  orgChart?: OrgChartOptions;
3944
- chMax?: ChMaxOptions;
3945
- chPref?: ChPrefOptions;
3946
- animOne?: AnimOneOptions;
3947
- animLvl?: AnimLvlOptions;
4563
+ maxChildren?: MaxChildrenOptions;
4564
+ preferredChildren?: PreferredChildrenOptions;
4565
+ animateOneByOne?: AnimateOneByOneOptions;
4566
+ animationLevel?: AnimationLevelOptions;
3948
4567
  hierBranch?: HierBranchOptions;
3949
4568
  }
3950
4569
  /**
@@ -3967,12 +4586,12 @@ interface PresLayoutVarsOptions {
3967
4586
  * </xsd:complexType>
3968
4587
  * ```
3969
4588
  */
3970
- declare const createPresLayoutVars: (options?: PresLayoutVarsOptions) => string;
3971
- interface AdjLstOptions {
3972
- adj?: readonly AdjOptions[];
4589
+ declare const createPresentationLayoutVariables: (options?: PresentationLayoutVariablesOptions) => string;
4590
+ interface AdjustListOptions {
4591
+ adjustments?: readonly AdjustOptions[];
3973
4592
  }
3974
4593
  /** Creates a dgm:adjLst element containing dgm:adj children. */
3975
- declare const createAdjLst: (options?: AdjLstOptions) => string;
4594
+ declare const createAdjustList: (options?: AdjustListOptions) => string;
3976
4595
  //#endregion
3977
4596
  //#region src/drawingml/diagram/headers.d.ts
3978
4597
  interface DiagramNameOptions {
@@ -3987,7 +4606,7 @@ interface DiagramCategoryOptions {
3987
4606
  type: string;
3988
4607
  pri: number;
3989
4608
  }
3990
- interface ColorsDefHdrOptions {
4609
+ interface ColorsDefinitionHeaderOptions {
3991
4610
  uniqueId: string;
3992
4611
  minVer?: string;
3993
4612
  resId?: number;
@@ -4013,13 +4632,13 @@ interface ColorsDefHdrOptions {
4013
4632
  * </xsd:complexType>
4014
4633
  * ```
4015
4634
  */
4016
- declare const createColorsDefHdr: (options: ColorsDefHdrOptions) => string;
4017
- interface ColorsDefHdrLstOptions {
4018
- headers?: readonly ColorsDefHdrOptions[];
4635
+ declare const createColorsDefinitionHeader: (options: ColorsDefinitionHeaderOptions) => string;
4636
+ interface ColorsDefinitionHeaderListOptions {
4637
+ headers?: readonly ColorsDefinitionHeaderOptions[];
4019
4638
  }
4020
4639
  /** Creates a dgm:colorsDefHdrLst element. */
4021
- declare const createColorsDefHdrLst: (options?: ColorsDefHdrLstOptions) => string;
4022
- interface LayoutDefHdrOptions {
4640
+ declare const createColorsDefinitionHeaderList: (options?: ColorsDefinitionHeaderListOptions) => string;
4641
+ interface LayoutDefinitionHeaderOptions {
4023
4642
  uniqueId: string;
4024
4643
  minVer?: string;
4025
4644
  defStyle?: string;
@@ -4047,13 +4666,13 @@ interface LayoutDefHdrOptions {
4047
4666
  * </xsd:complexType>
4048
4667
  * ```
4049
4668
  */
4050
- declare const createLayoutDefHdr: (options: LayoutDefHdrOptions) => string;
4051
- interface LayoutDefHdrLstOptions {
4052
- headers?: readonly LayoutDefHdrOptions[];
4669
+ declare const createLayoutDefinitionHeader: (options: LayoutDefinitionHeaderOptions) => string;
4670
+ interface LayoutDefinitionHeaderListOptions {
4671
+ headers?: readonly LayoutDefinitionHeaderOptions[];
4053
4672
  }
4054
4673
  /** Creates a dgm:layoutDefHdrLst element. */
4055
- declare const createLayoutDefHdrLst: (options?: LayoutDefHdrLstOptions) => string;
4056
- interface StyleDefHdrOptions {
4674
+ declare const createLayoutDefinitionHeaderList: (options?: LayoutDefinitionHeaderListOptions) => string;
4675
+ interface StyleDefinitionHeaderOptions {
4057
4676
  uniqueId: string;
4058
4677
  minVer?: string;
4059
4678
  resId?: number;
@@ -4079,12 +4698,12 @@ interface StyleDefHdrOptions {
4079
4698
  * </xsd:complexType>
4080
4699
  * ```
4081
4700
  */
4082
- declare const createStyleDefHdr: (options: StyleDefHdrOptions) => string;
4083
- interface StyleDefHdrLstOptions {
4084
- headers?: readonly StyleDefHdrOptions[];
4701
+ declare const createStyleDefinitionHeader: (options: StyleDefinitionHeaderOptions) => string;
4702
+ interface StyleDefinitionHeaderListOptions {
4703
+ headers?: readonly StyleDefinitionHeaderOptions[];
4085
4704
  }
4086
4705
  /** Creates a dgm:styleDefHdrLst element. */
4087
- declare const createStyleDefHdrLst: (options?: StyleDefHdrLstOptions) => string;
4706
+ declare const createStyleDefinitionHeaderList: (options?: StyleDefinitionHeaderListOptions) => string;
4088
4707
  //#endregion
4089
4708
  //#region src/drawingml/diagram/diagram-style.d.ts
4090
4709
  declare const StyleMatrixIndex: {
@@ -4097,15 +4716,25 @@ declare const FontCollectionIndex: {
4097
4716
  readonly MINOR: "minor";
4098
4717
  readonly NONE: "none";
4099
4718
  };
4719
+ /** Reference into the theme style matrix (a:lnRef/fillRef/effectRef). */
4720
+ interface DiagramStyleReferenceOptions {
4721
+ /** Index into the theme style matrix (a:*Ref @idx) */
4722
+ idx: number;
4723
+ }
4724
+ /** Font reference (a:fontRef) — idx is a FontCollectionIndex (major/minor/none). */
4725
+ interface DiagramFontReferenceOptions {
4726
+ /** Font collection index (FontCollectionIndex.MAJOR/MINOR/NONE) */
4727
+ idx: string;
4728
+ }
4100
4729
  interface DiagramStyleOptions {
4101
- /** Line style matrix reference index */
4102
- lnIdx?: number;
4103
- /** Fill style matrix reference index */
4104
- fillIdx?: number;
4105
- /** Effect style matrix reference index */
4106
- effectIdx?: number;
4107
- /** Font reference collection index */
4108
- fontIdx?: string;
4730
+ /** Line reference (a:lnRef) */
4731
+ lineReference?: DiagramStyleReferenceOptions;
4732
+ /** Fill reference (a:fillRef) */
4733
+ fillReference?: DiagramStyleReferenceOptions;
4734
+ /** Effect reference (a:effectRef) */
4735
+ effectReference?: DiagramStyleReferenceOptions;
4736
+ /** Font reference (a:fontRef) */
4737
+ fontReference?: DiagramFontReferenceOptions;
4109
4738
  }
4110
4739
  /**
4111
4740
  * Creates a dgm:style element (a:CT_ShapeStyle).
@@ -4140,21 +4769,21 @@ interface ColorListOptions {
4140
4769
  /** Colors (EG_ColorChoice items) */
4141
4770
  colors?: readonly SolidFillOptions[];
4142
4771
  }
4143
- declare const createFillClrLst: (options?: ColorListOptions) => string;
4144
- declare const createLinClrLst: (options?: ColorListOptions) => string;
4145
- declare const createEffectClrLst: (options?: ColorListOptions) => string;
4146
- declare const createTxFillClrLst: (options?: ColorListOptions) => string;
4147
- declare const createTxLinClrLst: (options?: ColorListOptions) => string;
4148
- declare const createTxEffectClrLst: (options?: ColorListOptions) => string;
4149
- interface DiagramStyleLblOptions {
4772
+ declare const createFillColorList: (options?: ColorListOptions) => string;
4773
+ declare const createLineColorList: (options?: ColorListOptions) => string;
4774
+ declare const createEffectColorList: (options?: ColorListOptions) => string;
4775
+ declare const createTextFillColorList: (options?: ColorListOptions) => string;
4776
+ declare const createTextLineColorList: (options?: ColorListOptions) => string;
4777
+ declare const createTextEffectColorList: (options?: ColorListOptions) => string;
4778
+ interface DiagramStyleLabelOptions {
4150
4779
  /** Label name (required) */
4151
4780
  name: string;
4152
- fillClrLst?: ColorListOptions;
4153
- linClrLst?: ColorListOptions;
4154
- effectClrLst?: ColorListOptions;
4155
- txFillClrLst?: ColorListOptions;
4156
- txLinClrLst?: ColorListOptions;
4157
- txEffectClrLst?: ColorListOptions;
4781
+ fillColorList?: ColorListOptions;
4782
+ lineColorList?: ColorListOptions;
4783
+ effectColorList?: ColorListOptions;
4784
+ textFillColorList?: ColorListOptions;
4785
+ textLineColorList?: ColorListOptions;
4786
+ textEffectColorList?: ColorListOptions;
4158
4787
  }
4159
4788
  /**
4160
4789
  * Creates a dgm:styleLbl element (CT_StyleLabel or CT_CTStyleLabel).
@@ -4189,7 +4818,7 @@ interface DiagramStyleLblOptions {
4189
4818
  * </xsd:complexType>
4190
4819
  * ```
4191
4820
  */
4192
- declare const createStyleLbl: (options: DiagramStyleLblOptions) => string;
4821
+ declare const createStyleLabel: (options: DiagramStyleLabelOptions) => string;
4193
4822
  //#endregion
4194
4823
  //#region src/drawingml/diagram/diagram-rel.d.ts
4195
4824
  /**
@@ -4199,7 +4828,7 @@ declare const createStyleLbl: (options: DiagramStyleLblOptions) => string;
4199
4828
  *
4200
4829
  * @module
4201
4830
  */
4202
- interface DiagramRelIdsOptions {
4831
+ interface DiagramRelationshipIdsOptions {
4203
4832
  /** Relationship to data model part */
4204
4833
  dm: string;
4205
4834
  /** Relationship to layout definition part */
@@ -4222,10 +4851,10 @@ interface DiagramRelIdsOptions {
4222
4851
  * </xsd:complexType>
4223
4852
  * ```
4224
4853
  */
4225
- declare const createDiagramRelIds: (options: DiagramRelIdsOptions) => string;
4854
+ declare const createDiagramRelationshipIds: (options: DiagramRelationshipIdsOptions) => string;
4226
4855
  //#endregion
4227
4856
  //#region src/drawingml/diagram/diagram-props.d.ts
4228
- interface DiagramExtLstOptions {
4857
+ interface DiagramExtensionListOptions {
4229
4858
  /** Extension URIs */
4230
4859
  extensions?: readonly DiagramExtensionOptions[];
4231
4860
  }
@@ -4238,14 +4867,14 @@ interface DiagramExtensionOptions {
4238
4867
  *
4239
4868
  * Generic extension list pattern used across OOXML.
4240
4869
  */
4241
- declare const createDiagramExtLst: (options?: DiagramExtLstOptions) => string;
4870
+ declare const createDiagramExtensionList: (options?: DiagramExtensionListOptions) => string;
4242
4871
  /**
4243
4872
  * Creates a dgm:sp3d element wrapping a:CT_Shape3D.
4244
4873
  *
4245
4874
  * Delegates to the shared createShape3D factory but wraps in dgm: namespace context.
4246
4875
  */
4247
- declare const createDiagramSp3d: (options: Shape3DOptions) => string;
4248
- interface DiagramTextPropsOptions {
4876
+ declare const createDiagramShape3D: (options: Shape3DOptions) => string;
4877
+ interface DiagramTextPropertiesOptions {
4249
4878
  /** 3D text properties (flat text, no 3D) — empty element */
4250
4879
  flat?: boolean;
4251
4880
  }
@@ -4261,7 +4890,7 @@ interface DiagramTextPropsOptions {
4261
4890
  * </xsd:complexType>
4262
4891
  * ```
4263
4892
  */
4264
- declare const createDiagramTxPr: (_options?: DiagramTextPropsOptions) => string;
4893
+ declare const createDiagramTextProperties: (_options?: DiagramTextPropertiesOptions) => string;
4265
4894
  //#endregion
4266
4895
  //#region src/drawingml/color/color-descriptors.d.ts
4267
4896
  declare const rgbColorDesc: CustomDescriptor<RgbColorOptions>;
@@ -4323,9 +4952,9 @@ declare const blipFillDesc: CustomDescriptor<BlipFillOptions & {
4323
4952
  }>;
4324
4953
  //#endregion
4325
4954
  //#region src/drawingml/diagram/diagram-descriptors.d.ts
4326
- declare const diagramRelIdsDesc: CustomDescriptor<DiagramRelIdsOptions>;
4955
+ declare const diagramRelationshipIdsDesc: CustomDescriptor<DiagramRelationshipIdsOptions>;
4327
4956
  declare const diagramStyleDesc: CustomDescriptor<DiagramStyleOptions>;
4328
- declare const presLayoutVarsDesc: CustomDescriptor<PresLayoutVarsOptions>;
4329
- declare const diagramExtLstDesc: CustomDescriptor<DiagramExtLstOptions>;
4957
+ declare const presentationLayoutVariablesDesc: CustomDescriptor<PresentationLayoutVariablesOptions>;
4958
+ declare const diagramExtensionListDesc: CustomDescriptor<DiagramExtensionListOptions>;
4330
4959
  //#endregion
4331
- export { createLinClrLst as $, SchemeColor as $a, toUint8Array as $i, calculateEffectExtent as $n, xsdLineCap as $r, TableStyleListOptions as $t, rgbColorDesc as A, GradientFillOptions as Aa, convertPointsToEmu as Ai, stringifyAdjustmentValues as An, createCustomDash as Ar, PresLayoutVarsOptions as At, createDiagramTxPr as B, TileAlignment as Ba, CompileFn as Bi, LightRigOptions as Bn, hasPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, createNoFill as Ca, convertEmuToInches as Ci, PathCommand as Cn, createOutline as Cr, AnimOneOptions as Ct, hslColorDesc as D, GradientStopOptions as Da, convertInchesToTwip as Di, PresetGeometryOptions as Dn, LineEndWidth as Dr, HierBranchOptions as Dt, getColorDescriptor as E, FillOptions as Ea, convertInchesToEmu as Ei, createCustomGeometry as En, LineEndType as Er, ChPrefOptions as Et, DiagramExtLstOptions as F, PathShadeType as Fa, convertUniversalMeasureToTwip as Fi, BevelPresetType as Fn, findAndReplaceImagePlaceholders as Fr, createChMax as Ft, DiagramStyleLblOptions as G, BlipEffectsOptions as Ga, XmlifyedFile as Gi, createScene3D as Gn, replaceMediaPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelIds as H, createTileInfo as Ha, DataType as Hi, Scene3DOptions as Hn, replaceChartPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, RelativeRect as Ia, parseUniversalMeasure as Ii, createBevel as In, formatId as Ir, createChPref as It, HueDirection as J, createColorElement as Ja, ZipOptions as Ji, EffectDagOptions as Jn, replaceVideoPlaceholders as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, createBlipEffects as Ka, ZIP_DEFLATE_LEVEL as Ki, createSoftEdgeEffect as Kn, replaceNumberingPlaceholders as Kr, createPictureLocking as Kt, DiagramTextPropsOptions as L, TileFlipMode as La, compileMapping as Li, createBottomBevel as Ln, getMediaRefs as Lr, createHierBranch as Lt, schemeColorDesc as M, GradientStop as Ma, convertToEmu as Mi, Shape3DOptions as Mn, SmartArtRelOptions as Mr, createAdjLst as Mt, solidFillDesc as N, LinearShadeOptions as Na, convertToTwip as Ni, createShape3D as Nn, addSmartArtRelationships as Nr, createAnimLvl as Nt, parseColorChoice as O, buildFill as Oa, convertMillimetersToTwip as Oi, stringifyPresetGeometry as On, createLineEnd as Or, HierBranchStyle as Ot, systemColorDesc as P, PathShadeOptions as Pa, convertUniversalMeasureToEmu as Pi, BevelOptions as Pn, collectPlaceholderKeys as Pr, createAnimOne as Pt, createFillClrLst as Q, createSystemColor as Qa, strFromU8$1 as Qi, EffectListOptions as Qn, xsdEffectContainer as Qr, TablePartStyleOptions as Qt, createDiagramExtLst as R, createGradientFill as Ra, ParsedArchive as Ri, BackdropOptions as Rn, getReferencedMedia as Rr, createOrgChart as Rt, outlineDesc as S, createPatternFill as Sa, PixelPosition as Si, GeomRect as Sn, PresetDash as Sr, AnimLvlOptions as St, patternFillDesc as T, BlipFillMediaData as Ta, convertEmuToPoints as Ti, PathOptions as Tn, LineEndOptions as Tr, ChMaxOptions as Tt, ColorListOptions as U, SourceRectangleOptions as Ua, Packer as Ui, SphereCoords as Un, replaceHyperlinkPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelIdsOptions as V, TileOptions as Va, CompressionOptions as Vi, Point3D as Vn, replaceAllPlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, createSourceRectangle as Wa, PackerOptions as Wi, Vector3D as Wn, replaceImagePlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, SystemColor as Xa, createPacker as Xi, BlurEffectOptions as Xn, xsdBlendMode as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, createSolidFill as Ya, Zippable$1 as Yi, createEffectDag as Yn, invertMap as Yr, StyleMatrixReferenceOptions as Yt, createEffectClrLst as Z, SystemColorOptions as Za, createZipStream as Zi, EffectExtent as Zn, xsdCompoundLine as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, TargetModeType as _a, uniqueUuid as _i, createBlipFill as _n, LineCap as _r, createStyleDefHdr as _t, blipDesc as a, OutputType as aa, xsdPresetShadow as ai, createTableStyleList as an, createRgbColor as ao, createPresetShadowEffect as ar, ColorsDefHdrOptions as at, shapeLockingDesc as b, PatternFillOptions as ba, randomBytes as bi, ConnectionSite as bn, OutlineOptions as br, AdjOptions as bt, stretchDesc as c, buildCorePropertiesXml as ca, xsdTextAlign as ci, MediaTransformation as cn, createPresetColor as co, createOuterShadowEffect as cr, DiagramNameOptions as ct, scene3DDesc as d, DefaultAttributes as da, xsdUnderlineStyle as di, Transform2DOptions as dn, ColorTransformOptions as do, GlowEffectOptions as dr, StyleDefHdrLstOptions as dt, unzipSync$1 as ea, xsdLineEndSize as ei, TableStyleOptions as en, SchemeColorOptions as eo, createEffectList as er, createStyleLbl as et, shape3DDesc as f, OverrideAttributes as fa, xsdVerticalMergeRev as fi, createGroupTransform2D as fn, createColorTransforms as fo, createGlowEffect as fr, StyleDefHdrOptions as ft, presetGeometryDesc as g, Relationships as ga, uniqueNumericIdCreator as gi, BlipFillOptions as gn, CompoundLine as gr, createLayoutDefHdrLst as gt, customGeometryDesc as h, RelationshipType as ha, uniqueId as hi, createExtentionList as hn, createFillOverlayEffect as hr, createLayoutDefHdr as ht, presLayoutVarsDesc as i, OutputByType as ia, xsdPenAlignment as ii, createTableStyle as in, RgbColorOptions as io, PresetShadowVal as ir, ColorsDefHdrLstOptions as it, scRgbColorDesc as j, GradientShadeOptions as ja, convertPositionToEmu as ji, PresetMaterialType as jn, IdFormat as jr, createAdj as jt, presetColorDesc as k, extractBlipFillMedia as ka, convertPixelsToEmu as ki, GeometryGuide as kn, DashStop as kr, OrgChartOptions as kt, tileDesc as l, buildCorePropertiesXmlString as la, xsdTextAnchor as li, createTransformation as ln, HslColorOptions as lo, InnerShadowEffectOptions as lr, LayoutDefHdrLstOptions as lt, transform2DDesc as m, createOverride as ma, hashedId as mi, stringifyStretch as mn, FillOverlayEffectOptions as mr, createColorsDefHdrLst as mt, diagramRelIdsDesc as n, zipSyncAndConvert as na, xsdPathFillMode as ni, TableTextStyleOptions as nn, ScRgbColorOptions as no, createReflectionEffect as nr, createTxFillClrLst as nt, blipFillDesc as o, convertOutput as oa, xsdRectAlignment as oi, parseTableStyleList as on, PresetColor as oo, OuterShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, createDefault as pa, UniqueNumericIdCreator as pi, createTransform2D as pn, BlendMode as pr, createColorsDefHdr as pt, FontCollectionIndex as q, SolidFillOptions as qa, ZIP_STORED_LEVEL as qi, EffectContainerType as qn, replaceSmartArtPlaceholders as qr, createShapeLocking as qt, diagramStyleDesc as r, OoxmlMimeType as ra, xsdPattern as ri, ThemeableLineStyleOptions as rn, createScRgbColor as ro, PresetShadowEffectOptions as rr, createTxLinClrLst as rt, sourceRectangleDesc as s, CoreProperties as sa, xsdStrikeStyle as si, MediaDataTransformation as sn, PresetColorOptions as so, RectAlignment as sr, DiagramDescriptionOptions as st, diagramExtLstDesc as t, zipAndConvert as ta, xsdMaterialType as ti, TableStyleRegion as tn, createSchemeColor as to, ReflectionEffectOptions as tr, createTxEffectClrLst as tt, bevelDesc as u, parseCorePropsElement as ua, xsdTextCaps as ui, GroupTransform2DOptions as un, createHslColor as uo, createInnerShadowEffect as ur, LayoutDefHdrOptions as ut, groupLockingDesc as v, APP_PROPS_XML as va, derivePasswordHash as vi, BlipOptions as vn, LineJoin as vr, createStyleDefHdrLst as vt, gradientFillDesc as w, BlipFillConfigOptions as wa, convertEmuToPixels as wi, PathFillMode as wn, LineEndLength as wr, AnimOneValue as wt, effectListDesc as x, PresetPattern as xa, EmuPosition as xi, CustomGeometryOptions as xn, PenAlignment as xr, AnimLevelValue as xt, pictureLockingDesc as y, createGroupFill as ya, hashPasswordAgile as yi, createBlip as yn, OutlineFillProperties as yr, AdjLstOptions as yt, createDiagramSp3d as z, createGradientStop as za, parseArchive as zi, CameraOptions as zn, getVideoRefs as zr, createPresLayoutVars as zt };
4960
+ export { createLineColorList as $, isBase64DataURL as $a, parseArchive as $i, calculateEffectExtent as $n, xsdLineCap as $r, TableStyleListOptions as $t, rgbColorDesc as A, TileFlipMode as Aa, convertPointsToEmu as Ai, stringifyAdjustmentValues as An, createCustomDash as Ar, PresentationLayoutVariablesOptions as At, createDiagramTextProperties as B, CompileFn as Ba, OpcCode as Bi, LightRigOptions as Bn, hasPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, GradientFillOptions as Ca, convertEmuToInches as Ci, PathCommand as Cn, PresetColor as Co, createOutline as Cr, AnimationLevelOptions as Ct, hslColorDesc as D, PathShadeOptions as Da, convertInchesToTwip as Di, PresetGeometryOptions as Dn, createHslColor as Do, LineEndWidth as Dr, MaxChildrenOptions as Dt, getColorDescriptor as E, LinearShadeOptions as Ea, convertInchesToEmu as Ei, createCustomGeometry as En, HslColorOptions as Eo, LineEndType as Er, HierBranchStyle as Et, DiagramExtensionListOptions as F, createTileInfo as Fa, convertUniversalMeasureToTwip as Fi, BevelPresetType as Fn, findAndReplaceImagePlaceholders as Fr, createHierBranch as Ft, DiagramStyleLabelOptions as G, XmlifyedFile as Ga, DOCX_PARTS as Gi, createScene3D as Gn, replaceMediaPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelationshipIds as H, DataType as Ha, OpcSeverity as Hi, Scene3DOptions as Hn, replaceChartPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, SourceRectangleOptions as Ia, parseUniversalMeasure as Ii, createBevel as In, formatId as Ir, createMaxChildren as It, HueDirection as J, ZipOptions as Ja, PackagePartRegistry as Ji, EffectDagOptions as Jn, replaceVideoPlaceholders as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, ZIP_DEFLATE_LEVEL as Ka, PART_REGISTRIES as Ki, createSoftEdgeEffect as Kn, replaceNumberingPlaceholders as Kr, createPictureLocking as Kt, DiagramTextPropertiesOptions as L, createSourceRectangle as La, compileMapping as Li, createBottomBevel as Ln, getMediaRefs as Lr, createOrgChart as Lt, schemeColorDesc as M, createGradientStop as Ma, convertToEmu as Mi, Shape3DOptions as Mn, SmartArtRelOptions as Mr, createAdjustList as Mt, solidFillDesc as N, TileAlignment as Na, convertToTwip as Ni, createShape3D as Nn, addSmartArtRelationships as Nr, createAnimateOneByOne as Nt, parseColorChoice as O, PathShadeType as Oa, convertMillimetersToTwip as Oi, stringifyPresetGeometry as On, ColorTransformOptions as Oo, createLineEnd as Or, OrgChartOptions as Ot, systemColorDesc as P, TileOptions as Pa, convertUniversalMeasureToEmu as Pi, BevelOptions as Pn, collectPlaceholderKeys as Pr, createAnimationLevel as Pt, createFillColorList as Q, decodeBase64 as Qa, ParsedArchive as Qi, EffectListOptions as Qn, xsdEffectContainer as Qr, TablePartStyleOptions as Qt, createDiagramExtensionList as R, BlipEffectsOptions as Ra, ContentTypeOverrideEntry as Ri, BackdropOptions as Rn, getReferencedMedia as Rr, createPreferredChildren as Rt, outlineDesc as S, extractBlipFillMedia as Sa, PixelPosition as Si, GeomRect as Sn, createRgbColor as So, PresetDash as Sr, AnimateOneByOneValue as St, patternFillDesc as T, GradientStop as Ta, convertEmuToPoints as Ti, PathOptions as Tn, createPresetColor as To, LineEndOptions as Tr, HierBranchOptions as Tt, ColorListOptions as U, Packer as Ua, summarizeOpcIssues as Ui, SphereCoords as Un, replaceHyperlinkPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelationshipIdsOptions as V, CompressionOptions as Va, OpcIssue as Vi, Point3D as Vn, replaceAllPlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, PackerOptions as Wa, validateOpcConsistency as Wi, Vector3D as Wn, replaceImagePlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, createPacker as Xa, PartPresence as Xi, BlurEffectOptions as Xn, xsdBlendMode as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, Zippable$1 as Ya, PartDef as Yi, createEffectDag as Yn, invertMap as Yr, StyleMatrixReferenceOptions as Yt, createEffectColorList as Z, createZipStream as Za, XLSX_PARTS as Zi, EffectExtent as Zn, xsdCompoundLine as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, BlipFillConfigOptions as _a, uniqueUuid as _i, createBlipFill as _n, SchemeColorOptions as _o, LineCap as _r, createStyleDefinitionHeader as _t, blipDesc as a, OverrideAttributes as aa, xsdPresetShadow as ai, createTableStyleList as an, zipSyncAndConvert as ao, createPresetShadowEffect as ar, ColorsDefinitionHeaderOptions as at, shapeLockingDesc as b, GradientStopOptions as ba, randomBytes as bi, ConnectionSite as bn, createScRgbColor as bo, OutlineOptions as br, AdjustOptions as bt, stretchDesc as c, RelationshipType as ca, xsdTextAlign as ci, MediaTransformation as cn, OutputType as co, createOuterShadowEffect as cr, DiagramNameOptions as ct, scene3DDesc as d, APP_PROPS_XML as da, xsdUnderlineStyle as di, Transform2DOptions as dn, createColorElement as do, GlowEffectOptions as dr, StyleDefinitionHeaderListOptions as dt, CoreProperties as ea, xsdLineEndSize as ei, TableStyleOptions as en, levelForMediaName as eo, createEffectList as er, createStyleLabel as et, shape3DDesc as f, createGroupFill as fa, xsdVerticalMergeRev as fi, createGroupTransform2D as fn, createSolidFill as fo, createGlowEffect as fr, StyleDefinitionHeaderOptions as ft, presetGeometryDesc as g, createNoFill as ga, uniqueNumericIdCreator as gi, BlipFillOptions as gn, SchemeColor as go, CompoundLine as gr, createLayoutDefinitionHeaderList as gt, customGeometryDesc as h, createPatternFill as ha, uniqueId as hi, createExtentionList as hn, createSystemColor as ho, createFillOverlayEffect as hr, createLayoutDefinitionHeader as ht, presentationLayoutVariablesDesc as i, DefaultAttributes as ia, xsdPenAlignment as ii, createTableStyle as in, zipAndConvert as io, PresetShadowVal as ir, ColorsDefinitionHeaderListOptions as it, scRgbColorDesc as j, createGradientFill as ja, convertPositionToEmu as ji, PresetMaterialType as jn, IdFormat as jr, createAdjust as jt, presetColorDesc as k, RelativeRect as ka, convertPixelsToEmu as ki, GeometryGuide as kn, createColorTransforms as ko, DashStop as kr, PreferredChildrenOptions as kt, tileDesc as l, Relationships as la, xsdTextAnchor as li, createTransformation as ln, convertOutput as lo, InnerShadowEffectOptions as lr, LayoutDefinitionHeaderListOptions as lt, transform2DDesc as m, PresetPattern as ma, hashedId as mi, stringifyStretch as mn, SystemColorOptions as mo, FillOverlayEffectOptions as mr, createColorsDefinitionHeaderList as mt, diagramRelationshipIdsDesc as n, buildCorePropertiesXmlString as na, xsdPathFillMode as ni, TableTextStyleOptions as nn, toUint8Array as no, createReflectionEffect as nr, createTextFillColorList as nt, blipFillDesc as o, createDefault as oa, xsdRectAlignment as oi, parseTableStyleList as on, OoxmlMimeType as oo, OuterShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, PatternFillOptions as pa, UniqueNumericIdCreator as pi, createTransform2D as pn, SystemColor as po, BlendMode as pr, createColorsDefinitionHeader as pt, FontCollectionIndex as q, ZIP_STORED_LEVEL as qa, PPTX_PARTS as qi, EffectContainerType as qn, replaceSmartArtPlaceholders as qr, createShapeLocking as qt, diagramStyleDesc as r, parseCorePropsElement as ra, xsdPattern as ri, ThemeableLineStyleOptions as rn, unzipSync$1 as ro, PresetShadowEffectOptions as rr, createTextLineColorList as rt, sourceRectangleDesc as s, createOverride as sa, xsdStrikeStyle as si, MediaDataTransformation as sn, OutputByType as so, RectAlignment as sr, DiagramDescriptionOptions as st, diagramExtensionListDesc as t, buildCorePropertiesXml as ta, xsdMaterialType as ti, TableStyleRegion as tn, strFromU8$1 as to, ReflectionEffectOptions as tr, createTextEffectColorList as tt, bevelDesc as u, TargetModeType as ua, xsdTextCaps as ui, GroupTransform2DOptions as un, SolidFillOptions as uo, createInnerShadowEffect as ur, LayoutDefinitionHeaderOptions as ut, groupLockingDesc as v, BlipFillMediaData as va, derivePasswordHash as vi, BlipOptions as vn, createSchemeColor as vo, LineJoin as vr, createStyleDefinitionHeaderList as vt, gradientFillDesc as w, GradientShadeOptions as wa, convertEmuToPixels as wi, PathFillMode as wn, PresetColorOptions as wo, LineEndLength as wr, AnimationLevelValue as wt, effectListDesc as x, buildFill as xa, EmuPosition as xi, CustomGeometryOptions as xn, RgbColorOptions as xo, PenAlignment as xr, AnimateOneByOneOptions as xt, pictureLockingDesc as y, FillOptions as ya, hashPasswordAgile as yi, createBlip as yn, ScRgbColorOptions as yo, OutlineFillProperties as yr, AdjustListOptions as yt, createDiagramShape3D as z, createBlipEffects as za, buildContentTypeOverrides as zi, CameraOptions as zn, getVideoRefs as zr, createPresentationLayoutVariables as zt };