@office-open/core 0.9.7 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
- import { c as CustomDescriptor, u as ReadContext } from "./index-C4r2WLEy.mjs";
1
+ import { _ as CustomDescriptor, y as ReadContext } from "./index-L82O3q6V.mjs";
2
+ import { A as DataType, C as OutputByType, w as OutputType } from "./index-DEeO4sOq.mjs";
2
3
  import { s as UniversalMeasure } from "./values-Dqj8cbcy.mjs";
3
4
  import { Element } from "@office-open/xml";
4
5
  import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8 as strFromU8$1, unzipSync as unzipSync$1 } from "fflate";
@@ -972,7 +973,7 @@ interface PathShadeOptions {
972
973
  *
973
974
  * Defines the rectangle to which the gradient fills.
974
975
  */
975
- fillToRect?: RelativeRect;
976
+ fillToRectangle?: RelativeRect;
976
977
  }
977
978
  /**
978
979
  * Gradient shade options (linear or path).
@@ -1010,7 +1011,7 @@ interface GradientFillOptions {
1010
1011
  *
1011
1012
  * Defines the rectangle used for gradient tiling.
1012
1013
  */
1013
- tileRect?: RelativeRect;
1014
+ tileRectangle?: RelativeRect;
1014
1015
  /** Whether gradient rotates with the shape */
1015
1016
  rotateWithShape?: boolean;
1016
1017
  }
@@ -1065,8 +1066,8 @@ interface GradientStopOptions {
1065
1066
  * Blip fill options (image fill) for DrawingML shapes.
1066
1067
  */
1067
1068
  interface BlipFillConfigOptions {
1068
- /** Image data (raw bytes) */
1069
- data: Uint8Array | ArrayBuffer | Buffer;
1069
+ /** Image data: raw bytes, ArrayBuffer, or a base64 data URL string. */
1070
+ data: DataType;
1070
1071
  /** Image type */
1071
1072
  imageType: "png" | "jpg" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1072
1073
  /** DPI of the image */
@@ -1076,7 +1077,7 @@ interface BlipFillConfigOptions {
1076
1077
  /** Image adjustment effects (brightness, contrast, grayscale, etc.) */
1077
1078
  blipEffects?: BlipEffectsOptions;
1078
1079
  /** Source rectangle for cropping */
1079
- srcRect?: SourceRectangleOptions;
1080
+ sourceRectangle?: SourceRectangleOptions;
1080
1081
  /** Tile fill mode (if omitted, defaults to stretch) */
1081
1082
  tile?: TileOptions;
1082
1083
  }
@@ -1145,8 +1146,13 @@ type FillOptions = string | {
1145
1146
  *
1146
1147
  * The returned data should be registered with the document's media store
1147
1148
  * during serialization so the packer can resolve the `{fileName}` placeholder.
1149
+ *
1150
+ * @param fill - Fill options to inspect
1151
+ * @param nameAllocator - Optional sequential name provider (e.g. a format
1152
+ * package's media counter). When omitted, falls back to a random id so the
1153
+ * function stays usable from contexts without a shared counter.
1148
1154
  */
1149
- declare const extractBlipFillMedia: (fill: FillOptions) => BlipFillMediaData | undefined;
1155
+ declare const extractBlipFillMedia: (fill: FillOptions, nameAllocator?: (type: string) => string) => BlipFillMediaData | undefined;
1150
1156
  /**
1151
1157
  * Builds a DrawingML fill XML string from a FillOptions config.
1152
1158
  */
@@ -1320,12 +1326,8 @@ declare const createPatternFill: (options: PatternFillOptions) => string;
1320
1326
  */
1321
1327
  declare const createGroupFill: () => string;
1322
1328
  //#endregion
1323
- //#region src/opc/app-properties.d.ts
1324
- /** Static app properties XML constant. */
1325
- 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
- //#endregion
1327
1329
  //#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/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";
1330
+ 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" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionHeaders" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionLog" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/users";
1329
1331
  declare const TargetModeType: {
1330
1332
  readonly EXTERNAL: "External";
1331
1333
  };
@@ -1355,98 +1357,103 @@ declare class Relationships {
1355
1357
  * @module
1356
1358
  */
1357
1359
  interface DefaultAttributes {
1358
- readonly contentType: string;
1359
- readonly extension?: string;
1360
+ contentType: string;
1361
+ extension?: string;
1360
1362
  }
1361
1363
  /**
1362
1364
  * Creates a Default element mapping a file extension to a MIME content type.
1363
1365
  */
1364
1366
  declare const createDefault: (contentType: string, extension?: string) => string;
1365
1367
  interface OverrideAttributes {
1366
- readonly contentType: string;
1367
- readonly partName?: string;
1368
+ contentType: string;
1369
+ partName?: string;
1368
1370
  }
1369
1371
  /**
1370
1372
  * Creates an Override element mapping a specific part path to a MIME content type.
1371
1373
  */
1372
1374
  declare const createOverride: (contentType: string, partName?: string) => string;
1373
1375
  //#endregion
1374
- //#region src/opc/core.d.ts
1375
- type IXmlableObject = Readonly<Record<string, unknown>>;
1376
- interface CoreProperties {
1377
- title?: string;
1378
- subject?: string;
1379
- creator?: string;
1380
- keywords?: string;
1381
- description?: string;
1382
- lastModifiedBy?: string;
1383
- revision?: string;
1384
- created?: string;
1385
- modified?: string;
1386
- }
1387
- /**
1388
- * Parse core properties from an already-parsed XML element.
1389
- * Shared by docx and pptx to extract Dublin Core metadata.
1390
- */
1391
- declare function parseCorePropsElement(el: Element | undefined): CoreProperties;
1392
- /**
1393
- * Build a cp:coreProperties XML object from metadata.
1394
- *
1395
- * Shared by docx and pptx to avoid duplicating namespace declarations
1396
- * and Dublin Core property construction.
1397
- */
1398
- 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;
1406
- }): IXmlableObject;
1407
- /**
1408
- * Build a cp:coreProperties XML string directly (fast path).
1409
- *
1410
- * Shared by pptx and xlsx to bypass the toXml() → xml() pipeline.
1411
- */
1412
- 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;
1420
- }): string;
1376
+ //#region src/opc/app-properties.d.ts
1377
+ /**
1378
+ * Options for docProps/app.xml extended properties (CT_Properties).
1379
+ *
1380
+ * Only the scalar (string/number/boolean) child elements are modelled.
1381
+ * Structured vector/blob elements (HeadingPairs, TitlesOfParts, HLinks,
1382
+ * DigSig, PresentationFormat) are intentionally omitted.
1383
+ *
1384
+ * Property order follows the CT_Properties xsd:all sequence so the
1385
+ * emitted XML matches the reference schema ordering.
1386
+ */
1387
+ interface AppPropertiesOptions {
1388
+ /** Template name */
1389
+ template?: string;
1390
+ /** Manager name */
1391
+ manager?: string;
1392
+ /** Company name */
1393
+ company?: string;
1394
+ /** Page count */
1395
+ pages?: number;
1396
+ /** Word count */
1397
+ words?: number;
1398
+ /** Character count */
1399
+ characters?: number;
1400
+ /** Line count */
1401
+ lines?: number;
1402
+ /** Paragraph count */
1403
+ paragraphs?: number;
1404
+ /** Notes count */
1405
+ notes?: number;
1406
+ /** Slides count */
1407
+ slides?: number;
1408
+ /** Total editing time (minutes) */
1409
+ totalTime?: number;
1410
+ /** Hidden slides count */
1411
+ hiddenSlides?: number;
1412
+ /** Multimedia clips count */
1413
+ mmClips?: number;
1414
+ /** Characters including spaces */
1415
+ charactersWithSpaces?: number;
1416
+ /** Document security level */
1417
+ docSecurity?: number;
1418
+ /** Hyperlink base URL */
1419
+ hyperlinkBase?: string;
1420
+ /** Application name */
1421
+ application?: string;
1422
+ /** Application version */
1423
+ appVersion?: string;
1424
+ /** Whether the document is scaled/cropped */
1425
+ scaleCrop?: boolean;
1426
+ /** Whether links are up to date */
1427
+ linksUpToDate?: boolean;
1428
+ /** Whether the document is shared */
1429
+ sharedDoc?: boolean;
1430
+ /** Whether hyperlinks changed */
1431
+ hyperlinksChanged?: boolean;
1432
+ }
1433
+ /** Subset of AppPropertiesOptions accepted by stringify. */
1434
+ type AppPropertiesInput = AppPropertiesOptions;
1435
+ declare const appPropertiesDesc: CustomDescriptor<AppPropertiesInput>;
1421
1436
  //#endregion
1422
- //#region src/opc/output.d.ts
1437
+ //#region src/opc/custom-properties.d.ts
1423
1438
  /**
1424
- * Output type definitions for OOXML document export.
1439
+ * Options for a single custom property.
1425
1440
  *
1426
- * @module
1441
+ * @property name - The property name
1442
+ * @property value - The property value (as string)
1427
1443
  */
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];
1444
+ interface CustomPropertyOptions {
1445
+ /** The property name */
1446
+ name: string;
1447
+ /** The property value (as string) */
1448
+ value: string;
1449
+ }
1450
+ /** Input shape for the custom-properties descriptor. */
1451
+ interface CustomPropertiesInput {
1452
+ properties: CustomPropertyOptions[];
1453
+ }
1454
+ declare const customPropertiesDesc: CustomDescriptor<CustomPropertiesInput>;
1446
1455
  //#endregion
