@office-open/core 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,52 @@
1
+ import { S as Context, x as BaseXmlComponent } from "./index-CoTp4wVf.mjs";
2
+
3
+ //#region src/theme/theme-options.d.ts
4
+ /**
5
+ * Theme options for OOXML documents.
6
+ *
7
+ * @module
8
+ */
9
+ /** Color scheme — 12 theme colors (hex without #). */
10
+ interface ColorSchemeOptions {
11
+ readonly dark1?: string;
12
+ readonly light1?: string;
13
+ readonly dark2?: string;
14
+ readonly light2?: string;
15
+ readonly accent1?: string;
16
+ readonly accent2?: string;
17
+ readonly accent3?: string;
18
+ readonly accent4?: string;
19
+ readonly accent5?: string;
20
+ readonly accent6?: string;
21
+ readonly hyperlink?: string;
22
+ readonly followedHyperlink?: string;
23
+ }
24
+ /** Font scheme — 4 font slots (latin + east-asian for major/minor). */
25
+ interface FontSchemeOptions {
26
+ readonly majorFont?: string;
27
+ readonly minorFont?: string;
28
+ readonly majorFontAsian?: string;
29
+ readonly minorFontAsian?: string;
30
+ }
31
+ /** Theme customization options. */
32
+ interface ThemeOptions {
33
+ readonly name?: string;
34
+ readonly colors?: ColorSchemeOptions;
35
+ readonly fonts?: FontSchemeOptions;
36
+ }
37
+ //#endregion
38
+ //#region src/theme/default-theme.d.ts
39
+ declare class DefaultTheme extends BaseXmlComponent {
40
+ private readonly xml;
41
+ constructor(options?: ThemeOptions);
42
+ toXml(_context: Context): string;
43
+ }
44
+ //#endregion
45
+ //#region src/theme/build-theme-xml.d.ts
46
+ declare function buildThemeXml(options?: ThemeOptions): string;
47
+ //#endregion
48
+ //#region src/theme/default-colors.d.ts
49
+ /** Office 2016+ default theme colors (hex without #). */
50
+ declare const DEFAULT_COLORS: Required<ColorSchemeOptions>;
51
+ //#endregion
52
+ export { FontSchemeOptions as a, ColorSchemeOptions as i, buildThemeXml as n, ThemeOptions as o, DefaultTheme as r, DEFAULT_COLORS as t };
@@ -38,10 +38,6 @@ declare abstract class BaseXmlComponent {
38
38
  /** The XML element name for this component (e.g., "w:p" for paragraph). */
39
39
  protected readonly rootKey: string;
40
40
  constructor(rootKey: string);
41
- /**
42
- * @deprecated Use `toXml()` instead.
43
- */
44
- prepForXml(_context: Context): IXmlableObject | undefined;
45
41
  /**
46
42
  * Direct XML serialization. Override in subclasses for zero-allocation output.
47
43
  */
@@ -69,17 +65,13 @@ declare abstract class XmlComponent extends BaseXmlComponent {
69
65
  */
70
66
  root: (BaseXmlComponent | IXmlableObject | string)[];
71
67
  constructor(rootKey: string);
72
- /**
73
- * @deprecated Use `toXml()` instead.
74
- */
75
- prepForXml(context: Context): IXmlableObject | undefined;
76
68
  /**
77
69
  * Direct XML serialization — traverses `root` and calls `toXml()` on
78
70
  * each child, concatenating the results into a single string.
79
71
  */
80
72
  toXml(context: Context): string;
81
73
  /**
82
- * @deprecated Internal use only.
74
+ * @internal
83
75
  */
84
76
  addChildElement(child: BaseXmlComponent | string): XmlComponent;
85
77
  }
@@ -89,10 +81,6 @@ declare abstract class XmlComponent extends BaseXmlComponent {
89
81
  declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
90
82
  private readonly includeIfEmpty;
91
83
  constructor(rootKey: string, includeIfEmpty?: boolean);
92
- /**
93
- * @deprecated Use `toXml()` instead.
94
- */
95
- prepForXml(context: Context): IXmlableObject | undefined;
96
84
  /**
97
85
  * Suppress empty elements — super.toXml() produces a self-closing tag
98
86
  * (`<tag/>`) when there are no child elements; IgnoreIfEmpty returns ""
@@ -200,10 +188,6 @@ declare class ImportedXmlComponent extends XmlComponent {
200
188
  declare class ImportedRootElementAttributes extends XmlComponent {
201
189
  private readonly _attr?;
202
190
  constructor(_attr?: Attributes | undefined);
203
- /**
204
- * @deprecated Use `toXml()` instead.
205
- */
206
- prepForXml(_context: Context): IXmlableObject;
207
191
  toXml(_context: Context): string;
208
192
  }
209
193
  //#endregion
@@ -1,4 +1,4 @@
1
- import { b as XmlComponent } from "./index-Borh69Zs.mjs";
1
+ import { b as XmlComponent } from "./index-CoTp4wVf.mjs";
2
2
 
3
3
  //#region src/smartart/categories.d.ts
4
4
  /** Layout ID → OOXML category type */
@@ -16,11 +16,13 @@ declare const COLOR_CATEGORIES: Record<string, string>;
16
16
  */
17
17
  declare function getLayoutXml(layoutId: string): string;
18
18
  /**
19
- * Returns style stub XML with the given uniqueId.
19
+ * Returns style XML with basic style definitions (fillClrLst, linClrLst, etc.)
20
+ * that allow PowerPoint to correctly render SmartArt colors and effects.
20
21
  */
21
22
  declare function getStyleXml(styleId: string): string;
22
23
  /**
23
- * Returns color stub XML with the given uniqueId.
24
+ * Returns color XML with basic color definitions (fillLst, linLst, etc.)
25
+ * that allow PowerPoint to correctly render SmartArt with the specified color scheme.
24
26
  */
25
27
  declare function getColorXml(colorId: string): string;
26
28
  /** Minimal drawing cache for SmartArt (Office apps auto-regenerate this on open) */
@@ -31,7 +33,7 @@ declare const DEFAULT_DRAWING_XML: string;
31
33
  * dgm:cxn — SmartArt data model connection (edge).
32
34
  */
33
35
  declare class Connection extends XmlComponent {
34
- constructor(modelId: string, srcId: string, destId: string, type?: string, srcOrd?: number, destOrd?: number, parTransId?: string, sibTransId?: string);
36
+ constructor(modelId: string, srcId: string, destId: string, type?: string, srcOrd?: number, destOrd?: number, parTransId?: string, sibTransId?: string, presId?: string);
35
37
  }
36
38
  //#endregion
37
39
  //#region src/smartart/data-model/data-model.d.ts
@@ -43,11 +45,47 @@ declare class DataModel extends XmlComponent {
43
45
  }
44
46
  //#endregion
45
47
  //#region src/smartart/data-model/point.d.ts
48
+ interface PointPropertySetOptions {
49
+ readonly presentationAssociationId?: string;
50
+ readonly presentationName?: string;
51
+ readonly presentationStyleLabel?: string;
52
+ readonly presentationStyleIndex?: number;
53
+ readonly presentationStyleCount?: number;
54
+ readonly placeholderText?: string;
55
+ readonly placeholder?: boolean;
56
+ readonly customAngle?: number;
57
+ readonly customFlipVertical?: boolean;
58
+ readonly customFlipHorizontal?: boolean;
59
+ readonly customSizeX?: number;
60
+ readonly customSizeY?: number;
61
+ readonly customScaleX?: number;
62
+ readonly customScaleY?: number;
63
+ readonly customText?: boolean;
64
+ readonly customLinearFactorX?: number;
65
+ readonly customLinearFactorY?: number;
66
+ readonly customLinearFactorNeighborX?: number;
67
+ readonly customLinearFactorNeighborY?: number;
68
+ readonly customRadialScaleRadius?: number;
69
+ readonly customRadialScaleIncrement?: number;
70
+ readonly coherent3DOffset?: boolean;
71
+ readonly hideGeometry?: boolean;
72
+ readonly hideLastTransition?: boolean;
73
+ readonly lockTextEntry?: boolean;
74
+ readonly moveWith?: string;
75
+ readonly useDefault?: boolean;
76
+ readonly zOrderOffset?: number;
77
+ readonly layoutTypeId?: string;
78
+ readonly layoutCategoryId?: string;
79
+ readonly quickStyleTypeId?: string;
80
+ readonly quickStyleCategoryId?: string;
81
+ readonly colorStyleTypeId?: string;
82
+ readonly colorStyleCategoryId?: string;
83
+ }
46
84
  /**
47
85
  * dgm:pt — SmartArt data model point (node).
48
86
  */
49
87
  declare class Point extends XmlComponent {
50
- constructor(modelId: string, text: string, type?: string);
88
+ constructor(modelId: string, text: string, type?: string, propertySet?: PointPropertySetOptions);
51
89
  }
52
90
  /**
53
91
  * Transition point (parTrans or sibTrans) — no text body, references a connection.
@@ -84,4 +122,4 @@ interface TreeNode {
84
122
  */
85
123
  declare const createDataModel: (nodes: readonly TreeNode[], layout?: string, style?: string, color?: string) => DataModel;
86
124
  //#endregion
87
- export { Point as a, Connection as c, getLayoutXml as d, getStyleXml as f, STYLE_CATEGORIES as h, SmartArtData as i, DEFAULT_DRAWING_XML as l, LAYOUT_CATEGORIES as m, createDataModel as n, TransPoint as o, COLOR_CATEGORIES as p, SmartArtCollection as r, DataModel as s, TreeNode as t, getColorXml as u };
125
+ export { Point as a, DataModel as c, getColorXml as d, getLayoutXml as f, STYLE_CATEGORIES as g, LAYOUT_CATEGORIES as h, SmartArtData as i, Connection as l, COLOR_CATEGORIES as m, createDataModel as n, PointPropertySetOptions as o, getStyleXml as p, SmartArtCollection as r, TransPoint as s, TreeNode as t, DEFAULT_DRAWING_XML as u };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,14 @@
1
- import { C as IXmlAttribute, S as Context, _ as AttributePayload, a as BuilderElement, b as XmlComponent, c as buildAttrObject, d as numberValObj, f as onOffObj, g as wrapEl, h as stringValObj, i as convertToXmlComponent, l as chartAttr, m as stringEnumValObj, n as ImportedRootElementAttributes, o as EmptyElement, p as stringContainerObj, r as ImportedXmlComponent, s as attrObj, t as InitializableXmlComponent, u as hpsMeasureObj, v as EMPTY_OBJECT, w as IXmlableObject, x as BaseXmlComponent, y as IgnoreIfEmptyXmlComponent } from "./index-Borh69Zs.mjs";
1
+ import { C as IXmlAttribute, S as Context, _ as AttributePayload, a as BuilderElement, b as XmlComponent, c as buildAttrObject, d as numberValObj, f as onOffObj, g as wrapEl, h as stringValObj, i as convertToXmlComponent, l as chartAttr, m as stringEnumValObj, n as ImportedRootElementAttributes, o as EmptyElement, p as stringContainerObj, r as ImportedXmlComponent, s as attrObj, t as InitializableXmlComponent, u as hpsMeasureObj, v as EMPTY_OBJECT, w as IXmlableObject, x as BaseXmlComponent, y as IgnoreIfEmptyXmlComponent } from "./index-CoTp4wVf.mjs";
2
2
  import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-COjPGYkS.mjs";
3
- import { A as CatAx, C as BubbleChartOptions, D as createChartType, E as ChartTypeOptions, M as ValAx, O as BubbleChart, S as AxisChartType, T as ChartType, _ as ChartCollection, a as Pie3DChart, b as ChartSpaceOptions, c as LineChart, d as BarChart, f as Area3DChart, g as createStrRef, h as createNumRef, i as RadarChart, j as SerAx, k as BubbleSeriesData, l as DoughnutChart, m as ChartTitle, n as StockChart, o as PieChart, p as AreaChart, r as ScatterChart, s as Line3DChart, t as SurfaceChart, u as Bar3DChart, v as ChartData, w as ChartSeriesData, x as AllChartTypeOptions, y as ChartSpace } from "./index-C4Wm3RBo.mjs";
4
- import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "./index-BWboZ6Uq.mjs";
5
- import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "./index-f_Izh2dj.mjs";
3
+ import { A as DataLabelsOptions, B as TrendlineType, C as BubbleChartOptions, D as createChartType, E as ChartTypeOptions, F as ErrorBars, G as CatAx, H as View3DOptions, I as ErrorValueType, K as SerAx, L as TimeUnit, M as ErrorBarDirection, N as ErrorBarOptions, O as DataLabelPosition, P as ErrorBarType, R as Trendline, S as AxisChartType, T as ChartType, U as BubbleChart, V as View3D, W as BubbleSeriesData, _ as ChartCollection, a as Pie3DChart, b as ChartSpaceOptions, c as LineChart, d as BarChart, f as Area3DChart, g as createStrRef, h as createNumRef, i as RadarChart, j as DateAx, k as DataLabels, l as DoughnutChart, m as ChartTitle, n as StockChart, o as PieChart, p as AreaChart, q as ValAx, r as ScatterChart, s as Line3DChart, t as SurfaceChart, u as Bar3DChart, v as ChartData, w as ChartSeriesData, x as AllChartTypeOptions, y as ChartSpace, z as TrendlineOptions } from "./index-Bh6s66Up.mjs";
4
+ import { $ as createSp, $a as createCdrCNvGrpSpPr, $c as RgbColorOptions, $i as createOfPieChart, $n as createWpSpPr, $o as Stretch, $r as createCustUnit, $s as CompoundLine, $t as StyleDefHdrOptions, A as createGrpSp, Aa as createSplitPos, Ac as PathShadeType, Ai as createLegacyDrawingHF, An as WpGroupOptions, Ao as createGraphicFrameLocking, Ar as createXdrSpPr, As as createScene3D, At as ColorListOptions, B as createLnDef, Ba as createUpDownBars, Bc as BlipEffectsOptions, Bi as createMax, Bn as createWpCNvGrpSpPr, Bo as TableStyleOptions, Br as createAutoUpdate, Bs as PresetShadowEffectOptions, Bt as createLinClrLst, C as createCxnSpLocks, Ca as createShowNegBubbles, Cc as buildFill, Ci as createHeaderFooter, Cn as createChPref, Co as createCdrY, Cr as createXdrNvPicPr, Cs as BackdropOptions, Ct as DiagramExtensionOptions, D as createExtraClrScheme, Da as createSize, Dc as GradientStop, Di as createLayoutTarget, Dn as WpCanvasOptions, Do as GroupLockingOptions, Dr as createXdrRow, Ds as Scene3DOptions, Dt as createDiagramTxPr, E as createEndCxn, Ea as createSideWall, Ec as GradientShadeOptions, Ei as createInvertIfNegative, En as createPresLayoutVars, Eo as GraphicFrameLockingOptions, Er as createXdrPic, Es as Point3D, Et as createDiagramSp3d, F as createHlinkMouseOver, Fa as createThickness, Fc as TileAlignment, Fi as createMajorTickMark, Fn as createWpBg, Fo as StyleMatrixReferenceOptions, Fr as PageMarginsOptions, Fs as BlurEffectOptions, Ft as HueDirection, G as createNvPicPr, Ga as createX, Gc as SystemColor, Gi as createMinorUnit, Gn as createWpExtLst, Go as createTableStyleList, Gr as createBubble3D, Gs as createOuterShadowEffect, Gt as ColorsDefHdrLstOptions, H as createNvCxnSpPr, Ha as createUserShapes, Hc as SolidFillOptions, Hi as createMinorGridlines, Hn as createWpCNvSpPr, Ho as TableTextStyleOptions, Hr as createBandFmt, Hs as createPresetShadowEffect, Ht as createTxEffectClrLst, I as createInsideH, Ia as createTickLblPos, Ic as TileOptions, Ii as createMajorTimeUnit, In as createWpBodyPr, Io as TableCellBorderOptions, Ir as PageSetupOptions, Is as EffectListOptions, It as StyleMatrixIndex, J as createPic, Ja as createYMode, Jc as SchemeColor, Ji as createMultiLvlStrRef, Jn as createWpGrpSpPr, Jo as createTransformation, Jr as createChartObject, Js as GlowEffectOptions, Jt as DiagramDescriptionOptions, K as createNvSpPr, Ka as createXMode, Kc as SystemColorOptions, Ki as createMinus, Kn as createWpGraphicFrame, Ko as MediaDataTransformation, Kr as createBubbleScale, Ks as InnerShadowEffectOptions, Kt as ColorsDefHdrOptions, L as createInsideV, La as createTickMarkSkip, Lc as createTileInfo, Li as createMajorUnit, Ln as createWpCNvCnPr, Lo as TableCellStyleOptions, Lr as createApplyToEnd, Ls as createEffectList, Lt as createDiagramStyle, M as createHeader, Ma as createStrLit, Mc as TileFlipMode, Mi as createLogBase, Mn as WpNonVisualDrawingPropsOptions, Mo as createPictureLocking, Mr as createXdrTo, Ms as EffectContainerType, Mt as DiagramStyleLblOptions, N as createHeaders, Na as createSurface3DChart, Nc as createGradientFill, Ni as createLvl, Nn as WpShapeOptions, No as createShapeLocking, Nr as createXdrTwoCellAnchor, Ns as EffectDagOptions, Nt as DiagramStyleOptions, O as createFontElement, Oa as createSizeRepresents, Oc as LinearShadeOptions, Oi as createLblAlgn, On as WpContentPartOptions, Oo as PictureLockingOptions, Or as createXdrRowOff, Os as SphereCoords, Ot as DiagramRelIdsOptions, P as createHighlight, Pa as createSymbol, Pc as createGradientStop, Pi as createMajorGridlines, Pn as WpTextboxOptions, Po as OnOffStyleType, Pr as createXdrTxBody, Ps as createEffectDag, Pt as FontCollectionIndex, Q as createSnd, Qa as createCdrCNvGraphicFramePr, Qc as createScRgbColor, Qi as createOddHeader, Qn as createWpSp, Qo as createTransform2D, Qr as createCustSplit, Qs as createFillOverlayEffect, Qt as StyleDefHdrLstOptions, R as createLeft, Ra as createTrendlineLbl, Rc as SourceRectangleOptions, Ri as createManualLayout, Rn as createWpCNvContentPartPr, Ro as TablePartStyleOptions, Rr as createApplyToFront, Rs as ReflectionEffectOptions, Rt as createEffectClrLst, S as createCxnSp, Sa as createShowLeaderLines, Sc as GradientStopOptions, Si as createHMode, Sn as createChMax, So as createCdrXfrm, Sr as createXdrNvGrpSpPr, Ss as createBottomBevel, St as DiagramExtLstOptions, T as createEnd, Ta as createShowVertBorder, Tc as GradientFillOptions, Ti as createHoleSize, Tn as createOrgChart, To as LockedCanvasOptions, Tr as createXdrOneCellAnchor, Ts as LightRigOptions, Tt as createDiagramExtLst, U as createNvGraphicFramePr, Ua as createW, Uc as createColorElement, Ui as createMinorTickMark, Un as createWpCanvas, Uo as ThemeableLineStyleOptions, Ur as createBandFmts, Us as OuterShadowEffectOptions, Ut as createTxFillClrLst, V as createLnTlToBr, Va as createUserInterface, Vc as createBlipEffects, Vi as createMin, Vn as createWpCNvPr, Vo as TableStyleRegion, Vr as createBackWall, Vs as PresetShadowVal, Vt as createStyleLbl, W as createNvGrpSpPr, Wa as createWMode, Wc as createSolidFill, Wi as createMinorTimeUnit, Wn as createWpContentPart, Wo as createTableStyle, Wr as createBaseTimeUnit, Ws as RectAlignment, Wt as createTxLinClrLst, X as createRight, Xa as createCdrBlipFill, Xc as createSchemeColor, Xi as createNumLit, Xn as createWpNestedGrpSp, Xo as Transform2DOptions, Xr as createCrossBetween, Xs as BlendMode, Xt as LayoutDefHdrLstOptions, Y as createQuickTimeFile, Ya as createCdrAbsSizeAnchor, Yc as SchemeColorOptions, Yi as createName, Yn as createWpLinkedTxbx, Yo as GroupTransform2DOptions, Yr as createClrMapOvr, Ys as createGlowEffect, Yt as DiagramNameOptions, Z as createRound, Za as createCdrCNvCxnSpPr, Zc as ScRgbColorOptions, Zi as createOddFooter, Zn as createWpNvContentPartPr, Zo as createGroupTransform2D, Zr as createCrossesAt, Zs as FillOverlayEffectOptions, Zt as LayoutDefHdrOptions, _ as createChart, _a as createSerLines, _c as createPatternFill, _i as createFmtId, _n as PresLayoutVarsOptions, _o as createCdrSpPr, _r as createXdrCxnSp, _s as Shape3DOptions, _t as createUFillTx, a as createBottom, aa as createPictureOptions, ac as PresetDash, ai as createDispUnits, al as createHslColor, an as createStyleDefHdrLst, ao as createCdrFrom, ar as XdrMarkerOptions, as as ConnectionSite, at as createSym, b as createCustClr, ba as createShowHorzBorder, bc as BlipFillMediaData, bi as createGapWidth, bn as createAnimLvl, bo as createCdrTxBody, br as createXdrGrpSpPr, bs as BevelPresetType, bt as createUseSpRect, c as createBuClrTx, ca as createPivotFmts, cc as LineEndOptions, ci as createEvenFooter, cn as AnimLevelValue, co as createCdrGrpSpPr, cr as createXdrBlipFill, cs as PathCommand, ct as createTableStyleElement, d as createBuSzTx, da as createPlus, dc as createLineEnd, di as createExt, dn as AnimOneValue, do as createCdrNvGrpSpPr, dr as createXdrCNvPicPr, ds as createCustomGeometry, dt as createTl2br, ea as createOfPieType, ec as LineCap, ei as createDLbl, el as createRgbColor, en as createColorsDefHdr, eo as createCdrCNvPicPr, er as createWpStyle, es as createExtentionList, et as createSpDef, f as createCNvCxnSpPr, fa as createPrintSettings, fc as DashStop, fi as createExtLst, fn as ChMaxOptions, fo as createCdrNvPicPr, fr as createXdrCNvPr, fs as PresetGeometry, ft as createTop, g as createCell3D, ga as createSelection, gc as PresetPattern, gi as createFloor, gn as OrgChartOptions, go as createCdrSp, gr as createXdrContentPart, gs as PresetMaterialType, gt as createUFill, h as createCNvSpPr, ha as createSecondPieSize, hc as PatternFillOptions, hi as createFirstHeader, hn as HierBranchStyle, ho as createCdrRelSizeAnchor, hr as createXdrColOff, hs as createAdjustmentValues, ht as createTxSp, i as createBldDgm, ia as createPictureFormat, ic as PenAlignment, ii as createDispBlanksAs, il as HslColorOptions, in as createStyleDefHdr, io as createCdrExt, ir as createWpXfrm, is as createBlip, it as createStyleElement, j as createGrpSpPr, ja as createSplitType, jc as RelativeRect, ji as createLegendEntry, jn as WpLinkedTextboxOptions, jo as createGroupLocking, jr as createXdrStyle, js as createSoftEdgeEffect, jt as ColorMethod, k as createGraphicFrame, ka as createSmooth, kc as PathShadeOptions, ki as createLeaderLines, kn as WpGraphicFrameOptions, ko as ShapeLockingOptions, kr as createXdrSp, ks as Vector3D, kt as createDiagramRelIds, l as createBuFontTx, la as createPivotSource, lc as LineEndType, li as createEvenHeader, ln as AnimLvlOptions, lo as createCdrNvCxnSpPr, lr as createXdrCNvCxnSpPr, ls as PathFillMode, lt as createThemeManager, m as createCNvGrpSpPr, ma as createSecondPiePt, mc as createGroupFill, mi as createFirstFooter, mn as HierBranchOptions, mo as createCdrPic, mr as createXdrCol, ms as GeometryGuide, mt as createTxDef, n as createBevelElement, na as createPageMargins, nc as OutlineFillProperties, ni as createDTable, nl as PresetColorOptions, nn as createLayoutDefHdr, no as createCdrCNvSpPr, nr as createWpTxbxContent, ns as createBlipFill, nt as createStCxn, o as createBr, oa as createPictureStackUnit, oc as createOutline, oi as createDispUnitsLbl, ol as ColorTransformOptions, on as AdjLstOptions, oo as createCdrGraphicFrame, or as XdrShapeAttributes, os as CustomGeometryOptions, ot as createTab, p as createCNvGraphicFramePr, pa as createProtection, pc as createCustomDash, pi as createExternalData, pn as ChPrefOptions, po as createCdrNvSpPr, pr as createXdrCNvSpPr, ps as PresetGeometryOptions, pt as createTr2bl, q as createOverrideClrMapping, qa as createY, qc as createSystemColor, qi as createMultiLvlStrCache, qn as createWpGrpSp, qo as MediaTransformation, qr as createBuiltInUnit, qs as createInnerShadowEffect, qt as DiagramCategoryOptions, r as createBldChart, ra as createPageSetup, rc as OutlineOptions, ri as createData, rl as createPresetColor, rn as createLayoutDefHdrLst, ro as createCdrCxnSp, rr as createWpWhole, rs as BlipOptions, rt as createStart, s as createBuBlip, sa as createPivotFmt, sc as LineEndLength, si as createDownBars, sl as createColorTransforms, sn as AdjOptions, so as createCdrGrpSp, sr as XdrTwoCellAnchorOptions, ss as GeomRect, st as createTabLst, t as createAudioCd, ta as createOverlap, tc as LineJoin, ti as createDPt, tl as PresetColor, tn as createColorsDefHdrLst, to as createCdrCNvPr, tr as createWpTxbx, ts as BlipFillOptions, tt as createSt, u as createBuSzPts, ua as createPlotVisOnly, uc as LineEndWidth, ui as createExplosion, un as AnimOneOptions, uo as createCdrNvGraphicFramePr, ur as createXdrCNvGrpSpPr, us as PathOptions, ut as createThemeOverride, v as createClrMap, va as createShape, vc as createNoFill, vi as createFormatting, vn as createAdj, vo as createCdrStyle, vr as createXdrFrom, vs as createShape3D, vt as createULn, w as createDgm, wa as createShowOutline, wc as extractBlipFillMedia, wi as createHiLowLines, wn as createHierBranch, wo as LockedCanvas, wr as createXdrNvSpPr, ws as CameraOptions, wt as DiagramTextPropsOptions, x as createCustClrLst, xa as createShowKeys, xc as FillOptions, xi as createH, xn as createAnimOne, xo as createCdrX, xr as createXdrNvCxnSpPr, xs as createBevel, xt as createWavAudioFile, y as createCpLocks, ya as createShowDLblsOverMax, yc as BlipFillConfigOptions, yi as createGapDepth, yn as createAdjLst, yo as createCdrTo, yr as createXdrGrpSp, ys as BevelOptions, yt as createULnTx, z as createLnBlToTr, za as createUpBars, zc as createSourceRectangle, zi as createMarker, zn as createWpCNvFrPr, zo as TableStyleListOptions, zr as createApplyToSides, zs as createReflectionEffect, zt as createFillClrLst } from "./index-C-DvIxek.mjs";
5
+ import { a as Point, c as DataModel, d as getColorXml, f as getLayoutXml, g as STYLE_CATEGORIES, h as LAYOUT_CATEGORIES, i as SmartArtData, l as Connection, m as COLOR_CATEGORIES, n as createDataModel, o as PointPropertySetOptions, p as getStyleXml, r as SmartArtCollection, s as TransPoint, t as TreeNode, u as DEFAULT_DRAWING_XML } from "./index-D0N5Bw2M.mjs";
6
6
  import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-BCUfgp9A.mjs";
7
+ import { a as FontSchemeOptions, i as ColorSchemeOptions, n as buildThemeXml, o as ThemeOptions, r as DefaultTheme, t as DEFAULT_COLORS } from "./index-Cj2Yf5mk.mjs";
7
8
  import { Element } from "@office-open/xml";
8
9
  import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8, unzipSync } from "fflate";
