@office-open/core 0.9.7 → 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
  */
@@ -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,161 +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
- /**
1459
- * Resolve the ZIP level for a media entry by file-name extension, matching MS
1460
- * Office: already-compressed raster formats → STORE (0), everything else →
1461
- * DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
1462
- * therefore applies only to compressible formats, never forcing DEFLATE onto
1463
- * pre-compressed assets.
1464
- */
1465
- declare const levelForMediaName: (fileName: string, mediaLevel: number) => number;
1466
- /** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
1467
- interface CompressionOptions {
1468
- /** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
1469
- xml?: number;
1470
- /**
1471
- * DEFLATE level for compressible media (EMF/WMF/BMP/TIFF/…). Already-compressed
1472
- * formats (PNG/JPEG/GIF) are always STOREd regardless, matching MS Office.
1473
- * Default: 1 (SuperFast).
1474
- */
1475
- media?: number;
1476
- }
1477
- /** Options for Packer output methods. */
1478
- interface PackerOptions<T extends OutputType = "nodebuffer"> {
1479
- /** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
1480
- type?: T;
1481
- /** Custom XML/ZIP file overrides. */
1482
- overrides?: XmlifyedFile[];
1483
- /** Compression levels for ZIP entries. */
1484
- compression?: CompressionOptions;
1485
- }
1486
- /**
1487
- * Asynchronously compress files and convert to the requested output format.
1488
- *
1489
- * Uses fflate Web Workers for non-blocking DEFLATE compression.
1490
- * XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
1491
- * split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
1492
- * are STOREd, everything else uses the `media` level (default SuperFast).
1493
- * Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
1494
- */
1495
- declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
1496
- /**
1497
- * Synchronously compress files and convert to the requested output format.
1498
- *
1499
- * Uses synchronous DEFLATE compression for maximum throughput.
1500
- * Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
1501
- */
1502
- declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
1503
- /**
1504
- * Create a `ReadableStream<Uint8Array>` from compressed file entries.
1505
- *
1506
- * Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
1507
- * `STORED` entries (media) pass through synchronously.
1508
- * Works in both Node.js and browsers (Web Streams API).
1509
- */
1510
- declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
1511
- /**
1512
- * Compile function provided by each package to convert a file object into a Zippable map.
1513
- */
1514
- type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
1515
- /**
1516
- * Packer interface returned by {@link createPacker}.
1517
- *
1518
- * Async methods use fflate Web Workers for non-blocking compression.
1519
- * Sync methods use synchronous compression for maximum throughput in
1520
- * CLI scripts and build tools.
1521
- */
1522
- interface Packer<TFile> {
1523
- /** Compile file to Zippable map (synchronous). */
1524
- compile: CompileFn<TFile>;
1525
- /** Generic async output — returns the requested OutputType. */
1526
- pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
1527
- /** Generic sync output — returns the requested OutputType. */
1528
- packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
1529
- /** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
1530
- toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
1531
- /** Sync → `Uint8Array`. */
1532
- toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
1533
- /** Async → `Promise<string>` (raw ZIP content as string). */
1534
- toString(file: TFile, options?: PackerOptions): Promise<string>;
1535
- /** Sync → `string`. */
1536
- toStringSync(file: TFile, options?: PackerOptions): string;
1537
- /** Async → `Promise<Buffer>` (Node.js). */
1538
- toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
1539
- /** Sync → `Buffer` (Node.js). */
1540
- toBufferSync(file: TFile, options?: PackerOptions): Buffer;
1541
- /** Async → `Promise<string>` (base64-encoded). */
1542
- toBase64(file: TFile, options?: PackerOptions): Promise<string>;
1543
- /** Sync → `string` (base64-encoded). */
1544
- toBase64Sync(file: TFile, options?: PackerOptions): string;
1545
- /** Async → `Promise<Blob>` (browser). */
1546
- toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
1547
- /** Sync → `Blob`. */
1548
- toBlobSync(file: TFile, options?: PackerOptions): Blob;
1549
- /** Async → `Promise<ArrayBuffer>`. */
1550
- toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
1551
- /** Sync → `ArrayBuffer`. */
1552
- toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
1553
- /** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
1554
- toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
1555
- }
1556
- /**
1557
- * Create a Packer object with all output format methods.
1558
- *
1559
- * Centralises the ZIP → convert pipeline and the streaming implementation
1560
- * so that each OOXML package only needs to provide a `compile` function and
1561
- * a MIME type.
1562
- */
1563
- declare const createPacker: <TFile>(options: {
1564
- readonly compile: CompileFn<TFile>;
1565
- readonly mimeType: string;
1566
- }) => Packer<TFile>;
1567
- //#endregion
1568
1583
  //#region src/opc/parser.d.ts
1569
1584
  /**
1570
1585
  * Parsed OOXML archive backed by an unzipped ZIP map.
@@ -1597,6 +1612,590 @@ declare class ParsedArchive {
1597
1612
  /** Parse an OOXML archive (.docx, .pptx, .xlsx) into a ParsedArchive. */
1598
1613
  declare function parseArchive(data: Uint8Array): ParsedArchive;
1599
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
1600
2199
  //#region src/util/compile.d.ts
1601
2200
  /**
1602
2201
  * Convert a mapping of XML files + overrides + media into a Zippable structure.
@@ -1657,17 +2256,17 @@ declare const convertPointsToEmu: (points: number) => number;
1657
2256
  declare const convertEmuToPoints: (emus: number) => number;
1658
2257
  /** A rectangular position in pixels. */
1659
2258
  interface PixelPosition {
1660
- readonly x: number;
1661
- readonly y: number;
1662
- readonly width: number;
1663
- readonly height: number;
2259
+ x: number;
2260
+ y: number;
2261
+ width: number;
2262
+ height: number;
1664
2263
  }
1665
2264
  /** An EMU-based rectangular position. */
1666
2265
  interface EmuPosition {
1667
- readonly x: number;
1668
- readonly y: number;
1669
- readonly cx: number;
1670
- readonly cy: number;
2266
+ x: number;
2267
+ y: number;
2268
+ cx: number;
2269
+ cy: number;
1671
2270
  }
1672
2271
  /**
1673
2272
  * Converts a pixel-based position to EMU coordinates.
@@ -3349,7 +3948,7 @@ declare const PathFillMode: {
3349
3948
  *
3350
3949
  * Coordinates can be absolute values or references to geometry guide names.
3351
3950
  */
3352
- interface AdjPoint {
3951
+ interface AdjustPoint {
3353
3952
  /** X coordinate (absolute value or guide name) */
3354
3953
  x: string;
3355
3954
  /** Y coordinate (absolute value or guide name) */
@@ -3358,12 +3957,12 @@ interface AdjPoint {
3358
3957
  /** Move-to path command (CT_Path2DMoveTo). */
3359
3958
  interface PathMoveTo {
3360
3959
  command: "moveTo";
3361
- point: AdjPoint;
3960
+ point: AdjustPoint;
3362
3961
  }
3363
3962
  /** Line-to path command (CT_Path2DLineTo). */
3364
3963
  interface PathLineTo {
3365
3964
  command: "lineTo";
3366
- point: AdjPoint;
3965
+ point: AdjustPoint;
3367
3966
  }
3368
3967
  /** Arc-to path command (CT_Path2DArcTo). */
3369
3968
  interface PathArcTo {
@@ -3376,12 +3975,12 @@ interface PathArcTo {
3376
3975
  /** Quadratic Bezier-to path command (CT_Path2DQuadBezierTo). */
3377
3976
  interface PathQuadBezTo {
3378
3977
  command: "quadBezTo";
3379
- points: readonly [AdjPoint, AdjPoint];
3978
+ points: readonly [AdjustPoint, AdjustPoint];
3380
3979
  }
3381
3980
  /** Cubic Bezier-to path command (CT_Path2DCubicBezierTo). */
3382
3981
  interface PathCubicBezTo {
3383
3982
  command: "cubicBezTo";
3384
- points: readonly [AdjPoint, AdjPoint, AdjPoint];
3983
+ points: readonly [AdjustPoint, AdjustPoint, AdjustPoint];
3385
3984
  }
3386
3985
  /** Close path command (CT_Path2DClose). */
3387
3986
  interface PathClose {
@@ -3531,7 +4130,7 @@ interface CustomGeometryOptions {
3531
4130
  /** Connection sites (a:cxnLst) */
3532
4131
  connectionSites?: readonly ConnectionSite[];
3533
4132
  /** Text insertion rectangle (a:rect) */
3534
- textRect?: GeomRect;
4133
+ textRectangle?: GeomRect;
3535
4134
  /** Path definitions (a:pathLst) — required */
3536
4135
  pathList: readonly PathOptions[];
3537
4136
  }
@@ -3551,7 +4150,7 @@ interface CustomGeometryOptions {
3551
4150
  * { command: "close" },
3552
4151
  * ],
3553
4152
  * }],
3554
- * textRect: { left: "2000000", top: "2000000", right: "8000000", bottom: "8000000" },
4153
+ * textRectangle: { left: "2000000", top: "2000000", right: "8000000", bottom: "8000000" },
3555
4154
  * });
3556
4155
  * ```
3557
4156
  */
@@ -3627,7 +4226,7 @@ interface BlipFillOptions {
3627
4226
  /** Image adjustment effects (brightness, contrast, grayscale, etc.) */
3628
4227
  blipEffects?: BlipEffectsOptions;
3629
4228
  /** Source rectangle for cropping */
3630
- srcRect?: SourceRectangleOptions;
4229
+ sourceRectangle?: SourceRectangleOptions;
3631
4230
  /** Tile fill mode (if omitted, defaults to stretch) */
3632
4231
  tile?: TileOptions;
3633
4232
  }
@@ -3795,7 +4394,7 @@ interface TableTextStyleOptions {
3795
4394
  /** Italic style */
3796
4395
  italic?: OnOffStyleType;
3797
4396
  /** Font reference (themeable) */
3798
- fontRef?: StyleMatrixReferenceOptions;
4397
+ fontReference?: StyleMatrixReferenceOptions;
3799
4398
  /** Color element */
3800
4399
  color?: string;
3801
4400
  }
@@ -3803,7 +4402,7 @@ interface TableCellStyleOptions {
3803
4402
  /** Cell borders */
3804
4403
  borders?: TableCellBorderOptions;
3805
4404
  /** Fill reference (themeable) */
3806
- fillRef?: StyleMatrixReferenceOptions;
4405
+ fillReference?: StyleMatrixReferenceOptions;
3807
4406
  /** Direct fill */
3808
4407
  fill?: string;
3809
4408
  }
@@ -3820,8 +4419,8 @@ interface ThemeableLineStyleOptions {
3820
4419
  width?: number;
3821
4420
  /** Fill color component */
3822
4421
  color?: string;
3823
- /** Line reference index into theme style matrix */
3824
- lineRefIdx?: number;
4422
+ /** Line reference (a:lnRef) into the theme style matrix */
4423
+ lineReference?: StyleMatrixReferenceOptions;
3825
4424
  }
3826
4425
  interface StyleMatrixReferenceOptions {
3827
4426
  /** Index into the theme style matrix */
@@ -3904,44 +4503,44 @@ declare function createGroupLocking(opts: GroupLockingOptions): string;
3904
4503
  declare function createGraphicFrameLocking(opts: GraphicFrameLockingOptions): string;
3905
4504
  //#endregion
3906
4505
  //#region src/drawingml/diagram/layout-vars.d.ts
3907
- interface AdjOptions {
4506
+ interface AdjustOptions {
3908
4507
  /** 1-based index (required) */
3909
4508
  idx: number;
3910
4509
  /** Adjustment value (required) */
3911
4510
  val: number;
3912
4511
  }
3913
4512
  /** Creates a dgm:adj element. */
3914
- declare const createAdj: (options: AdjOptions) => string;
3915
- declare const AnimLevelValue: {
4513
+ declare const createAdjust: (options: AdjustOptions) => string;
4514
+ declare const AnimationLevelValue: {
3916
4515
  readonly NONE: "none";
3917
4516
  readonly LEVEL: "lvl";
3918
4517
  readonly CENTER: "ctr";
3919
4518
  };
3920
- interface AnimLvlOptions {
3921
- val?: (typeof AnimLevelValue)[keyof typeof AnimLevelValue];
4519
+ interface AnimationLevelOptions {
4520
+ val?: (typeof AnimationLevelValue)[keyof typeof AnimationLevelValue];
3922
4521
  }
3923
4522
  /** Creates a dgm:animLvl element. */
3924
- declare const createAnimLvl: (options?: AnimLvlOptions) => string;
3925
- declare const AnimOneValue: {
4523
+ declare const createAnimationLevel: (options?: AnimationLevelOptions) => string;
4524
+ declare const AnimateOneByOneValue: {
3926
4525
  readonly NONE: "none";
3927
4526
  readonly ONE: "one";
3928
4527
  readonly BRANCH: "branch";
3929
4528
  };
3930
- interface AnimOneOptions {
3931
- val?: (typeof AnimOneValue)[keyof typeof AnimOneValue];
4529
+ interface AnimateOneByOneOptions {
4530
+ val?: (typeof AnimateOneByOneValue)[keyof typeof AnimateOneByOneValue];
3932
4531
  }
3933
4532
  /** Creates a dgm:animOne element. */
3934
- declare const createAnimOne: (options?: AnimOneOptions) => string;
3935
- interface ChMaxOptions {
4533
+ declare const createAnimateOneByOne: (options?: AnimateOneByOneOptions) => string;
4534
+ interface MaxChildrenOptions {
3936
4535
  val?: number;
3937
4536
  }
3938
4537
  /** Creates a dgm:chMax element. */
3939
- declare const createChMax: (options?: ChMaxOptions) => string;
3940
- interface ChPrefOptions {
4538
+ declare const createMaxChildren: (options?: MaxChildrenOptions) => string;
4539
+ interface PreferredChildrenOptions {
3941
4540
  val?: number;
3942
4541
  }
3943
4542
  /** Creates a dgm:chPref element. */
3944
- declare const createChPref: (options?: ChPrefOptions) => string;
4543
+ declare const createPreferredChildren: (options?: PreferredChildrenOptions) => string;
3945
4544
  interface OrgChartOptions {
3946
4545
  val?: boolean;
3947
4546
  }
@@ -3959,12 +4558,12 @@ interface HierBranchOptions {
3959
4558
  }
3960
4559
  /** Creates a dgm:hierBranch element. */
3961
4560
  declare const createHierBranch: (options?: HierBranchOptions) => string;
3962
- interface PresLayoutVarsOptions {
4561
+ interface PresentationLayoutVariablesOptions {
3963
4562
  orgChart?: OrgChartOptions;
3964
- chMax?: ChMaxOptions;
3965
- chPref?: ChPrefOptions;
3966
- animOne?: AnimOneOptions;
3967
- animLvl?: AnimLvlOptions;
4563
+ maxChildren?: MaxChildrenOptions;
4564
+ preferredChildren?: PreferredChildrenOptions;
4565
+ animateOneByOne?: AnimateOneByOneOptions;
4566
+ animationLevel?: AnimationLevelOptions;
3968
4567
  hierBranch?: HierBranchOptions;
3969
4568
  }
3970
4569
  /**
@@ -3987,12 +4586,12 @@ interface PresLayoutVarsOptions {
3987
4586
  * </xsd:complexType>
3988
4587
  * ```
3989
4588
  */
3990
- declare const createPresLayoutVars: (options?: PresLayoutVarsOptions) => string;
3991
- interface AdjLstOptions {
3992
- adj?: readonly AdjOptions[];
4589
+ declare const createPresentationLayoutVariables: (options?: PresentationLayoutVariablesOptions) => string;
4590
+ interface AdjustListOptions {
4591
+ adjustments?: readonly AdjustOptions[];
3993
4592
  }
3994
4593
  /** Creates a dgm:adjLst element containing dgm:adj children. */
3995
- declare const createAdjLst: (options?: AdjLstOptions) => string;
4594
+ declare const createAdjustList: (options?: AdjustListOptions) => string;
3996
4595
  //#endregion
3997
4596
  //#region src/drawingml/diagram/headers.d.ts
3998
4597
  interface DiagramNameOptions {
@@ -4007,7 +4606,7 @@ interface DiagramCategoryOptions {
4007
4606
  type: string;
4008
4607
  pri: number;
4009
4608
  }
4010
- interface ColorsDefHdrOptions {
4609
+ interface ColorsDefinitionHeaderOptions {
4011
4610
  uniqueId: string;
4012
4611
  minVer?: string;
4013
4612
  resId?: number;
@@ -4033,13 +4632,13 @@ interface ColorsDefHdrOptions {
4033
4632
  * </xsd:complexType>
4034
4633
  * ```
4035
4634
  */
4036
- declare const createColorsDefHdr: (options: ColorsDefHdrOptions) => string;
4037
- interface ColorsDefHdrLstOptions {
4038
- headers?: readonly ColorsDefHdrOptions[];
4635
+ declare const createColorsDefinitionHeader: (options: ColorsDefinitionHeaderOptions) => string;
4636
+ interface ColorsDefinitionHeaderListOptions {
4637
+ headers?: readonly ColorsDefinitionHeaderOptions[];
4039
4638
  }
4040
4639
  /** Creates a dgm:colorsDefHdrLst element. */
4041
- declare const createColorsDefHdrLst: (options?: ColorsDefHdrLstOptions) => string;
4042
- interface LayoutDefHdrOptions {
4640
+ declare const createColorsDefinitionHeaderList: (options?: ColorsDefinitionHeaderListOptions) => string;
4641
+ interface LayoutDefinitionHeaderOptions {
4043
4642
  uniqueId: string;
4044
4643
  minVer?: string;
4045
4644
  defStyle?: string;
@@ -4067,13 +4666,13 @@ interface LayoutDefHdrOptions {
4067
4666
  * </xsd:complexType>
4068
4667
  * ```
4069
4668
  */
4070
- declare const createLayoutDefHdr: (options: LayoutDefHdrOptions) => string;
4071
- interface LayoutDefHdrLstOptions {
4072
- headers?: readonly LayoutDefHdrOptions[];
4669
+ declare const createLayoutDefinitionHeader: (options: LayoutDefinitionHeaderOptions) => string;
4670
+ interface LayoutDefinitionHeaderListOptions {
4671
+ headers?: readonly LayoutDefinitionHeaderOptions[];
4073
4672
  }
4074
4673
  /** Creates a dgm:layoutDefHdrLst element. */
4075
- declare const createLayoutDefHdrLst: (options?: LayoutDefHdrLstOptions) => string;
4076
- interface StyleDefHdrOptions {
4674
+ declare const createLayoutDefinitionHeaderList: (options?: LayoutDefinitionHeaderListOptions) => string;
4675
+ interface StyleDefinitionHeaderOptions {
4077
4676
  uniqueId: string;
4078
4677
  minVer?: string;
4079
4678
  resId?: number;
@@ -4099,12 +4698,12 @@ interface StyleDefHdrOptions {
4099
4698
  * </xsd:complexType>
4100
4699
  * ```
4101
4700
  */
4102
- declare const createStyleDefHdr: (options: StyleDefHdrOptions) => string;
4103
- interface StyleDefHdrLstOptions {
4104
- headers?: readonly StyleDefHdrOptions[];
4701
+ declare const createStyleDefinitionHeader: (options: StyleDefinitionHeaderOptions) => string;
4702
+ interface StyleDefinitionHeaderListOptions {
4703
+ headers?: readonly StyleDefinitionHeaderOptions[];
4105
4704
  }
4106
4705
  /** Creates a dgm:styleDefHdrLst element. */
4107
- declare const createStyleDefHdrLst: (options?: StyleDefHdrLstOptions) => string;
4706
+ declare const createStyleDefinitionHeaderList: (options?: StyleDefinitionHeaderListOptions) => string;
4108
4707
  //#endregion
4109
4708
  //#region src/drawingml/diagram/diagram-style.d.ts
4110
4709
  declare const StyleMatrixIndex: {
@@ -4117,15 +4716,25 @@ declare const FontCollectionIndex: {
4117
4716
  readonly MINOR: "minor";
4118
4717
  readonly NONE: "none";
4119
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
+ }
4120
4729
  interface DiagramStyleOptions {
4121
- /** Line style matrix reference index */
4122
- lnIdx?: number;
4123
- /** Fill style matrix reference index */
4124
- fillIdx?: number;
4125
- /** Effect style matrix reference index */
4126
- effectIdx?: number;
4127
- /** Font reference collection index */
4128
- 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;
4129
4738
  }
4130
4739
  /**
4131
4740
  * Creates a dgm:style element (a:CT_ShapeStyle).
@@ -4160,21 +4769,21 @@ interface ColorListOptions {
4160
4769
  /** Colors (EG_ColorChoice items) */
4161
4770
  colors?: readonly SolidFillOptions[];
4162
4771
  }
4163
- declare const createFillClrLst: (options?: ColorListOptions) => string;
4164
- declare const createLinClrLst: (options?: ColorListOptions) => string;
4165
- declare const createEffectClrLst: (options?: ColorListOptions) => string;
4166
- declare const createTxFillClrLst: (options?: ColorListOptions) => string;
4167
- declare const createTxLinClrLst: (options?: ColorListOptions) => string;
4168
- declare const createTxEffectClrLst: (options?: ColorListOptions) => string;
4169
- 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 {
4170
4779
  /** Label name (required) */
4171
4780
  name: string;
4172
- fillClrLst?: ColorListOptions;
4173
- linClrLst?: ColorListOptions;
4174
- effectClrLst?: ColorListOptions;
4175
- txFillClrLst?: ColorListOptions;
4176
- txLinClrLst?: ColorListOptions;
4177
- txEffectClrLst?: ColorListOptions;
4781
+ fillColorList?: ColorListOptions;
4782
+ lineColorList?: ColorListOptions;
4783
+ effectColorList?: ColorListOptions;
4784
+ textFillColorList?: ColorListOptions;
4785
+ textLineColorList?: ColorListOptions;
4786
+ textEffectColorList?: ColorListOptions;
4178
4787
  }
4179
4788
  /**
4180
4789
  * Creates a dgm:styleLbl element (CT_StyleLabel or CT_CTStyleLabel).
@@ -4209,7 +4818,7 @@ interface DiagramStyleLblOptions {
4209
4818
  * </xsd:complexType>
4210
4819
  * ```
4211
4820
  */
4212
- declare const createStyleLbl: (options: DiagramStyleLblOptions) => string;
4821
+ declare const createStyleLabel: (options: DiagramStyleLabelOptions) => string;
4213
4822
  //#endregion
4214
4823
  //#region src/drawingml/diagram/diagram-rel.d.ts
4215
4824
  /**
@@ -4219,7 +4828,7 @@ declare const createStyleLbl: (options: DiagramStyleLblOptions) => string;
4219
4828
  *
4220
4829
  * @module
4221
4830
  */
4222
- interface DiagramRelIdsOptions {
4831
+ interface DiagramRelationshipIdsOptions {
4223
4832
  /** Relationship to data model part */
4224
4833
  dm: string;
4225
4834
  /** Relationship to layout definition part */
@@ -4242,10 +4851,10 @@ interface DiagramRelIdsOptions {
4242
4851
  * </xsd:complexType>
4243
4852
  * ```
4244
4853
  */
4245
- declare const createDiagramRelIds: (options: DiagramRelIdsOptions) => string;
4854
+ declare const createDiagramRelationshipIds: (options: DiagramRelationshipIdsOptions) => string;
4246
4855
  //#endregion
4247
4856
  //#region src/drawingml/diagram/diagram-props.d.ts
4248
- interface DiagramExtLstOptions {
4857
+ interface DiagramExtensionListOptions {
4249
4858
  /** Extension URIs */
4250
4859
  extensions?: readonly DiagramExtensionOptions[];
4251
4860
  }
@@ -4258,14 +4867,14 @@ interface DiagramExtensionOptions {
4258
4867
  *
4259
4868
  * Generic extension list pattern used across OOXML.
4260
4869
  */
4261
- declare const createDiagramExtLst: (options?: DiagramExtLstOptions) => string;
4870
+ declare const createDiagramExtensionList: (options?: DiagramExtensionListOptions) => string;
4262
4871
  /**
4263
4872
  * Creates a dgm:sp3d element wrapping a:CT_Shape3D.
4264
4873
  *
4265
4874
  * Delegates to the shared createShape3D factory but wraps in dgm: namespace context.
4266
4875
  */
4267
- declare const createDiagramSp3d: (options: Shape3DOptions) => string;
4268
- interface DiagramTextPropsOptions {
4876
+ declare const createDiagramShape3D: (options: Shape3DOptions) => string;
4877
+ interface DiagramTextPropertiesOptions {
4269
4878
  /** 3D text properties (flat text, no 3D) — empty element */
4270
4879
  flat?: boolean;
4271
4880
  }
@@ -4281,7 +4890,7 @@ interface DiagramTextPropsOptions {
4281
4890
  * </xsd:complexType>
4282
4891
  * ```
4283
4892
  */
4284
- declare const createDiagramTxPr: (_options?: DiagramTextPropsOptions) => string;
4893
+ declare const createDiagramTextProperties: (_options?: DiagramTextPropertiesOptions) => string;
4285
4894
  //#endregion
4286
4895
  //#region src/drawingml/color/color-descriptors.d.ts
4287
4896
  declare const rgbColorDesc: CustomDescriptor<RgbColorOptions>;
@@ -4343,9 +4952,9 @@ declare const blipFillDesc: CustomDescriptor<BlipFillOptions & {
4343
4952
  }>;
4344
4953
  //#endregion
4345
4954
  //#region src/drawingml/diagram/diagram-descriptors.d.ts
4346
- declare const diagramRelIdsDesc: CustomDescriptor<DiagramRelIdsOptions>;
4955
+ declare const diagramRelationshipIdsDesc: CustomDescriptor<DiagramRelationshipIdsOptions>;
4347
4956
  declare const diagramStyleDesc: CustomDescriptor<DiagramStyleOptions>;
4348
- declare const presLayoutVarsDesc: CustomDescriptor<PresLayoutVarsOptions>;
4349
- declare const diagramExtLstDesc: CustomDescriptor<DiagramExtLstOptions>;
4957
+ declare const presentationLayoutVariablesDesc: CustomDescriptor<PresentationLayoutVariablesOptions>;
4958
+ declare const diagramExtensionListDesc: CustomDescriptor<DiagramExtensionListOptions>;
4350
4959
  //#endregion
4351
- export { createLinClrLst as $, createSystemColor as $a, strFromU8$1 as $i, calculateEffectExtent as $n, xsdLineCap as $r, TableStyleListOptions as $t, rgbColorDesc as A, extractBlipFillMedia as Aa, convertPointsToEmu as Ai, stringifyAdjustmentValues as An, createCustomDash as Ar, PresLayoutVarsOptions as At, createDiagramTxPr as B, createGradientStop as Ba, CompileFn as Bi, LightRigOptions as Bn, hasPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, createPatternFill as Ca, convertEmuToInches as Ci, PathCommand as Cn, createOutline as Cr, AnimOneOptions as Ct, hslColorDesc as D, FillOptions as Da, convertInchesToTwip as Di, PresetGeometryOptions as Dn, LineEndWidth as Dr, HierBranchOptions as Dt, getColorDescriptor as E, BlipFillMediaData as Ea, convertInchesToEmu as Ei, createCustomGeometry as En, LineEndType as Er, ChPrefOptions as Et, DiagramExtLstOptions as F, PathShadeOptions as Fa, convertUniversalMeasureToTwip as Fi, BevelPresetType as Fn, findAndReplaceImagePlaceholders as Fr, createChMax as Ft, DiagramStyleLblOptions as G, createSourceRectangle as Ga, XmlifyedFile as Gi, createScene3D as Gn, replaceMediaPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelIds as H, TileOptions as Ha, DataType as Hi, Scene3DOptions as Hn, replaceChartPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, PathShadeType as Ia, parseUniversalMeasure as Ii, createBevel as In, formatId as Ir, createChPref as It, HueDirection as J, SolidFillOptions as Ja, ZipOptions as Ji, EffectDagOptions as Jn, replaceVideoPlaceholders as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, BlipEffectsOptions as Ka, ZIP_DEFLATE_LEVEL as Ki, createSoftEdgeEffect as Kn, replaceNumberingPlaceholders as Kr, createPictureLocking as Kt, DiagramTextPropsOptions as L, RelativeRect as La, compileMapping as Li, createBottomBevel as Ln, getMediaRefs as Lr, createHierBranch as Lt, schemeColorDesc as M, GradientShadeOptions as Ma, convertToEmu as Mi, Shape3DOptions as Mn, SmartArtRelOptions as Mr, createAdjLst as Mt, solidFillDesc as N, GradientStop as Na, convertToTwip as Ni, createShape3D as Nn, addSmartArtRelationships as Nr, createAnimLvl as Nt, parseColorChoice as O, GradientStopOptions as Oa, convertMillimetersToTwip as Oi, stringifyPresetGeometry as On, createLineEnd as Or, HierBranchStyle as Ot, systemColorDesc as P, LinearShadeOptions as Pa, convertUniversalMeasureToEmu as Pi, BevelOptions as Pn, collectPlaceholderKeys as Pr, createAnimOne as Pt, createFillClrLst as Q, SystemColorOptions as Qa, levelForMediaName as Qi, EffectListOptions as Qn, xsdEffectContainer as Qr, TablePartStyleOptions as Qt, createDiagramExtLst as R, TileFlipMode as Ra, ParsedArchive as Ri, BackdropOptions as Rn, getReferencedMedia as Rr, createOrgChart as Rt, outlineDesc as S, PresetPattern as Sa, PixelPosition as Si, GeomRect as Sn, PresetDash as Sr, AnimLvlOptions as St, patternFillDesc as T, BlipFillConfigOptions as Ta, convertEmuToPoints as Ti, PathOptions as Tn, LineEndOptions as Tr, ChMaxOptions as Tt, ColorListOptions as U, createTileInfo as Ua, Packer as Ui, SphereCoords as Un, replaceHyperlinkPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelIdsOptions as V, TileAlignment as Va, CompressionOptions as Vi, Point3D as Vn, replaceAllPlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, SourceRectangleOptions as Wa, PackerOptions as Wi, Vector3D as Wn, replaceImagePlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, createSolidFill as Xa, createPacker as Xi, BlurEffectOptions as Xn, xsdBlendMode as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, createColorElement as Ya, Zippable$1 as Yi, createEffectDag as Yn, invertMap as Yr, StyleMatrixReferenceOptions as Yt, createEffectClrLst as Z, SystemColor as Za, createZipStream as Zi, EffectExtent as Zn, xsdCompoundLine as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, Relationships as _a, uniqueUuid as _i, createBlipFill as _n, LineCap as _r, createStyleDefHdr as _t, blipDesc as a, OutputByType as aa, xsdPresetShadow as ai, createTableStyleList as an, RgbColorOptions as ao, createPresetShadowEffect as ar, ColorsDefHdrOptions as at, shapeLockingDesc as b, createGroupFill as ba, randomBytes as bi, ConnectionSite as bn, OutlineOptions as br, AdjOptions as bt, stretchDesc as c, CoreProperties as ca, xsdTextAlign as ci, MediaTransformation as cn, PresetColorOptions as co, createOuterShadowEffect as cr, DiagramNameOptions as ct, scene3DDesc as d, parseCorePropsElement as da, xsdUnderlineStyle as di, Transform2DOptions as dn, createHslColor as do, GlowEffectOptions as dr, StyleDefHdrLstOptions as dt, toUint8Array as ea, xsdLineEndSize as ei, TableStyleOptions as en, SchemeColor as eo, createEffectList as er, createStyleLbl as et, shape3DDesc as f, DefaultAttributes as fa, xsdVerticalMergeRev as fi, createGroupTransform2D as fn, ColorTransformOptions as fo, createGlowEffect as fr, StyleDefHdrOptions as ft, presetGeometryDesc as g, RelationshipType as ga, uniqueNumericIdCreator as gi, BlipFillOptions as gn, CompoundLine as gr, createLayoutDefHdrLst as gt, customGeometryDesc as h, createOverride as ha, uniqueId as hi, createExtentionList as hn, createFillOverlayEffect as hr, createLayoutDefHdr as ht, presLayoutVarsDesc as i, OoxmlMimeType as ia, xsdPenAlignment as ii, createTableStyle as in, createScRgbColor as io, PresetShadowVal as ir, ColorsDefHdrLstOptions as it, scRgbColorDesc as j, GradientFillOptions as ja, convertPositionToEmu as ji, PresetMaterialType as jn, IdFormat as jr, createAdj as jt, presetColorDesc as k, buildFill as ka, convertPixelsToEmu as ki, GeometryGuide as kn, DashStop as kr, OrgChartOptions as kt, tileDesc as l, buildCorePropertiesXml as la, xsdTextAnchor as li, createTransformation as ln, createPresetColor as lo, InnerShadowEffectOptions as lr, LayoutDefHdrLstOptions as lt, transform2DDesc as m, createDefault as ma, hashedId as mi, stringifyStretch as mn, FillOverlayEffectOptions as mr, createColorsDefHdrLst as mt, diagramRelIdsDesc as n, zipAndConvert as na, xsdPathFillMode as ni, TableTextStyleOptions as nn, createSchemeColor as no, createReflectionEffect as nr, createTxFillClrLst as nt, blipFillDesc as o, OutputType as oa, xsdRectAlignment as oi, parseTableStyleList as on, createRgbColor as oo, OuterShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, OverrideAttributes as pa, UniqueNumericIdCreator as pi, createTransform2D as pn, createColorTransforms as po, BlendMode as pr, createColorsDefHdr as pt, FontCollectionIndex as q, createBlipEffects as qa, ZIP_STORED_LEVEL as qi, EffectContainerType as qn, replaceSmartArtPlaceholders as qr, createShapeLocking as qt, diagramStyleDesc as r, zipSyncAndConvert as ra, xsdPattern as ri, ThemeableLineStyleOptions as rn, ScRgbColorOptions as ro, PresetShadowEffectOptions as rr, createTxLinClrLst as rt, sourceRectangleDesc as s, convertOutput as sa, xsdStrikeStyle as si, MediaDataTransformation as sn, PresetColor as so, RectAlignment as sr, DiagramDescriptionOptions as st, diagramExtLstDesc as t, unzipSync$1 as ta, xsdMaterialType as ti, TableStyleRegion as tn, SchemeColorOptions as to, ReflectionEffectOptions as tr, createTxEffectClrLst as tt, bevelDesc as u, buildCorePropertiesXmlString as ua, xsdTextCaps as ui, GroupTransform2DOptions as un, HslColorOptions as uo, createInnerShadowEffect as ur, LayoutDefHdrOptions as ut, groupLockingDesc as v, TargetModeType as va, derivePasswordHash as vi, BlipOptions as vn, LineJoin as vr, createStyleDefHdrLst as vt, gradientFillDesc as w, createNoFill as wa, convertEmuToPixels as wi, PathFillMode as wn, LineEndLength as wr, AnimOneValue as wt, effectListDesc as x, PatternFillOptions as xa, EmuPosition as xi, CustomGeometryOptions as xn, PenAlignment as xr, AnimLevelValue as xt, pictureLockingDesc as y, APP_PROPS_XML as ya, hashPasswordAgile as yi, createBlip as yn, OutlineFillProperties as yr, AdjLstOptions as yt, createDiagramSp3d as z, createGradientFill 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 };