1447
1456
  //#region src/opc/packer.d.ts
1448
- type DataType = ArrayBufferLike | Blob | DataView | number[] | ReadableStream | string | Uint8Array;
1449
- declare function toUint8Array(data: DataType): Uint8Array;
1450
1457
  interface XmlifyedFile {
1451
1458
  path: string;
1452
1459
  data: string | Uint8Array;
@@ -1561,10 +1568,41 @@ interface Packer<TFile> {
1561
1568
  * a MIME type.
1562
1569
  */
1563
1570
  declare const createPacker: <TFile>(options: {
1564
- readonly compile: CompileFn<TFile>;
1565
- readonly mimeType: string;
1571
+ compile: CompileFn<TFile>;
1572
+ mimeType: string;
1566
1573
  }) => Packer<TFile>;
1567
1574
  //#endregion
1575
+ //#region src/util/base64.d.ts
1576
+ /**
1577
+ * Shared base64 encode/decode helpers.
1578
+ *
1579
+ * Both prefer the native `Uint8Array` base64 methods (Node 22+, modern
1580
+ * browsers): they avoid the intermediate binary string that `btoa`/`atob`
1581
+ * materialize and cannot stack-overflow on large buffers. Node `Buffer` is the
1582
+ * secondary path; a manual loop covers older runtimes.
1583
+ *
1584
+ * @module
1585
+ */
1586
+ /**
1587
+ * Decode a base64 string into a `Uint8Array`.
1588
+ *
1589
+ * Prefers native `Uint8Array.fromBase64` (no intermediate binary string), then
1590
+ * Node `Buffer` (zero-copy), then `atob`.
1591
+ */
1592
+ declare function decodeBase64(input: string): Uint8Array;
1593
+ /**
1594
+ * Encode a `Uint8Array` into a base64 string.
1595
+ *
1596
+ * Prefers native `Uint8Array.prototype.toBase64` (no intermediate binary
1597
+ * string), then Node `Buffer` (zero-copy), then a `btoa` fallback.
1598
+ *
1599
+ * The fallback builds the binary string in a loop rather than
1600
+ * `String.fromCharCode(...bytes)` — the spread form places every byte on the
1601
+ * call stack and overflows for large buffers (V8 caps function arguments near
1602
+ * ~65k).
1603
+ */
1604
+ declare function encodeBase64(bytes: Uint8Array): string;
1605
+ //#endregion
1568
1606
  //#region src/opc/parser.d.ts
1569
1607
  /**
1570
1608
  * Parsed OOXML archive backed by an unzipped ZIP map.
@@ -1597,6 +1635,611 @@ declare class ParsedArchive {
1597
1635
  /** Parse an OOXML archive (.docx, .pptx, .xlsx) into a ParsedArchive. */
1598
1636
  declare function parseArchive(data: Uint8Array): ParsedArchive;
1599
1637
  //#endregion
1638
+ //#region src/opc/part-registry.d.ts
1639
+ /**
1640
+ * Declarative part registry — the machine-readable source of truth for which
1641
+ * parts each OOXML package is expected to contain.
1642
+ *
1643
+ * Consumed by {@link validateOpcConsistency} to detect two failure classes the
1644
+ * XSD single-part validator cannot see:
1645
+ * - O1 orphan part — a part present in the ZIP that no rule accounts for
1646
+ * - O2 missing part — an `always` part the ZIP lacks
1647
+ *
1648
+ * Content-type and relationship integrity (O3/O5/O6/O7) are derived directly
1649
+ * from the ZIP + `.rels` + `[Content_Types].xml`, so they need no registry.
1650
+ *
1651
+ * Presence semantics:
1652
+ * - `always` — present in *any* valid package (content-types map,
1653
+ * root rels, main part only). O2 fires when absent. Kept
1654
+ * minimal so template/round-trip packages — whose
1655
+ * `[Content_Types]` and part set are passed through from a
1656
+ * source rather than rebuilt — do not false-positive.
1657
+ * - `conditional` — emitted by a fresh `compileDocument` run but a
1658
+ * round-tripped/template package may omit it. Absence is
1659
+ * legitimate; O6 (stale Override) still catches the case
1660
+ * where its content type is declared but the part is gone.
1661
+ * - `repeated` — one per index (slides, worksheets, headers, …).
1662
+ *
1663
+ * Reference: ECMA-376 Part 2 (OPC). Content-type values mirror the per-package
1664
+ * `content-types.ts` builders; relationship `@Type` URLs mirror
1665
+ * {@link RelationshipType}.
1666
+ *
1667
+ * @module
1668
+ */
1669
+ type PartPresence = {
1670
+ readonly kind: "always";
1671
+ } | {
1672
+ readonly kind: "conditional";
1673
+ readonly flag: string;
1674
+ } | {
1675
+ readonly kind: "repeated";
1676
+ readonly countFrom: string;
1677
+ };
1678
+ interface PartDef {
1679
+ /**
1680
+ * ZIP path template. `${i}` expands per repeated index (1-based); a template
1681
+ * without the placeholder denotes a singleton part.
1682
+ */
1683
+ path: string;
1684
+ /**
1685
+ * `[Content_Types].xml` Override value the part carries when generated.
1686
+ * `undefined` when the part relies on a `<Default>` extension mapping
1687
+ * (e.g. media, fonts, docx theme under raw-part passthrough).
1688
+ */
1689
+ contentType?: string;
1690
+ presence: PartPresence;
1691
+ }
1692
+ interface PackagePartRegistry {
1693
+ format: "docx" | "pptx" | "xlsx";
1694
+ parts: readonly PartDef[];
1695
+ /**
1696
+ * Path prefixes that are always legitimate even when undeclared — media,
1697
+ * fonts, embeddings, altChunks, custom XML, and `.rels` parts. Used to
1698
+ * suppress O1 false positives from round-tripped / pass-through content.
1699
+ */
1700
+ orphanWhitelist: readonly string[];
1701
+ }
1702
+ declare const DOCX_PARTS: {
1703
+ readonly format: "docx";
1704
+ readonly orphanWhitelist: readonly ["word/media/", "word/fonts/", "word/embeddings/", "word/afchunks/", "customXml/", "_rels/", "word/_rels/", "docProps/", "[Content_Types].xml"];
1705
+ readonly parts: readonly [{
1706
+ readonly path: "[Content_Types].xml";
1707
+ readonly presence: {
1708
+ readonly kind: "always";
1709
+ };
1710
+ }, {
1711
+ readonly path: "_rels/.rels";
1712
+ readonly presence: {
1713
+ readonly kind: "always";
1714
+ };
1715
+ }, {
1716
+ readonly path: "word/document.xml";
1717
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml";
1718
+ readonly presence: {
1719
+ readonly kind: "always";
1720
+ };
1721
+ }, {
1722
+ readonly path: "word/styles.xml";
1723
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml";
1724
+ readonly presence: {
1725
+ readonly kind: "conditional";
1726
+ readonly flag: "freshCompile";
1727
+ };
1728
+ }, {
1729
+ readonly path: "word/numbering.xml";
1730
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml";
1731
+ readonly presence: {
1732
+ readonly kind: "conditional";
1733
+ readonly flag: "freshCompile";
1734
+ };
1735
+ }, {
1736
+ readonly path: "word/footnotes.xml";
1737
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml";
1738
+ readonly presence: {
1739
+ readonly kind: "conditional";
1740
+ readonly flag: "freshCompile";
1741
+ };
1742
+ }, {
1743
+ readonly path: "word/endnotes.xml";
1744
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml";
1745
+ readonly presence: {
1746
+ readonly kind: "conditional";
1747
+ readonly flag: "freshCompile";
1748
+ };
1749
+ }, {
1750
+ readonly path: "word/settings.xml";
1751
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml";
1752
+ readonly presence: {
1753
+ readonly kind: "conditional";
1754
+ readonly flag: "freshCompile";
1755
+ };
1756
+ }, {
1757
+ readonly path: "word/fontTable.xml";
1758
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml";
1759
+ readonly presence: {
1760
+ readonly kind: "conditional";
1761
+ readonly flag: "freshCompile";
1762
+ };
1763
+ }, {
1764
+ readonly path: "docProps/core.xml";
1765
+ readonly contentType: "application/vnd.openxmlformats-package.core-properties+xml";
1766
+ readonly presence: {
1767
+ readonly kind: "conditional";
1768
+ readonly flag: "freshCompile";
1769
+ };
1770
+ }, {
1771
+ readonly path: "docProps/app.xml";
1772
+ readonly contentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml";
1773
+ readonly presence: {
1774
+ readonly kind: "conditional";
1775
+ readonly flag: "freshCompile";
1776
+ };
1777
+ }, {
1778
+ readonly path: "docProps/custom.xml";
1779
+ readonly contentType: "application/vnd.openxmlformats-officedocument.custom-properties+xml";
1780
+ readonly presence: {
1781
+ readonly kind: "conditional";
1782
+ readonly flag: "freshCompile";
1783
+ };
1784
+ }, {
1785
+ readonly path: "word/comments.xml";
1786
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml";
1787
+ readonly presence: {
1788
+ readonly kind: "conditional";
1789
+ readonly flag: "hasComments";
1790
+ };
1791
+ }, {
1792
+ readonly path: "word/header${i}.xml";
1793
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml";
1794
+ readonly presence: {
1795
+ readonly kind: "repeated";
1796
+ readonly countFrom: "headerCount";
1797
+ };
1798
+ }, {
1799
+ readonly path: "word/footer${i}.xml";
1800
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";
1801
+ readonly presence: {
1802
+ readonly kind: "repeated";
1803
+ readonly countFrom: "footerCount";
1804
+ };
1805
+ }, {
1806
+ readonly path: "word/charts/chart${i}.xml";
1807
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
1808
+ readonly presence: {
1809
+ readonly kind: "repeated";
1810
+ readonly countFrom: "chartCount";
1811
+ };
1812
+ }, {
1813
+ readonly path: "word/diagrams/data${i}.xml";
1814
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml";
1815
+ readonly presence: {
1816
+ readonly kind: "repeated";
1817
+ readonly countFrom: "smartArtCount";
1818
+ };
1819
+ }, {
1820
+ readonly path: "word/diagrams/layout${i}.xml";
1821
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml";
1822
+ readonly presence: {
1823
+ readonly kind: "repeated";
1824
+ readonly countFrom: "smartArtCount";
1825
+ };
1826
+ }, {
1827
+ readonly path: "word/diagrams/quickStyle${i}.xml";
1828
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml";
1829
+ readonly presence: {
1830
+ readonly kind: "repeated";
1831
+ readonly countFrom: "smartArtCount";
1832
+ };
1833
+ }, {
1834
+ readonly path: "word/diagrams/colors${i}.xml";
1835
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml";
1836
+ readonly presence: {
1837
+ readonly kind: "repeated";
1838
+ readonly countFrom: "smartArtCount";
1839
+ };
1840
+ }, {
1841
+ readonly path: "word/diagrams/drawing${i}.xml";
1842
+ readonly contentType: "application/vnd.ms-office.drawingml.diagramDrawing+xml";
1843
+ readonly presence: {
1844
+ readonly kind: "repeated";
1845
+ readonly countFrom: "smartArtCount";
1846
+ };
1847
+ }, {
1848
+ readonly path: "word/bibliography.xml";
1849
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.bibliography+xml";
1850
+ readonly presence: {
1851
+ readonly kind: "conditional";
1852
+ readonly flag: "hasBibliography";
1853
+ };
1854
+ }, {
1855
+ readonly path: "word/glossary/document.xml";
1856
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.glossary+xml";
1857
+ readonly presence: {
1858
+ readonly kind: "conditional";
1859
+ readonly flag: "hasGlossary";
1860
+ };
1861
+ }, {
1862
+ readonly path: "word/webSettings.xml";
1863
+ readonly contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml";
1864
+ readonly presence: {
1865
+ readonly kind: "conditional";
1866
+ readonly flag: "hasWebSettings";
1867
+ };
1868
+ }, {
1869
+ readonly path: "word/theme/theme1.xml";
1870
+ readonly presence: {
1871
+ readonly kind: "conditional";
1872
+ readonly flag: "rawParts theme";
1873
+ };
1874
+ }];
1875
+ };
1876
+ declare const PPTX_PARTS: {
1877
+ readonly format: "pptx";
1878
+ 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"];
1879
+ readonly parts: readonly [{
1880
+ readonly path: "[Content_Types].xml";
1881
+ readonly presence: {
1882
+ readonly kind: "always";
1883
+ };
1884
+ }, {
1885
+ readonly path: "_rels/.rels";
1886
+ readonly presence: {
1887
+ readonly kind: "always";
1888
+ };
1889
+ }, {
1890
+ readonly path: "ppt/presentation.xml";
1891
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml";
1892
+ readonly presence: {
1893
+ readonly kind: "always";
1894
+ };
1895
+ }, {
1896
+ readonly path: "docProps/core.xml";
1897
+ readonly contentType: "application/vnd.openxmlformats-package.core-properties+xml";
1898
+ readonly presence: {
1899
+ readonly kind: "conditional";
1900
+ readonly flag: "freshCompile";
1901
+ };
1902
+ }, {
1903
+ readonly path: "docProps/app.xml";
1904
+ readonly contentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml";
1905
+ readonly presence: {
1906
+ readonly kind: "conditional";
1907
+ readonly flag: "freshCompile";
1908
+ };
1909
+ }, {
1910
+ readonly path: "ppt/theme/theme${i}.xml";
1911
+ readonly contentType: "application/vnd.openxmlformats-officedocument.theme+xml";
1912
+ readonly presence: {
1913
+ readonly kind: "repeated";
1914
+ readonly countFrom: "masters + notes/handout masters";
1915
+ };
1916
+ }, {
1917
+ readonly path: "ppt/presProps.xml";
1918
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.presProps+xml";
1919
+ readonly presence: {
1920
+ readonly kind: "conditional";
1921
+ readonly flag: "freshCompile";
1922
+ };
1923
+ }, {
1924
+ readonly path: "ppt/viewProps.xml";
1925
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml";
1926
+ readonly presence: {
1927
+ readonly kind: "conditional";
1928
+ readonly flag: "freshCompile";
1929
+ };
1930
+ }, {
1931
+ readonly path: "ppt/tableStyles.xml";
1932
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml";
1933
+ readonly presence: {
1934
+ readonly kind: "conditional";
1935
+ readonly flag: "freshCompile";
1936
+ };
1937
+ }, {
1938
+ readonly path: "ppt/slideMasters/slideMaster${i}.xml";
1939
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml";
1940
+ readonly presence: {
1941
+ readonly kind: "repeated";
1942
+ readonly countFrom: "masters.length";
1943
+ };
1944
+ }, {
1945
+ readonly path: "ppt/slideLayouts/slideLayout${i}.xml";
1946
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml";
1947
+ readonly presence: {
1948
+ readonly kind: "repeated";
1949
+ readonly countFrom: "layouts.length";
1950
+ };
1951
+ }, {
1952
+ readonly path: "ppt/slides/slide${i}.xml";
1953
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slide+xml";
1954
+ readonly presence: {
1955
+ readonly kind: "repeated";
1956
+ readonly countFrom: "slides.length";
1957
+ };
1958
+ }, {
1959
+ readonly path: "ppt/notesMasters/notesMaster1.xml";
1960
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml";
1961
+ readonly presence: {
1962
+ readonly kind: "conditional";
1963
+ readonly flag: "any slide has notes";
1964
+ };
1965
+ }, {
1966
+ readonly path: "ppt/handoutMasters/handoutMaster1.xml";
1967
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.handoutMaster+xml";
1968
+ readonly presence: {
1969
+ readonly kind: "conditional";
1970
+ readonly flag: "includeHandoutMaster";
1971
+ };
1972
+ }, {
1973
+ readonly path: "ppt/notesSlides/notesSlide${i}.xml";
1974
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml";
1975
+ readonly presence: {
1976
+ readonly kind: "repeated";
1977
+ readonly countFrom: "slides with notes";
1978
+ };
1979
+ }, {
1980
+ readonly path: "ppt/commentAuthors.xml";
1981
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.commentAuthors+xml";
1982
+ readonly presence: {
1983
+ readonly kind: "conditional";
1984
+ readonly flag: "any slide has comments";
1985
+ };
1986
+ }, {
1987
+ readonly path: "ppt/comments/comment${i}.xml";
1988
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.comments+xml";
1989
+ readonly presence: {
1990
+ readonly kind: "repeated";
1991
+ readonly countFrom: "slides with comments";
1992
+ };
1993
+ }, {
1994
+ readonly path: "ppt/charts/chart${i}.xml";
1995
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
1996
+ readonly presence: {
1997
+ readonly kind: "repeated";
1998
+ readonly countFrom: "charts";
1999
+ };
2000
+ }, {
2001
+ readonly path: "ppt/diagrams/data${i}.xml";
2002
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml";
2003
+ readonly presence: {
2004
+ readonly kind: "repeated";
2005
+ readonly countFrom: "smartArts";
2006
+ };
2007
+ }, {
2008
+ readonly path: "ppt/diagrams/layout${i}.xml";
2009
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml";
2010
+ readonly presence: {
2011
+ readonly kind: "repeated";
2012
+ readonly countFrom: "smartArts";
2013
+ };
2014
+ }, {
2015
+ readonly path: "ppt/diagrams/quickStyle${i}.xml";
2016
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml";
2017
+ readonly presence: {
2018
+ readonly kind: "repeated";
2019
+ readonly countFrom: "smartArts";
2020
+ };
2021
+ }, {
2022
+ readonly path: "ppt/diagrams/colors${i}.xml";
2023
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml";
2024
+ readonly presence: {
2025
+ readonly kind: "repeated";
2026
+ readonly countFrom: "smartArts";
2027
+ };
2028
+ }, {
2029
+ readonly path: "ppt/diagrams/drawing${i}.xml";
2030
+ readonly contentType: "application/vnd.ms-office.drawingml.diagramDrawing+xml";
2031
+ readonly presence: {
2032
+ readonly kind: "repeated";
2033
+ readonly countFrom: "smartArts";
2034
+ };
2035
+ }, {
2036
+ readonly path: "ppt/slideSyncPr/slideSyncPr${i}.xml";
2037
+ readonly contentType: "application/vnd.openxmlformats-officedocument.presentationml.slideSyncProperties+xml";
2038
+ readonly presence: {
2039
+ readonly kind: "repeated";
2040
+ readonly countFrom: "slides with slideSync";
2041
+ };
2042
+ }];
2043
+ };
2044
+ declare const XLSX_PARTS: {
2045
+ readonly format: "xlsx";
2046
+ 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"];
2047
+ readonly parts: readonly [{
2048
+ readonly path: "[Content_Types].xml";
2049
+ readonly presence: {
2050
+ readonly kind: "always";
2051
+ };
2052
+ }, {
2053
+ readonly path: "_rels/.rels";
2054
+ readonly presence: {
2055
+ readonly kind: "always";
2056
+ };
2057
+ }, {
2058
+ readonly path: "xl/workbook.xml";
2059
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml";
2060
+ readonly presence: {
2061
+ readonly kind: "always";
2062
+ };
2063
+ }, {
2064
+ readonly path: "docProps/core.xml";
2065
+ readonly contentType: "application/vnd.openxmlformats-package.core-properties+xml";
2066
+ readonly presence: {
2067
+ readonly kind: "conditional";
2068
+ readonly flag: "freshCompile";
2069
+ };
2070
+ }, {
2071
+ readonly path: "docProps/app.xml";
2072
+ readonly contentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml";
2073
+ readonly presence: {
2074
+ readonly kind: "conditional";
2075
+ readonly flag: "freshCompile";
2076
+ };
2077
+ }, {
2078
+ readonly path: "xl/styles.xml";
2079
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml";
2080
+ readonly presence: {
2081
+ readonly kind: "conditional";
2082
+ readonly flag: "freshCompile";
2083
+ };
2084
+ }, {
2085
+ readonly path: "xl/theme/theme1.xml";
2086
+ readonly contentType: "application/vnd.openxmlformats-officedocument.theme+xml";
2087
+ readonly presence: {
2088
+ readonly kind: "conditional";
2089
+ readonly flag: "freshCompile";
2090
+ };
2091
+ }, {
2092
+ readonly path: "xl/sharedStrings.xml";
2093
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml";
2094
+ readonly presence: {
2095
+ readonly kind: "conditional";
2096
+ readonly flag: "sharedStrings.count > 0";
2097
+ };
2098
+ }, {
2099
+ readonly path: "xl/worksheets/sheet${i}.xml";
2100
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml";
2101
+ readonly presence: {
2102
+ readonly kind: "repeated";
2103
+ readonly countFrom: "worksheets.length";
2104
+ };
2105
+ }, {
2106
+ readonly path: "xl/chartsheets/sheet${i}.xml";
2107
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml";
2108
+ readonly presence: {
2109
+ readonly kind: "repeated";
2110
+ readonly countFrom: "chartsheets.length";
2111
+ };
2112
+ }, {
2113
+ readonly path: "xl/drawings/drawing${i}.xml";
2114
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawing+xml";
2115
+ readonly presence: {
2116
+ readonly kind: "conditional";
2117
+ readonly flag: "worksheet has drawing";
2118
+ };
2119
+ }, {
2120
+ readonly path: "xl/comments${i}.xml";
2121
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml";
2122
+ readonly presence: {
2123
+ readonly kind: "conditional";
2124
+ readonly flag: "worksheet.comments.length > 0";
2125
+ };
2126
+ }, {
2127
+ readonly path: "xl/drawings/vmlDrawing${i}.vml";
2128
+ readonly presence: {
2129
+ readonly kind: "conditional";
2130
+ readonly flag: "worksheet.comments (legacy VML)";
2131
+ };
2132
+ }, {
2133
+ readonly path: "xl/charts/chart${i}.xml";
2134
+ readonly contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
2135
+ readonly presence: {
2136
+ readonly kind: "repeated";
2137
+ readonly countFrom: "charts";
2138
+ };
2139
+ }, {
2140
+ readonly path: "xl/pivotTables/pivotTable${i}.xml";
2141
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml";
2142
+ readonly presence: {
2143
+ readonly kind: "repeated";
2144
+ readonly countFrom: "pivotTables";
2145
+ };
2146
+ }, {
2147
+ readonly path: "xl/pivotCache/pivotCacheDefinition${i}.xml";
2148
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml";
2149
+ readonly presence: {
2150
+ readonly kind: "repeated";
2151
+ readonly countFrom: "pivotCaches";
2152
+ };
2153
+ }, {
2154
+ readonly path: "xl/pivotCache/pivotCacheRecords${i}.xml";
2155
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml";
2156
+ readonly presence: {
2157
+ readonly kind: "repeated";
2158
+ readonly countFrom: "pivotCaches";
2159
+ };
2160
+ }, {
2161
+ readonly path: "xl/tables/table${i}.xml";
2162
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml";
2163
+ readonly presence: {
2164
+ readonly kind: "repeated";
2165
+ readonly countFrom: "tables";
2166
+ };
2167
+ }, {
2168
+ readonly path: "xl/externalLinks/externalLink${i}.xml";
2169
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml";
2170
+ readonly presence: {
2171
+ readonly kind: "repeated";
2172
+ readonly countFrom: "externalLinks.length";
2173
+ };
2174
+ }, {
2175
+ readonly path: "xl/calcChain.xml";
2176
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml";
2177
+ readonly presence: {
2178
+ readonly kind: "conditional";
2179
+ readonly flag: "any formula cell";
2180
+ };
2181
+ }, {
2182
+ readonly path: "xl/revisionHeaders.xml";
2183
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml";
2184
+ readonly presence: {
2185
+ readonly kind: "conditional";
2186
+ readonly flag: "revisionLog";
2187
+ };
2188
+ }, {
2189
+ readonly path: "xl/revisions/revision${i}.xml";
2190
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml";
2191
+ readonly presence: {
2192
+ readonly kind: "repeated";
2193
+ readonly countFrom: "revisionLog.logs.length";
2194
+ };
2195
+ }, {
2196
+ readonly path: "xl/users.xml";
2197
+ readonly contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.users+xml";
2198
+ readonly presence: {
2199
+ readonly kind: "conditional";
2200
+ readonly flag: "revisionLog.users";
2201
+ };
2202
+ }];
2203
+ };
2204
+ declare const PART_REGISTRIES: Record<PackagePartRegistry["format"], PackagePartRegistry>;
2205
+ //#endregion
2206
+ //#region src/opc/opc-consistency.d.ts
2207
+ type OpcSeverity = "error" | "warn";
2208
+ type OpcCode = "O1" | "O2" | "O3" | "O5" | "O6" | "O7";
2209
+ interface OpcIssue {
2210
+ code: OpcCode;
2211
+ severity: OpcSeverity;
2212
+ /** Path of the offending part, `.rels`, or Override `PartName`. */
2213
+ part: string;
2214
+ message: string;
2215
+ }
2216
+ /**
2217
+ * Validate OPC consistency of an unzipped package.
2218
+ *
2219
+ * @param entries ZIP path → decoded XML/binary text. Binary parts (media,
2220
+ * fonts) are never parsed here — only their presence matters.
2221
+ * @param registry Declarative part expectations for the package format.
2222
+ * @returns Issues sorted by code then part. Empty array = consistent.
2223
+ */
2224
+ declare function validateOpcConsistency(entries: ReadonlyMap<string, string>, registry: PackagePartRegistry): OpcIssue[];
2225
+ declare function summarizeOpcIssues(issues: readonly OpcIssue[]): {
2226
+ errors: number;
2227
+ warnings: number;
2228
+ };
2229
+ //#endregion
2230
+ //#region src/opc/content-type-overrides.d.ts
2231
+ interface ContentTypeOverrideEntry {
2232
+ partName: string;
2233
+ contentType: string;
2234
+ }
2235
+ /**
2236
+ * Derive [Content_Types].xml Override entries for every registry part present
2237
+ * under `facts`. The `facts` keys mirror the registry's `flag` / `countFrom`
2238
+ * tokens: a boolean for `conditional` parts, a count for `repeated` parts.
2239
+ * Order follows `registry.parts`; OPC does not mandate Override order.
2240
+ */
2241
+ declare function buildContentTypeOverrides(registry: PackagePartRegistry, facts: ReadonlyMap<string, boolean | number>): ContentTypeOverrideEntry[];
2242
+ //#endregion
1600
2243
  //#region src/util/compile.d.ts
1601
2244
  /**
1602
2245
  * Convert a mapping of XML files + overrides + media into a Zippable structure.
@@ -1657,17 +2300,17 @@ declare const convertPointsToEmu: (points: number) => number;
1657
2300
  declare const convertEmuToPoints: (emus: number) => number;
1658
2301
  /** A rectangular position in pixels. */
1659
2302
  interface PixelPosition {
1660
- readonly x: number;
1661
- readonly y: number;
1662
- readonly width: number;
1663
- readonly height: number;
2303
+ x: number;
2304
+ y: number;
2305
+ width: number;
2306
+ height: number;
1664
2307
  }
1665
2308
  /** An EMU-based rectangular position. */
1666
2309
  interface EmuPosition {
1667
- readonly x: number;
1668
- readonly y: number;
1669
- readonly cx: number;
1670
- readonly cy: number;
2310
+ x: number;
2311
+ y: number;
2312
+ cx: number;
2313
+ cy: number;
1671
2314
  }
1672
2315
  /**
1673
2316
  * Converts a pixel-based position to EMU coordinates.
@@ -3349,7 +3992,7 @@ declare const PathFillMode: {
3349
3992
  *
3350
3993
  * Coordinates can be absolute values or references to geometry guide names.
3351
3994
  */
3352
- interface AdjPoint {
3995
+ interface AdjustPoint {
3353
3996
  /** X coordinate (absolute value or guide name) */
3354
3997
  x: string;
3355
3998
  /** Y coordinate (absolute value or guide name) */
@@ -3358,12 +4001,12 @@ interface AdjPoint {
3358
4001
  /** Move-to path command (CT_Path2DMoveTo). */
3359
4002
  interface PathMoveTo {
3360
4003
  command: "moveTo";
3361
- point: AdjPoint;
4004
+ point: AdjustPoint;
3362
4005
  }
3363
4006
  /** Line-to path command (CT_Path2DLineTo). */
3364
4007
  interface PathLineTo {
3365
4008
  command: "lineTo";
3366
- point: AdjPoint;
4009
+ point: AdjustPoint;
3367
4010
  }
3368
4011
  /** Arc-to path command (CT_Path2DArcTo). */
3369
4012
  interface PathArcTo {
@@ -3376,12 +4019,12 @@ interface PathArcTo {
3376
4019
  /** Quadratic Bezier-to path command (CT_Path2DQuadBezierTo). */
3377
4020
  interface PathQuadBezTo {
3378
4021
  command: "quadBezTo";
3379
- points: readonly [AdjPoint, AdjPoint];
4022
+ points: readonly [AdjustPoint, AdjustPoint];
3380
4023
  }
3381
4024
  /** Cubic Bezier-to path command (CT_Path2DCubicBezierTo). */
3382
4025
  interface PathCubicBezTo {
3383
4026
  command: "cubicBezTo";
3384
- points: readonly [AdjPoint, AdjPoint, AdjPoint];
4027
+ points: readonly [AdjustPoint, AdjustPoint, AdjustPoint];
3385
4028
  }
3386
4029
  /** Close path command (CT_Path2DClose). */
3387
4030
  interface PathClose {
@@ -3531,7 +4174,7 @@ interface CustomGeometryOptions {
3531
4174
  /** Connection sites (a:cxnLst) */
3532
4175
  connectionSites?: readonly ConnectionSite[];
3533
4176
  /** Text insertion rectangle (a:rect) */
3534
- textRect?: GeomRect;
4177
+ textRectangle?: GeomRect;
3535
4178
  /** Path definitions (a:pathLst) — required */
3536
4179
  pathList: readonly PathOptions[];
3537
4180
  }
@@ -3551,7 +4194,7 @@ interface CustomGeometryOptions {
3551
4194
  * { command: "close" },
3552
4195
  * ],
3553
4196
  * }],
3554
- * textRect: { left: "2000000", top: "2000000", right: "8000000", bottom: "8000000" },
4197
+ * textRectangle: { left: "2000000", top: "2000000", right: "8000000", bottom: "8000000" },
3555
4198
  * });
3556
4199
  * ```
3557
4200
  */
@@ -3627,7 +4270,7 @@ interface BlipFillOptions {
3627
4270
  /** Image adjustment effects (brightness, contrast, grayscale, etc.) */
3628
4271
  blipEffects?: BlipEffectsOptions;
3629
4272
  /** Source rectangle for cropping */
3630
- srcRect?: SourceRectangleOptions;
4273
+ sourceRectangle?: SourceRectangleOptions;
3631
4274
  /** Tile fill mode (if omitted, defaults to stretch) */
3632
4275
  tile?: TileOptions;
3633
4276
  }
@@ -3795,7 +4438,7 @@ interface TableTextStyleOptions {
3795
4438
  /** Italic style */
3796
4439
  italic?: OnOffStyleType;
3797
4440
  /** Font reference (themeable) */
3798
- fontRef?: StyleMatrixReferenceOptions;
4441
+ fontReference?: StyleMatrixReferenceOptions;
3799
4442
  /** Color element */
3800
4443
  color?: string;
3801
4444
  }
@@ -3803,7 +4446,7 @@ interface TableCellStyleOptions {
3803
4446
  /** Cell borders */
3804
4447
  borders?: TableCellBorderOptions;
3805
4448
  /** Fill reference (themeable) */
3806
- fillRef?: StyleMatrixReferenceOptions;
4449
+ fillReference?: StyleMatrixReferenceOptions;
3807
4450
  /** Direct fill */
3808
4451
  fill?: string;
3809
4452
  }
@@ -3820,8 +4463,8 @@ interface ThemeableLineStyleOptions {
3820
4463
  width?: number;
3821
4464
  /** Fill color component */
3822
4465
  color?: string;
3823
- /** Line reference index into theme style matrix */
3824
- lineRefIdx?: number;
4466
+ /** Line reference (a:lnRef) into the theme style matrix */
4467
+ lineReference?: StyleMatrixReferenceOptions;
3825
4468
  }
3826
4469
  interface StyleMatrixReferenceOptions {
3827
4470
  /** Index into the theme style matrix */
@@ -3904,44 +4547,44 @@ declare function createGroupLocking(opts: GroupLockingOptions): string;
3904
4547
  declare function createGraphicFrameLocking(opts: GraphicFrameLockingOptions): string;
3905
4548
  //#endregion
3906
4549
  //#region src/drawingml/diagram/layout-vars.d.ts
3907
- interface AdjOptions {
4550
+ interface AdjustOptions {
3908
4551
  /** 1-based index (required) */
3909
4552
  idx: number;
3910
4553
  /** Adjustment value (required) */
3911
4554
  val: number;
3912
4555
  }
3913
4556
  /** Creates a dgm:adj element. */
3914
- declare const createAdj: (options: AdjOptions) => string;
3915
- declare const AnimLevelValue: {
4557
+ declare const createAdjust: (options: AdjustOptions) => string;
4558
+ declare const AnimationLevelValue: {
3916
4559
  readonly NONE: "none";
3917
4560
  readonly LEVEL: "lvl";
3918
4561
  readonly CENTER: "ctr";
3919
4562
  };
3920
- interface AnimLvlOptions {
3921
- val?: (typeof AnimLevelValue)[keyof typeof AnimLevelValue];
4563
+ interface AnimationLevelOptions {
4564
+ val?: (typeof AnimationLevelValue)[keyof typeof AnimationLevelValue];
3922
4565
  }
3923
4566
  /** Creates a dgm:animLvl element. */
3924
- declare const createAnimLvl: (options?: AnimLvlOptions) => string;
3925
- declare const AnimOneValue: {
4567
+ declare const createAnimationLevel: (options?: AnimationLevelOptions) => string;
4568
+ declare const AnimateOneByOneValue: {
3926
4569
  readonly NONE: "none";
3927
4570
  readonly ONE: "one";
3928
4571
  readonly BRANCH: "branch";
3929
4572
  };
3930
- interface AnimOneOptions {
3931
- val?: (typeof AnimOneValue)[keyof typeof AnimOneValue];
4573
+ interface AnimateOneByOneOptions {
4574
+ val?: (typeof AnimateOneByOneValue)[keyof typeof AnimateOneByOneValue];
3932
4575
  }
3933
4576
  /** Creates a dgm:animOne element. */
3934
- declare const createAnimOne: (options?: AnimOneOptions) => string;
3935
- interface ChMaxOptions {
4577
+ declare const createAnimateOneByOne: (options?: AnimateOneByOneOptions) => string;
4578
+ interface MaxChildrenOptions {
3936
4579
  val?: number;
3937
4580
  }
3938
4581
  /** Creates a dgm:chMax element. */
3939
- declare const createChMax: (options?: ChMaxOptions) => string;
3940
- interface ChPrefOptions {
4582
+ declare const createMaxChildren: (options?: MaxChildrenOptions) => string;
4583
+ interface PreferredChildrenOptions {
3941
4584
  val?: number;
3942
4585
  }
3943
4586
  /** Creates a dgm:chPref element. */
3944
- declare const createChPref: (options?: ChPrefOptions) => string;
4587
+ declare const createPreferredChildren: (options?: PreferredChildrenOptions) => string;
3945
4588
  interface OrgChartOptions {
3946
4589
  val?: boolean;
3947
4590
  }
@@ -3959,12 +4602,12 @@ interface HierBranchOptions {
3959
4602
  }
3960
4603
  /** Creates a dgm:hierBranch element. */
3961
4604
  declare const createHierBranch: (options?: HierBranchOptions) => string;
3962
- interface PresLayoutVarsOptions {
4605
+ interface PresentationLayoutVariablesOptions {
3963
4606
  orgChart?: OrgChartOptions;
3964
- chMax?: ChMaxOptions;
3965
- chPref?: ChPrefOptions;
3966
- animOne?: AnimOneOptions;
3967
- animLvl?: AnimLvlOptions;
4607
+ maxChildren?: MaxChildrenOptions;
4608
+ preferredChildren?: PreferredChildrenOptions;
4609
+ animateOneByOne?: AnimateOneByOneOptions;
4610
+ animationLevel?: AnimationLevelOptions;
3968
4611
  hierBranch?: HierBranchOptions;
3969
4612
  }
3970
4613
  /**
@@ -3987,12 +4630,12 @@ interface PresLayoutVarsOptions {
3987
4630
  * </xsd:complexType>
3988
4631
  * ```
3989
4632
  */
3990
- declare const createPresLayoutVars: (options?: PresLayoutVarsOptions) => string;
3991
- interface AdjLstOptions {
3992
- adj?: readonly AdjOptions[];
4633
+ declare const createPresentationLayoutVariables: (options?: PresentationLayoutVariablesOptions) => string;
4634
+ interface AdjustListOptions {
4635
+ adjustments?: readonly AdjustOptions[];
3993
4636
  }
3994
4637
  /** Creates a dgm:adjLst element containing dgm:adj children. */
3995
- declare const createAdjLst: (options?: AdjLstOptions) => string;
4638
+ declare const createAdjustList: (options?: AdjustListOptions) => string;
3996
4639
  //#endregion
3997
4640
  //#region src/drawingml/diagram/headers.d.ts
3998
4641
  interface DiagramNameOptions {
@@ -4007,7 +4650,7 @@ interface DiagramCategoryOptions {
4007
4650
  type: string;
4008
4651
  pri: number;
4009
4652
  }
4010
- interface ColorsDefHdrOptions {
4653
+ interface ColorsDefinitionHeaderOptions {
4011
4654
  uniqueId: string;
4012
4655
  minVer?: string;
4013
4656
  resId?: number;
@@ -4033,13 +4676,13 @@ interface ColorsDefHdrOptions {
4033
4676
  * </xsd:complexType>
4034
4677
  * ```
4035
4678
  */
4036
- declare const createColorsDefHdr: (options: ColorsDefHdrOptions) => string;
4037
- interface ColorsDefHdrLstOptions {
4038
- headers?: readonly ColorsDefHdrOptions[];
4679
+ declare const createColorsDefinitionHeader: (options: ColorsDefinitionHeaderOptions) => string;
4680
+ interface ColorsDefinitionHeaderListOptions {
4681
+ headers?: readonly ColorsDefinitionHeaderOptions[];
4039
4682
  }
4040
4683
  /** Creates a dgm:colorsDefHdrLst element. */
4041
- declare const createColorsDefHdrLst: (options?: ColorsDefHdrLstOptions) => string;
4042
- interface LayoutDefHdrOptions {
4684
+ declare const createColorsDefinitionHeaderList: (options?: ColorsDefinitionHeaderListOptions) => string;
4685
+ interface LayoutDefinitionHeaderOptions {
4043
4686
  uniqueId: string;
4044
4687
  minVer?: string;
4045
4688
  defStyle?: string;
@@ -4067,13 +4710,13 @@ interface LayoutDefHdrOptions {
4067
4710
  * </xsd:complexType>
4068
4711
  * ```
4069
4712
  */
4070
- declare const createLayoutDefHdr: (options: LayoutDefHdrOptions) => string;
4071
- interface LayoutDefHdrLstOptions {
4072
- headers?: readonly LayoutDefHdrOptions[];
4713
+ declare const createLayoutDefinitionHeader: (options: LayoutDefinitionHeaderOptions) => string;
4714
+ interface LayoutDefinitionHeaderListOptions {
4715
+ headers?: readonly LayoutDefinitionHeaderOptions[];
4073
4716
  }
4074
4717
  /** Creates a dgm:layoutDefHdrLst element. */
4075
- declare const createLayoutDefHdrLst: (options?: LayoutDefHdrLstOptions) => string;
4076
- interface StyleDefHdrOptions {
4718
+ declare const createLayoutDefinitionHeaderList: (options?: LayoutDefinitionHeaderListOptions) => string;
4719
+ interface StyleDefinitionHeaderOptions {
4077
4720
  uniqueId: string;
4078
4721
  minVer?: string;
4079
4722
  resId?: number;
@@ -4099,12 +4742,12 @@ interface StyleDefHdrOptions {
4099
4742
  * </xsd:complexType>
4100
4743
  * ```
4101
4744
  */
4102
- declare const createStyleDefHdr: (options: StyleDefHdrOptions) => string;
4103
- interface StyleDefHdrLstOptions {
4104
- headers?: readonly StyleDefHdrOptions[];
4745
+ declare const createStyleDefinitionHeader: (options: StyleDefinitionHeaderOptions) => string;
4746
+ interface StyleDefinitionHeaderListOptions {
4747
+ headers?: readonly StyleDefinitionHeaderOptions[];
4105
4748
  }
4106
4749
  /** Creates a dgm:styleDefHdrLst element. */
4107
- declare const createStyleDefHdrLst: (options?: StyleDefHdrLstOptions) => string;
4750
+ declare const createStyleDefinitionHeaderList: (options?: StyleDefinitionHeaderListOptions) => string;
4108
4751
  //#endregion
4109
4752
  //#region src/drawingml/diagram/diagram-style.d.ts
4110
4753
  declare const StyleMatrixIndex: {
@@ -4117,15 +4760,25 @@ declare const FontCollectionIndex: {
4117
4760
  readonly MINOR: "minor";
4118
4761
  readonly NONE: "none";
4119
4762
  };
4763
+ /** Reference into the theme style matrix (a:lnRef/fillRef/effectRef). */
4764
+ interface DiagramStyleReferenceOptions {
4765
+ /** Index into the theme style matrix (a:*Ref @idx) */
4766
+ idx: number;
4767
+ }
4768
+ /** Font reference (a:fontRef) — idx is a FontCollectionIndex (major/minor/none). */
4769
+ interface DiagramFontReferenceOptions {
4770
+ /** Font collection index (FontCollectionIndex.MAJOR/MINOR/NONE) */
4771
+ idx: string;
4772
+ }
4120
4773
  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;
4774
+ /** Line reference (a:lnRef) */
4775
+ lineReference?: DiagramStyleReferenceOptions;
4776
+ /** Fill reference (a:fillRef) */
4777
+ fillReference?: DiagramStyleReferenceOptions;
4778
+ /** Effect reference (a:effectRef) */
4779
+ effectReference?: DiagramStyleReferenceOptions;
4780
+ /** Font reference (a:fontRef) */
4781
+ fontReference?: DiagramFontReferenceOptions;
4129
4782
  }
4130
4783
  /**
4131
4784
  * Creates a dgm:style element (a:CT_ShapeStyle).
@@ -4160,21 +4813,21 @@ interface ColorListOptions {
4160
4813
  /** Colors (EG_ColorChoice items) */
4161
4814
  colors?: readonly SolidFillOptions[];
4162
4815
  }
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 {
4816
+ declare const createFillColorList: (options?: ColorListOptions) => string;
4817
+ declare const createLineColorList: (options?: ColorListOptions) => string;
4818
+ declare const createEffectColorList: (options?: ColorListOptions) => string;
4819
+ declare const createTextFillColorList: (options?: ColorListOptions) => string;
4820
+ declare const createTextLineColorList: (options?: ColorListOptions) => string;
4821
+ declare const createTextEffectColorList: (options?: ColorListOptions) => string;
4822
+ interface DiagramStyleLabelOptions {
4170
4823
  /** Label name (required) */
4171
4824
  name: string;
4172
- fillClrLst?: ColorListOptions;
4173
- linClrLst?: ColorListOptions;
4174
- effectClrLst?: ColorListOptions;
4175
- txFillClrLst?: ColorListOptions;
4176
- txLinClrLst?: ColorListOptions;
4177
- txEffectClrLst?: ColorListOptions;
4825
+ fillColorList?: ColorListOptions;
4826
+ lineColorList?: ColorListOptions;
4827
+ effectColorList?: ColorListOptions;
4828
+ textFillColorList?: ColorListOptions;
4829
+ textLineColorList?: ColorListOptions;
4830
+ textEffectColorList?: ColorListOptions;
4178
4831
  }
4179
4832
  /**
4180
4833
  * Creates a dgm:styleLbl element (CT_StyleLabel or CT_CTStyleLabel).
@@ -4209,7 +4862,7 @@ interface DiagramStyleLblOptions {
4209
4862
  * </xsd:complexType>
4210
4863
  * ```
4211
4864
  */
4212
- declare const createStyleLbl: (options: DiagramStyleLblOptions) => string;
4865
+ declare const createStyleLabel: (options: DiagramStyleLabelOptions) => string;
4213
4866
  //#endregion
4214
4867
  //#region src/drawingml/diagram/diagram-rel.d.ts
4215
4868
  /**
@@ -4219,7 +4872,7 @@ declare const createStyleLbl: (options: DiagramStyleLblOptions) => string;
4219
4872
  *
4220
4873
  * @module
4221
4874
  */
4222
- interface DiagramRelIdsOptions {
4875
+ interface DiagramRelationshipIdsOptions {
4223
4876
  /** Relationship to data model part */
4224
4877
  dm: string;
4225
4878
  /** Relationship to layout definition part */
@@ -4242,10 +4895,10 @@ interface DiagramRelIdsOptions {
4242
4895
  * </xsd:complexType>
4243
4896
  * ```
4244
4897
  */
4245
- declare const createDiagramRelIds: (options: DiagramRelIdsOptions) => string;
4898
+ declare const createDiagramRelationshipIds: (options: DiagramRelationshipIdsOptions) => string;
4246
4899
  //#endregion
4247
4900
  //#region src/drawingml/diagram/diagram-props.d.ts
4248
- interface DiagramExtLstOptions {
4901
+ interface DiagramExtensionListOptions {
4249
4902
  /** Extension URIs */
4250
4903
  extensions?: readonly DiagramExtensionOptions[];
4251
4904
  }
@@ -4258,14 +4911,14 @@ interface DiagramExtensionOptions {
4258
4911
  *
4259
4912
  * Generic extension list pattern used across OOXML.
4260
4913
  */
4261
- declare const createDiagramExtLst: (options?: DiagramExtLstOptions) => string;
4914
+ declare const createDiagramExtensionList: (options?: DiagramExtensionListOptions) => string;
4262
4915
  /**
4263
4916
  * Creates a dgm:sp3d element wrapping a:CT_Shape3D.
4264
4917
  *
4265
4918
  * Delegates to the shared createShape3D factory but wraps in dgm: namespace context.
4266
4919
  */
4267
- declare const createDiagramSp3d: (options: Shape3DOptions) => string;
4268
- interface DiagramTextPropsOptions {
4920
+ declare const createDiagramShape3D: (options: Shape3DOptions) => string;
4921
+ interface DiagramTextPropertiesOptions {
4269
4922
  /** 3D text properties (flat text, no 3D) — empty element */
4270
4923
  flat?: boolean;
4271
4924
  }
@@ -4281,7 +4934,7 @@ interface DiagramTextPropsOptions {
4281
4934
  * </xsd:complexType>
4282
4935
  * ```
4283
4936
  */
4284
- declare const createDiagramTxPr: (_options?: DiagramTextPropsOptions) => string;
4937
+ declare const createDiagramTextProperties: (_options?: DiagramTextPropertiesOptions) => string;
4285
4938
  //#endregion
4286
4939
  //#region src/drawingml/color/color-descriptors.d.ts
4287
4940
  declare const rgbColorDesc: CustomDescriptor<RgbColorOptions>;
@@ -4343,9 +4996,9 @@ declare const blipFillDesc: CustomDescriptor<BlipFillOptions & {
4343
4996
  }>;
4344
4997
  //#endregion
4345
4998
  //#region src/drawingml/diagram/diagram-descriptors.d.ts
4346
- declare const diagramRelIdsDesc: CustomDescriptor<DiagramRelIdsOptions>;
4999
+ declare const diagramRelationshipIdsDesc: CustomDescriptor<DiagramRelationshipIdsOptions>;
4347
5000
  declare const diagramStyleDesc: CustomDescriptor<DiagramStyleOptions>;
4348
- declare const presLayoutVarsDesc: CustomDescriptor<PresLayoutVarsOptions>;
4349
- declare const diagramExtLstDesc: CustomDescriptor<DiagramExtLstOptions>;
5001
+ declare const presentationLayoutVariablesDesc: CustomDescriptor<PresentationLayoutVariablesOptions>;
5002
+ declare const diagramExtensionListDesc: CustomDescriptor<DiagramExtensionListOptions>;
4350
5003
  //#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 };
5004
+ export { createLineColorList as $, TileOptions as $a, parseArchive as $i, calculateEffectExtent as $n, xsdLineCap as $r, TableStyleListOptions as $t, rgbColorDesc as A, TargetModeType as Aa, convertPointsToEmu as Ai, stringifyAdjustmentValues as An, createCustomDash as Ar, PresentationLayoutVariablesOptions as At, createDiagramTextProperties as B, buildFill as Ba, OpcCode as Bi, LightRigOptions as Bn, hasPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, appPropertiesDesc as Ca, convertEmuToInches as Ci, PathCommand as Cn, ColorTransformOptions as Co, createOutline as Cr, AnimationLevelOptions as Ct, hslColorDesc as D, createOverride as Da, convertInchesToTwip as Di, PresetGeometryOptions as Dn, LineEndWidth as Dr, MaxChildrenOptions as Dt, getColorDescriptor as E, createDefault as Ea, convertInchesToEmu as Ei, createCustomGeometry as En, LineEndType as Er, HierBranchStyle as Et, DiagramExtensionListOptions as F, createNoFill as Fa, convertUniversalMeasureToTwip as Fi, BevelPresetType as Fn, findAndReplaceImagePlaceholders as Fr, createHierBranch as Ft, DiagramStyleLabelOptions as G, LinearShadeOptions as Ga, DOCX_PARTS as Gi, createScene3D as Gn, replaceMediaPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelationshipIds as H, GradientFillOptions as Ha, OpcSeverity as Hi, Scene3DOptions as Hn, replaceChartPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, BlipFillConfigOptions as Ia, parseUniversalMeasure as Ii, createBevel as In, formatId as Ir, createMaxChildren as It, HueDirection as J, RelativeRect as Ja, PackagePartRegistry as Ji, EffectDagOptions as Jn, replaceVideoPlaceholders as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, PathShadeOptions as Ka, PART_REGISTRIES as Ki, createSoftEdgeEffect as Kn, replaceNumberingPlaceholders as Kr, createPictureLocking as Kt, DiagramTextPropertiesOptions as L, BlipFillMediaData as La, compileMapping as Li, createBottomBevel as Ln, getMediaRefs as Lr, createOrgChart as Lt, schemeColorDesc as M, PatternFillOptions as Ma, convertToEmu as Mi, Shape3DOptions as Mn, SmartArtRelOptions as Mr, createAdjustList as Mt, solidFillDesc as N, PresetPattern as Na, convertToTwip as Ni, createShape3D as Nn, addSmartArtRelationships as Nr, createAnimateOneByOne as Nt, parseColorChoice as O, RelationshipType as Oa, convertMillimetersToTwip as Oi, stringifyPresetGeometry as On, createLineEnd as Or, OrgChartOptions as Ot, systemColorDesc as P, createPatternFill as Pa, convertUniversalMeasureToEmu as Pi, BevelOptions as Pn, collectPlaceholderKeys as Pr, createAnimationLevel as Pt, createFillColorList as Q, TileAlignment as Qa, ParsedArchive as Qi, EffectListOptions as Qn, xsdEffectContainer as Qr, TablePartStyleOptions as Qt, createDiagramExtensionList as R, FillOptions as Ra, ContentTypeOverrideEntry as Ri, BackdropOptions as Rn, getReferencedMedia as Rr, createPreferredChildren as Rt, outlineDesc as S, AppPropertiesOptions as Sa, PixelPosition as Si, GeomRect as Sn, createHslColor as So, PresetDash as Sr, AnimateOneByOneValue as St, patternFillDesc as T, OverrideAttributes as Ta, convertEmuToPoints as Ti, PathOptions as Tn, LineEndOptions as Tr, HierBranchOptions as Tt, ColorListOptions as U, GradientShadeOptions as Ua, summarizeOpcIssues as Ui, SphereCoords as Un, replaceHyperlinkPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelationshipIdsOptions as V, extractBlipFillMedia as Va, OpcIssue as Vi, Point3D as Vn, replaceAllPlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, GradientStop as Wa, validateOpcConsistency as Wi, Vector3D as Wn, replaceImagePlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, createGradientFill as Xa, PartPresence as Xi, BlurEffectOptions as Xn, xsdBlendMode as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, TileFlipMode as Ya, PartDef as Yi, createEffectDag as Yn, invertMap as Yr, StyleMatrixReferenceOptions as Yt, createEffectColorList as Z, createGradientStop as Za, XLSX_PARTS as Zi, EffectExtent as Zn, xsdCompoundLine as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, zipSyncAndConvert as _a, uniqueUuid as _i, createBlipFill as _n, createRgbColor as _o, LineCap as _r, createStyleDefinitionHeader as _t, blipDesc as a, PackerOptions as aa, xsdPresetShadow as ai, createTableStyleList as an, SolidFillOptions as ao, createPresetShadowEffect as ar, ColorsDefinitionHeaderOptions as at, shapeLockingDesc as b, customPropertiesDesc as ba, randomBytes as bi, ConnectionSite as bn, createPresetColor as bo, OutlineOptions as br, AdjustOptions as bt, stretchDesc as c, ZIP_STORED_LEVEL as ca, xsdTextAlign as ci, MediaTransformation as cn, SystemColor as co, createOuterShadowEffect as cr, DiagramNameOptions as ct, scene3DDesc as d, createPacker as da, xsdUnderlineStyle as di, Transform2DOptions as dn, SchemeColor as do, GlowEffectOptions as dr, StyleDefinitionHeaderListOptions as dt, decodeBase64 as ea, xsdLineEndSize as ei, TableStyleOptions as en, createTileInfo as eo, createEffectList as er, createStyleLabel as et, shape3DDesc as f, createZipStream as fa, xsdVerticalMergeRev as fi, createGroupTransform2D as fn, SchemeColorOptions as fo, createGlowEffect as fr, StyleDefinitionHeaderOptions as ft, presetGeometryDesc as g, zipAndConvert as ga, uniqueNumericIdCreator as gi, BlipFillOptions as gn, RgbColorOptions as go, CompoundLine as gr, createLayoutDefinitionHeaderList as gt, customGeometryDesc as h, unzipSync$1 as ha, uniqueId as hi, createExtentionList as hn, createScRgbColor as ho, createFillOverlayEffect as hr, createLayoutDefinitionHeader as ht, presentationLayoutVariablesDesc as i, Packer as ia, xsdPenAlignment as ii, createTableStyle as in, createBlipEffects as io, PresetShadowVal as ir, ColorsDefinitionHeaderListOptions as it, scRgbColorDesc as j, createGroupFill as ja, convertPositionToEmu as ji, PresetMaterialType as jn, IdFormat as jr, createAdjust as jt, presetColorDesc as k, Relationships as ka, convertPixelsToEmu as ki, GeometryGuide as kn, DashStop as kr, PreferredChildrenOptions as kt, tileDesc as l, ZipOptions as la, xsdTextAnchor as li, createTransformation as ln, SystemColorOptions as lo, InnerShadowEffectOptions as lr, LayoutDefinitionHeaderListOptions as lt, transform2DDesc as m, strFromU8$1 as ma, hashedId as mi, stringifyStretch as mn, ScRgbColorOptions as mo, FillOverlayEffectOptions as mr, createColorsDefinitionHeaderList as mt, diagramRelationshipIdsDesc as n, CompileFn as na, xsdPathFillMode as ni, TableTextStyleOptions as nn, createSourceRectangle as no, createReflectionEffect as nr, createTextFillColorList as nt, blipFillDesc as o, XmlifyedFile as oa, xsdRectAlignment as oi, parseTableStyleList as on, createColorElement as oo, OuterShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, levelForMediaName as pa, UniqueNumericIdCreator as pi, createTransform2D as pn, createSchemeColor as po, BlendMode as pr, createColorsDefinitionHeader as pt, FontCollectionIndex as q, PathShadeType as qa, PPTX_PARTS as qi, EffectContainerType as qn, replaceSmartArtPlaceholders as qr, createShapeLocking as qt, diagramStyleDesc as r, CompressionOptions as ra, xsdPattern as ri, ThemeableLineStyleOptions as rn, BlipEffectsOptions as ro, PresetShadowEffectOptions as rr, createTextLineColorList as rt, sourceRectangleDesc as s, ZIP_DEFLATE_LEVEL as sa, xsdStrikeStyle as si, MediaDataTransformation as sn, createSolidFill as so, RectAlignment as sr, DiagramDescriptionOptions as st, diagramExtensionListDesc as t, encodeBase64 as ta, xsdMaterialType as ti, TableStyleRegion as tn, SourceRectangleOptions as to, ReflectionEffectOptions as tr, createTextEffectColorList as tt, bevelDesc as u, Zippable$1 as ua, xsdTextCaps as ui, GroupTransform2DOptions as un, createSystemColor as uo, createInnerShadowEffect as ur, LayoutDefinitionHeaderOptions as ut, groupLockingDesc as v, CustomPropertiesInput as va, derivePasswordHash as vi, BlipOptions as vn, PresetColor as vo, LineJoin as vr, createStyleDefinitionHeaderList as vt, gradientFillDesc as w, DefaultAttributes as wa, convertEmuToPixels as wi, PathFillMode as wn, createColorTransforms as wo, LineEndLength as wr, AnimationLevelValue as wt, effectListDesc as x, AppPropertiesInput as xa, EmuPosition as xi, CustomGeometryOptions as xn, HslColorOptions as xo, PenAlignment as xr, AnimateOneByOneOptions as xt, pictureLockingDesc as y, CustomPropertyOptions as ya, hashPasswordAgile as yi, createBlip as yn, PresetColorOptions as yo, OutlineFillProperties as yr, AdjustListOptions as yt, createDiagramShape3D as z, GradientStopOptions as za, buildContentTypeOverrides as zi, CameraOptions as zn, getVideoRefs as zr, createPresentationLayoutVariables as zt };