10
+ import { DataType, toUint8Array } from "undio";
11
+ import { Buffer } from "\u0000polyfill-node.buffer";
9
12
 
10
13
  //#region src/converters.d.ts
11
14
  /**
@@ -204,7 +207,7 @@ declare class AppProperties extends ImportedXmlComponent {
204
207
  }
205
208
  //#endregion
206
209
  //#region src/opc/relationships.d.ts
207
- 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/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/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/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";
210
+ type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/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";
208
211
  declare const TargetModeType: {
209
212
  readonly EXTERNAL: "External";
210
213
  };
@@ -240,13 +243,9 @@ declare const createOverride: (contentType: string, partName?: string) => XmlCom
240
243
  //#endregion
241
244
  //#region src/formatter.d.ts
242
245
  /**
243
- * Converts an XmlComponent tree into a serializable XML object or string.
246
+ * Converts an XmlComponent tree into an XML string via the toXml() fast path.
244
247
  */
245
248
  declare class Formatter {
246
- /**
247
- * @deprecated Use `component.toXml(context)` or `formatToXml()` instead.
248
- */
249
- format<T extends Context = Context>(input: BaseXmlComponent, context?: T): Record<string, any>;
250
249
  /**
251
250
  * Serialize a component directly to XML string via the toXml() fast path.
252
251
  * Always includes XML declaration.
@@ -346,7 +345,7 @@ declare function elementToCompact(el: Element): IXmlableObject;
346
345
  declare class RawPassthrough extends BaseXmlComponent {
347
346
  private readonly element;
348
347
  constructor(element: Element);
349
- prepForXml(_context: Context): IXmlableObject;
348
+ toXml(_context: Context): string;
350
349
  }
351
350
  //#endregion
352
351
  //#region src/placeholder.d.ts
@@ -506,4 +505,35 @@ declare function compileMapping(mapping: Record<string, {
506
505
  path: string;
507
506
  }[], mediaLevel?: number): Zippable;
508
507
  //#endregion
509
- export { AllChartTypeOptions, AppProperties, Area3DChart, AreaChart, AttributePayload, AxisChartType, type BackdropOptions, Bar3DChart, BarChart, BaseXmlComponent, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleChart, BubbleChartOptions, type BubbleSeriesData, BuilderElement, COLOR_CATEGORIES, type CameraOptions, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, type ColorTransformOptions, CompileFn, CompoundLine, CompressionOptions, Connection, type ConnectionSite, Context, CoreProperties, type CustomGeometryOptions, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataModel, type DefaultAttributes, DoughnutChart, EMPTY_OBJECT, type EffectContainerType, type EffectDagOptions, type EffectListOptions, EmptyElement, type FillOptions, type FillOverlayEffectOptions, Formatter, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GroupTransform2DOptions, type HslColorOptions, IXmlAttribute, IXmlableObject, IdFormat, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LightRigOptions, Line3DChart, LineCap, LineChart, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, OoxmlMimeType, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, OutputByType, OutputType, type OverrideAttributes, PPTX_NS, Packer, PackerOptions, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, Pie3DChart, PieChart, Point, type Point3D, PositivePercentage, PositiveUniversalMeasure, PresetColor, type PresetColorOptions, PresetDash, PresetGeometry, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RadarChart, RawPassthrough, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, ScatterChart, type Scene3DOptions, SchemeColor, type SchemeColorOptions, SerAx, type Shape3DOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, StockChart, Stretch, SurfaceChart, SystemColor, type SystemColorOptions, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, type TileOptions, TokenNotFoundError, TransPoint, type Transform2DOptions, TreeNode, UniqueNumericIdCreator, UniversalMeasure, ValAx, type Vector3D, XmlComponent, type XmlNamespaceConfig, XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
508
+ //#region src/crypto.d.ts
509
+ /**
510
+ * Password hashing utilities for OOXML document protection.
511
+ *
512
+ * Implements ECMA-376 Agile Encryption password derivation.
513
+ *
514
+ * @module
515
+ */
516
+ /**
517
+ * Generates cryptographically secure random bytes.
518
+ */
519
+ declare function randomBytes(length: number): Uint8Array;
520
+ /**
521
+ * Computes the ECMA-376 Agile Encryption hash for a password.
522
+ *
523
+ * Algorithm: SHA-512(salt + UTF-8(password)), then iterate SHA-512(hash + i.toUint32LE()) spinCount times.
524
+ */
525
+ declare function hashPasswordAgile(password: string, salt: Uint8Array, spinCount: number): string;
526
+ /**
527
+ * Derives a password hash for OOXML document protection.
528
+ *
529
+ * Returns base64-encoded hashValue, saltValue, spinCount, and algorithmName
530
+ * suitable for direct use in document protection options.
531
+ */
532
+ declare function derivePasswordHash(password: string, spinCount?: number): {
533
+ hashValue: string;
534
+ saltValue: string;
535
+ spinCount: number;
536
+ algorithmName: string;
537
+ };
538
+ //#endregion
539
+ export { type AdjLstOptions, type AdjOptions, AllChartTypeOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, AppProperties, Area3DChart, AreaChart, AttributePayload, AxisChartType, type BackdropOptions, Bar3DChart, BarChart, BaseXmlComponent, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleChart, BubbleChartOptions, type BubbleSeriesData, BuilderElement, COLOR_CATEGORIES, type CameraOptions, CatAx, type ChMaxOptions, type ChPrefOptions, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, type ColorListOptions, ColorMethod, type ColorSchemeOptions, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, CompileFn, CompoundLine, CompressionOptions, Connection, type ConnectionSite, Context, CoreProperties, type CustomGeometryOptions, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataLabelPosition, DataLabels, DataLabelsOptions, DataModel, type DataType, DateAx, type DefaultAttributes, DefaultTheme, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, DoughnutChart, EMPTY_OBJECT, type EffectContainerType, type EffectDagOptions, type EffectListOptions, EmptyElement, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorBars, ErrorValueType, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type FontSchemeOptions, Formatter, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, IXmlAttribute, IXmlableObject, IdFormat, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, Line3DChart, LineCap, LineChart, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, LockedCanvas, type LockedCanvasOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, OoxmlMimeType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, OutputByType, OutputType, type OverrideAttributes, PPTX_NS, Packer, PackerOptions, type PageMarginsOptions, type PageSetupOptions, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, type PictureLockingOptions, Pie3DChart, PieChart, Point, type Point3D, PointPropertySetOptions, PositivePercentage, PositiveUniversalMeasure, type PresLayoutVarsOptions, PresetColor, type PresetColorOptions, PresetDash, PresetGeometry, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RadarChart, RawPassthrough, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, ScatterChart, type Scene3DOptions, SchemeColor, type SchemeColorOptions, SerAx, type Shape3DOptions, type ShapeLockingOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, StockChart, Stretch, type StyleDefHdrLstOptions, type StyleDefHdrOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SurfaceChart, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, TargetModeType, ThemeColor, ThemeFont, type ThemeOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, TimeUnit, TokenNotFoundError, TransPoint, type Transform2DOptions, TreeNode, Trendline, TrendlineOptions, TrendlineType, UniqueNumericIdCreator, UniversalMeasure, ValAx, type Vector3D, View3D, View3DOptions, type WpCanvasOptions, type WpContentPartOptions, type WpGraphicFrameOptions, type WpGroupOptions, type WpLinkedTextboxOptions, type WpNonVisualDrawingPropsOptions, type WpShapeOptions, type WpTextboxOptions, type XdrMarkerOptions, type XdrShapeAttributes, type XdrTwoCellAnchorOptions, XmlComponent, type XmlNamespaceConfig, XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, buildThemeXml, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdj, createAdjLst, createAdjustmentValues, createAnimLvl, createAnimOne, createApplyToEnd, createApplyToFront, createApplyToSides, createAudioCd, createAutoUpdate, createBackWall, createBandFmt, createBandFmts, createBaseTimeUnit, createBevel, createBevelElement, createBldChart, createBldDgm, createBlip, createBlipEffects, createBlipFill, createBottom, createBottomBevel, createBr, createBuBlip, createBuClrTx, createBuFontTx, createBuSzPts, createBuSzTx, createBubble3D, createBubbleScale, createBuiltInUnit, createCNvCxnSpPr, createCNvGraphicFramePr, createCNvGrpSpPr, createCNvSpPr, createCdrAbsSizeAnchor, createCdrBlipFill, createCdrCNvCxnSpPr, createCdrCNvGraphicFramePr, createCdrCNvGrpSpPr, createCdrCNvPicPr, createCdrCNvPr, createCdrCNvSpPr, createCdrCxnSp, createCdrExt, createCdrFrom, createCdrGraphicFrame, createCdrGrpSp, createCdrGrpSpPr, createCdrNvCxnSpPr, createCdrNvGraphicFramePr, createCdrNvGrpSpPr, createCdrNvPicPr, createCdrNvSpPr, createCdrPic, createCdrRelSizeAnchor, createCdrSp, createCdrSpPr, createCdrStyle, createCdrTo, createCdrTxBody, createCdrX, createCdrXfrm, createCdrY, createCell3D, createChMax, createChPref, createChart, createChartObject, createChartType, createClrMap, createClrMapOvr, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCpLocks, createCrossBetween, createCrossesAt, createCustClr, createCustClrLst, createCustSplit, createCustUnit, createCustomDash, createCustomGeometry, createCxnSp, createCxnSpLocks, createDLbl, createDPt, createDTable, createData, createDataModel, createDefault, createDgm, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createDispBlanksAs, createDispUnits, createDispUnitsLbl, createDownBars, createEffectClrLst, createEffectDag, createEffectList, createEnd, createEndCxn, createEvenFooter, createEvenHeader, createExplosion, createExt, createExtLst, createExtentionList, createExternalData, createExtraClrScheme, createFillClrLst, createFillOverlayEffect, createFirstFooter, createFirstHeader, createFloor, createFmtId, createFontElement, createFormatting, createGapDepth, createGapWidth, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrame, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createGrpSp, createGrpSpPr, createH, createHMode, createHeader, createHeaderFooter, createHeaders, createHiLowLines, createHierBranch, createHighlight, createHlinkMouseOver, createHoleSize, createHslColor, createInnerShadowEffect, createInsideH, createInsideV, createInvertIfNegative, createLayoutDefHdr, createLayoutDefHdrLst, createLayoutTarget, createLblAlgn, createLeaderLines, createLeft, createLegacyDrawingHF, createLegendEntry, createLinClrLst, createLineEnd, createLnBlToTr, createLnDef, createLnTlToBr, createLogBase, createLvl, createMajorGridlines, createMajorTickMark, createMajorTimeUnit, createMajorUnit, createManualLayout, createMarker, createMax, createMin, createMinorGridlines, createMinorTickMark, createMinorTimeUnit, createMinorUnit, createMinus, createMultiLvlStrCache, createMultiLvlStrRef, createName, createNoFill, createNumLit, createNumRef, createNvCxnSpPr, createNvGraphicFramePr, createNvGrpSpPr, createNvPicPr, createNvSpPr, createOddFooter, createOddHeader, createOfPieChart, createOfPieType, createOrgChart, createOuterShadowEffect, createOutline, createOverlap, createOverride, createOverrideClrMapping, createPacker, createPageMargins, createPageSetup, createPatternFill, createPic, createPictureFormat, createPictureLocking, createPictureOptions, createPictureStackUnit, createPivotFmt, createPivotFmts, createPivotSource, createPlotVisOnly, createPlus, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createPrintSettings, createProtection, createQuickTimeFile, createReflectionEffect, createReplacer, createRgbColor, createRight, createRound, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createSecondPiePt, createSecondPieSize, createSelection, createSerLines, createShape, createShape3D, createShapeLocking, createShowDLblsOverMax, createShowHorzBorder, createShowKeys, createShowLeaderLines, createShowNegBubbles, createShowOutline, createShowVertBorder, createSideWall, createSize, createSizeRepresents, createSmooth, createSnd, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSp, createSpDef, createSplitInject, createSplitPos, createSplitType, createSt, createStCxn, createStart, createStrLit, createStrRef, createStyleDefHdr, createStyleDefHdrLst, createStyleElement, createStyleLbl, createSurface3DChart, createSym, createSymbol, createSystemColor, createTab, createTabLst, createTableStyle, createTableStyleElement, createTableStyleList, createTextElementContents, createThemeManager, createThemeOverride, createThickness, createTickLblPos, createTickMarkSkip, createTileInfo, createTl2br, createTokenReplacer, createTop, createTr2bl, createTransform2D, createTransformation, createTraverser, createTrendlineLbl, createTxDef, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, createTxSp, createUFill, createUFillTx, createULn, createULnTx, createUpBars, createUpDownBars, createUseSpRect, createUserInterface, createUserShapes, createW, createWMode, createWavAudioFile, createWpBg, createWpBodyPr, createWpCNvCnPr, createWpCNvContentPartPr, createWpCNvFrPr, createWpCNvGrpSpPr, createWpCNvPr, createWpCNvSpPr, createWpCanvas, createWpContentPart, createWpExtLst, createWpGraphicFrame, createWpGrpSp, createWpGrpSpPr, createWpLinkedTxbx, createWpNestedGrpSp, createWpNvContentPartPr, createWpSp, createWpSpPr, createWpStyle, createWpTxbx, createWpTxbxContent, createWpWhole, createWpXfrm, createX, createXMode, createXdrBlipFill, createXdrCNvCxnSpPr, createXdrCNvGrpSpPr, createXdrCNvPicPr, createXdrCNvPr, createXdrCNvSpPr, createXdrCol, createXdrColOff, createXdrContentPart, createXdrCxnSp, createXdrFrom, createXdrGrpSp, createXdrGrpSpPr, createXdrNvCxnSpPr, createXdrNvGrpSpPr, createXdrNvPicPr, createXdrNvSpPr, createXdrOneCellAnchor, createXdrPic, createXdrRow, createXdrRowOff, createXdrSp, createXdrSpPr, createXdrStyle, createXdrTo, createXdrTwoCellAnchor, createXdrTxBody, createY, createYMode, createZipStream, dateTimeValue, decimalNumber, derivePasswordHash, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, randomBytes, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, toUint8Array, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };