import { BevelOptions, BevelPreset, BlackWhiteMode, BlipEffectsOptions, BlipFillConfigOptions, BlipFillMediaData, Cell3DOptions, ColorTransformOptions, CompoundLine, DEFAULT_TEXT_STYLES, EffectListOptions, EffectListOptions as EffectListOptions$1, FillOptions, FillOptions as FillOptions$1, GradientFillOptions as CoreGradientFillOptions, GradientStopOptions, GroupTransform2DOptions, LineCap, LineJoin, NonVisualDrawingPropertiesOptions, OutlineOptions, OutlineOptions as OutlineOptions$1, ParagraphDescriptorOptions, ParagraphDescriptorOptions as ParagraphDescriptorOptions$1, PathShade, PenAlignment, PresetDash, PresetDash as PresetDash$1, PresetGeometryOptions, PresetMaterial, Scene3DOptions, Scene3DOptions as Scene3DOptions$1, Shape3DOptions, Shape3DOptions as Shape3DOptions$1, ShapeLockingOptions, ShapePropertiesOptions, ShapePropertiesOptions as ShapePropertiesOptions$1, ShapeType, SolidFillOptions, SourceRectangleOptions, StrikeStyle, StyleMatrixReferenceOptions as StyleMatrixReferenceOptions$1, TextAlignment, TextBodyOptions, TextBodyOptions as TextBodyOptions$1, TextCapitalization, TextCharacterPropertiesOptions, TextHyperlinkOptions, TextHyperlinkOptions as TextHyperlinkOptions$1, TextListStyleOptions, TextListStyleOptions as TextListStyleOptions$1, TextParagraphPropertiesOptions, TextRunOptions, TextRunOptions as TextRunOptions$1, TextStylesOptions, TextVertical, TileFlipMode, Transform2DOptions, UnderlineStyle, VerticalAnchor, VerticalAnchor as VerticalAnchor$1, buildFill, createBevel, createBottomBevel, createColorElement, createColorTransforms, createEffectList, createGradientFill, createGradientStop, createOutline, createScene3D, createShape3D, extractBlipFillMedia, stringifyPresetGeometry } from "@office-open/core/drawing"; import { AppPropertiesOptions, Base64, BaseConnectorOptions, BaseGroupOptions, BaseMediaEntry, BasePatchOptions, BasePictureOptions, BaseTableCellOptions, BaseTableOptions, BaseTableRowOptions, BlipCompression, ColorMappingOptions, CompressionOptions, ContentTypesInput, CorePropertiesOptions, CorePropertiesOptions as CorePropertiesOptions$1, CustomPropertyOptions, DataType, DateTime, EffectListOptions as EffectListOptions$2, EmbeddingData, EncryptedContainerOptions, FillOptions as FillOptions$2, GraphicFrameLockingOptions, Guid, Media, Media as Media$1, NonVisualDrawingPropertiesOptions as NonVisualDrawingPropertiesOptions$1, OutputByType, OutputByType as OutputByType$1, OutputType, OutputType as OutputType$1, PackerOptions, PackerOptions as PackerOptions$1, Panose, ParsedArchive, PictureLockingOptions, RelationshipType, Relationships, ShapeLockingOptions as ShapeLockingOptions$1, ShapePropertiesOptions as ShapePropertiesOptions$2, TableStyleListOptions, TableStyleOptions, ThemeOverrideOptions, UniversalMeasure, XmlifyedFile, Zippable, parseArchive } from "@office-open/core"; import { Element } from "@office-open/xml"; import { ColorSchemeOptions, FontSchemeOptions, ThemeOptions, ThemeOptions as ThemeOptions$1, createThemeXml, themeDesc } from "@office-open/core/theme"; import { CustomDescriptor, HyperlinkTarget, ReadContext, WriteContext } from "@office-open/core/descriptor"; import { ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartSpaceOptions as ChartSpaceOptions$1, ChartType, chartSpaceDesc } from "@office-open/core/chart"; import { ColorDefinitionOptions, LayoutDefinitionOptions, SmartArtCollection, SmartArtData, StyleDefinitionOptions, TreeNode, TreeNode as TreeNode$1, createDataModel } from "@office-open/core/smartart"; //#region src/parts/view-properties.d.ts type SplitterBarState = "restored" | "maximized" | "minimized"; interface CommonViewPropertiesOptions { scale?: { numerator: number; denominator: number; }; origin?: { x: number; y: number; }; variableScale?: boolean; } interface NormalViewPortionOptions { size: number; autoAdjust?: boolean; } interface NormalViewOptions { showOutlineIcons?: boolean; snapVertSplitter?: boolean; vertBarState?: SplitterBarState; horzBarState?: SplitterBarState; preferSingleView?: boolean; restoredLeft?: NormalViewPortionOptions; restoredTop?: NormalViewPortionOptions; } interface SlideViewOptions { snapToGrid?: boolean; snapToObjects?: boolean; showGuides?: boolean; view?: CommonViewPropertiesOptions; } interface ViewPropertiesOptions { lastView?: "slideView" | "slideMasterView" | "notesView" | "handoutView" | "outlineView" | "slideSorterView"; showComments?: boolean; gridSpacing?: { cx: number; cy: number; }; normalView?: NormalViewOptions; slideView?: SlideViewOptions; guides?: { orient?: "vertical" | "horizontal"; pos?: number; }[]; outlineView?: { view: CommonViewPropertiesOptions; slides?: { rId: string; collapse?: boolean; }[]; }; notesTextView?: CommonViewPropertiesOptions; sorterView?: { showFormatting?: boolean; view: CommonViewPropertiesOptions; }; notesView?: boolean | NotesViewOptions; } interface NotesViewOptions { view?: CommonViewPropertiesOptions; guides?: { orient?: "vertical" | "horizontal"; pos?: number; }[]; } //#endregion //#region src/parts/presentation.d.ts interface PhotoAlbumOptions { blackWhite?: boolean; showCaptions?: boolean; layout?: "fitToSlide" | "1pic" | "2pic" | "4pic" | "1picTitle" | "2picTitle" | "4picTitle"; frame?: "frameStyle1" | "frameStyle2" | "frameStyle3" | "frameStyle4" | "frameStyle5" | "frameStyle6" | "frameStyle7"; } interface ModifyVerifierOptions { password?: string; algorithmName?: string; hashValue?: Base64; saltValue?: Base64; spinValue?: number; cryptoProviderType?: "rsaAES" | "rsaFull" | "custom"; cryptoAlgorithmClass?: "hash" | "custom"; cryptoAlgorithmType?: "typeAny" | "custom"; cryptoAlgorithmSid?: number; spinCount?: number; saltData?: Base64; hashData?: Base64; cryptoProvider?: string; algorithmExtensionId?: number; algorithmExtensionSource?: string; cryptoProviderTypeExtension?: number; cryptoProviderTypeExtensionSource?: string; } interface EmbeddedFontOptions { font: { typeface: string; panose?: Panose; pitchFamily?: number; charset?: number; }; regular?: string; bold?: string; italic?: string; boldItalic?: string; } interface CustomShowOptions { name: string; id?: number; slides: { rId: string; }[]; } interface KinsokuOptions { lang?: string; invalStChars: string; invalEndChars: string; } interface CustomerDataOptions { data?: { rId: string; }[]; tags?: { rId: string; }; } interface PresentationPartOptions { slideWidth?: number; slideHeight?: number; slideSizeType?: "screen4x3" | "letter" | "A4" | "35mm" | "overhead" | "banner" | "custom" | "ledger" | "A3" | "B4ISO" | "B5ISO" | "B4JIS" | "B5JIS" | "hagakiCard" | "screen16x9" | "screen16x10"; notesWidth?: number; notesHeight?: number; slideIds: number[]; masterCount: number; notesMasterRId?: number; handoutMasterRId?: number; serverZoom?: number; firstSlideNum?: number; showSpecialPlsOnTitleSld?: boolean; rtl?: boolean; removePersonalInfoOnSave?: boolean; compatMode?: boolean; strictFirstAndLastChars?: boolean; embedTrueTypeFonts?: boolean; saveSubsetFonts?: boolean; autoCompressPictures?: boolean; bookmarkIdSeed?: number; conformance?: "strict" | "transitional"; photoAlbum?: PhotoAlbumOptions; modifyVerifier?: ModifyVerifierOptions; embeddedFonts?: EmbeddedFontOptions[]; customShows?: CustomShowOptions[]; kinsoku?: KinsokuOptions[]; defaultTextStyle?: string | false; customerData?: CustomerDataOptions; sections?: PresentationSectionGroup[]; ext?: string; smartTags?: { rId: string; }; } interface PresentationSectionGroup { name: string; slideIndices: number[]; } //#endregion //#region src/shared/shape/shape.d.ts type PlaceholderType = "title" | "body" | "centerTitle" | "subTitle" | "date" | "slideNumber" | "footer" | "header" | "object" | "chart" | "table" | "clipArt" | "diagram" | "media" | "slideImage" | "picture"; type PlaceholderSize = "full" | "half" | "quarter"; type PlaceholderOrientation = "horz" | "vert"; type StyleReferenceColor = string | SolidFillOptions; interface ShapeStyleReferenceOptions { index: number; color?: StyleReferenceColor; } interface ShapeStyleOptions { lineReference?: ShapeStyleReferenceOptions; fillReference?: ShapeStyleReferenceOptions; effectReference?: ShapeStyleReferenceOptions; fontReference?: { collection: "major" | "minor" | "none"; color?: StyleReferenceColor; }; } interface ShapeOptions extends NonVisualDrawingPropertiesOptions$1, Transform2DOptions { id?: number; properties?: Omit; textBody?: TextBodyOptions$1; locking?: ShapeLockingOptions$1; placeholder?: PlaceholderType; placeholderIndex?: number; placeholderSize?: "full" | "half" | "quarter"; placeholderOrientation?: "horz" | "vert"; useBackgroundFill?: boolean; isPhoto?: boolean; userDrawn?: boolean; hasCustomPrompt?: boolean; style?: ShapeStyleOptions; blackWhiteMode?: BlackWhiteMode; hyperlink?: TextHyperlinkOptions$1; } //#endregion //#region src/parts/descriptors/graphic-frame.d.ts interface NvPrPlaceholderOptions { placeholder?: PlaceholderType; placeholderIndex?: number; placeholderSize?: PlaceholderSize; placeholderOrientation?: PlaceholderOrientation; hasCustomPrompt?: boolean; isPhoto?: boolean; userDrawn?: boolean; modId?: string; } //#endregion //#region src/parts/chart-frame.d.ts interface ChartOptions extends ChartSpaceOptions$1, Omit, NvPrPlaceholderOptions { id?: number; locking?: GraphicFrameLockingOptions | null; x?: number | UniversalMeasure; y?: number | UniversalMeasure; width?: number | UniversalMeasure; height?: number | UniversalMeasure; chartKey?: string; } //#endregion //#region src/parts/locked-canvas-frame.d.ts interface LockedCanvasShapeOptions extends ShapePropertiesOptions$2 { textBody?: string; } interface LockedCanvasFrameOptions extends NonVisualDrawingPropertiesOptions$1, NvPrPlaceholderOptions { id?: number; x?: number | UniversalMeasure; y?: number | UniversalMeasure; width?: number | UniversalMeasure; height?: number | UniversalMeasure; children?: LockedCanvasShapeOptions[]; locking?: GraphicFrameLockingOptions | null; } //#endregion //#region src/parts/ole-frame.d.ts interface OleEmbedOptions { data: DataType; followColorScheme?: "none" | "full" | "textAndBackground"; } interface OleLinkOptions { url: string; autoUpdate?: boolean; } interface OleIconImageOptions { data: DataType; type: string; } interface OleOptions extends NonVisualDrawingPropertiesOptions$1, NvPrPlaceholderOptions { locking?: GraphicFrameLockingOptions | null; id?: number; x?: number | UniversalMeasure; y?: number | UniversalMeasure; width?: number | UniversalMeasure; height?: number | UniversalMeasure; progId?: string; shapeId?: string; showAsIcon?: boolean; imageWidth?: number; imageHeight?: number; embed?: OleEmbedOptions; link?: OleLinkOptions; iconImage?: OleIconImageOptions; } //#endregion //#region src/parts/smartart.d.ts interface SmartArtOptions extends NonVisualDrawingPropertiesOptions, NvPrPlaceholderOptions { locking?: GraphicFrameLockingOptions | null; id?: number; smartArtKey?: string; x?: number | UniversalMeasure; y?: number | UniversalMeasure; width?: number | UniversalMeasure; height?: number | UniversalMeasure; nodes: TreeNode$1[]; layout?: string | LayoutDefinitionOptions; style?: string | StyleDefinitionOptions; color?: string | ColorDefinitionOptions; } //#endregion //#region src/shared/media/data.d.ts interface MediaDataTransformation { pixels: { x: number; y: number; }; emus: { x: number; y: number; }; } interface CoreMediaData { fileName: string; transformation: MediaDataTransformation; data: Uint8Array; } interface RegularMediaData { type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf"; } interface SvgMediaData { type: "svg"; fallback: RegularMediaData & CoreMediaData; } interface VideoMediaData { type: "mp4" | "mov" | "wmv" | "avi"; } interface AudioMediaData { type: "mp3" | "wav" | "wma" | "aac"; } type MediaData = (RegularMediaData | SvgMediaData | VideoMediaData | AudioMediaData) & CoreMediaData; //#endregion //#region src/shared/media/media-frame-base.d.ts interface MediaFrameBaseOptions extends NonVisualDrawingPropertiesOptions$1 { id?: number; x?: number | UniversalMeasure; y?: number | UniversalMeasure; width?: number | UniversalMeasure; height?: number | UniversalMeasure; data: DataType; type: MediaData["type"]; fileName?: string; mediaAction?: boolean; trim?: MediaTrimOptions; } interface MediaTrimOptions { start?: number; end?: number; } //#endregion //#region src/shared/media/audio-frame.d.ts type AudioType = "mp3" | "wav" | "wma" | "aac"; interface AudioCdTimeOptions { track: number; time?: number; } interface AudioCdOptions { start: AudioCdTimeOptions; end: AudioCdTimeOptions; ext?: string; } interface AudioFrameOptions extends Omit { data?: DataType; type?: AudioType; audioCd?: AudioCdOptions; contentType?: string; audioFileName?: string; poster?: DataType; posterType?: "png" | "jpg"; } //#endregion //#region src/shared/media/video-frame.d.ts type VideoType = "mp4" | "mov" | "wmv" | "avi"; type PosterType = "png" | "jpg"; interface VideoFrameOptions extends MediaFrameBaseOptions { type: VideoType; poster?: DataType; posterType?: PosterType; contentType?: string; } //#endregion //#region src/shared/picture.d.ts interface PictureOptions extends BasePictureOptions, NvPrPlaceholderOptions { id?: number; x?: number | UniversalMeasure; y?: number | UniversalMeasure; width?: number | UniversalMeasure; height?: number | UniversalMeasure; flipHorizontal?: boolean; flipVertical?: boolean; rotation?: number; type: "png" | "jpg" | "gif" | "bmp" | "emf" | "wmf"; fileName?: string; compression?: BlipCompression; effects?: EffectListOptions$2; sourceRectangle?: SourceRectangleOptions; fillRectangle?: SourceRectangleOptions | false; blipEffects?: BlipEffectsOptions; useLocalDpi?: boolean; fill?: FillOptions$1; outline?: OutlineOptions$1; geometry?: "rect" | null; locking?: PictureLockingOptions; hyperlink?: TextHyperlinkOptions$1; scene3d?: Scene3DOptions$1; shape3d?: Shape3DOptions$1; style?: ShapeStyleOptions; } //#endregion //#region src/shared/shape/group-shape.d.ts interface GroupOptions extends BaseGroupOptions, GroupTransform2DOptions { id?: number; fill?: FillOptions$1; effects?: EffectListOptions$1; blackWhiteMode?: BlackWhiteMode; children: SlideChild[]; } //#endregion //#region src/shared/shape/line-shape.d.ts type EndpointShapeProperties = Pick; type ConnectorShapeProperties = EndpointShapeProperties & { geometry?: ShapeType | PresetGeometryOptions; }; interface LineShapeOptions extends NonVisualDrawingPropertiesOptions$1 { id?: number; locking?: ShapeLockingOptions; textBody?: TextBodyOptions$1; x1?: number | UniversalMeasure; y1?: number | UniversalMeasure; x2?: number | UniversalMeasure; y2?: number | UniversalMeasure; properties?: EndpointShapeProperties; style?: ShapeStyleOptions; } interface ConnectorOptions extends BaseConnectorOptions { id?: number; properties?: ConnectorShapeProperties; x1?: number | UniversalMeasure; y1?: number | UniversalMeasure; x2?: number | UniversalMeasure; y2?: number | UniversalMeasure; style?: ShapeStyleOptions; } //#endregion //#region src/shared/table/table-cell-properties.d.ts interface CellBorderOptions { width?: number | UniversalMeasure; color?: string | FillOptions$2; dashStyle?: PresetDash$1; outline?: OutlineOptions$1; } //#endregion //#region src/shared/table/table-cell.d.ts interface TableCellOptions extends Omit { verticalAlign?: VerticalAnchor$1; vertical?: TextVertical; text?: string; children?: (ParagraphDescriptorOptions$1 | string)[]; fill?: FillOptions; cell3D?: Cell3DOptions; borders?: { top?: CellBorderOptions; bottom?: CellBorderOptions; left?: CellBorderOptions; right?: CellBorderOptions; diagonalTopLeftToBottomRight?: CellBorderOptions; diagonalBottomLeftToTopRight?: CellBorderOptions; }; horizontalMerge?: "continue" | "restart"; verticalMerge?: "continue" | "restart"; cellProperties?: boolean; margins?: { top?: number | UniversalMeasure; bottom?: number | UniversalMeasure; left?: number | UniversalMeasure; right?: number | UniversalMeasure; }; } //#endregion //#region src/shared/table/table-row.d.ts interface TableRowOptions extends BaseTableRowOptions { height?: number | UniversalMeasure; rowId?: string; } //#endregion //#region src/shared/table/table-frame.d.ts interface TableOptions extends BaseTableOptions, NonVisualDrawingPropertiesOptions$1, NvPrPlaceholderOptions { id?: number; locking?: GraphicFrameLockingOptions | null; x?: number | UniversalMeasure; y?: number | UniversalMeasure; width?: number | UniversalMeasure; height?: number | UniversalMeasure; tableStyleId?: Guid; tableStyle?: TableStyleOptions; columnIds?: string[]; borders?: { top?: CellBorderOptions; bottom?: CellBorderOptions; left?: CellBorderOptions; right?: CellBorderOptions; }; } //#endregion //#region src/parts/slide/slide-child.d.ts type SlideChild = { shape: ShapeOptions; } | { picture: PictureOptions; } | { table: TableOptions; } | { chart: ChartOptions; } | { line: LineShapeOptions; } | { connector: ConnectorOptions; } | { video: VideoFrameOptions; } | { audio: AudioFrameOptions; } | { group: GroupOptions; } | { smartart: SmartArtOptions; } | { lockedCanvas: LockedCanvasFrameOptions; } | { ole: OleOptions; } | { contentPart: { rId: string; }; } | { rawXml: string; }; //#endregion //#region src/parts/background.d.ts interface BackgroundOptions { reference?: StyleMatrixReferenceOptions$1; fill?: FillOptions; effects?: EffectListOptions$1; shadeToTitle?: boolean; blackWhiteMode?: BlackWhiteMode; } //#endregion //#region src/parts/slide/slide.d.ts interface ControlOptions { shapeId?: string; name?: string; showAsIcon?: boolean; rId?: string; imageWidth?: number; imageHeight?: number; } //#endregion //#region src/shared/animation/types.d.ts type AnimationType = "appear" | "fade" | "fly" | "wipe" | "dissolve" | "split" | "blinds" | "checker" | "randomBars" | "wheel" | "zoom" | "cover" | "push" | "strips"; type AnimationTrigger = "onClick" | "withPrevious" | "afterPrevious"; type AnimationDirection = "left" | "right" | "up" | "down" | "horizontal" | "vertical"; type AnimationClass = "entrance" | "exit" | "emphasis" | "mediaCall"; type EmphasisType = "growShrink" | "spin" | "growWithTurn" | "colorChange" | "transparency" | "boldFlash" | "wave" | "pulse"; type PathAnimationType = "customPath" | "arc" | "bounce" | "circle" | "curve" | "figureEight" | "line" | "loop"; type MediaAnimationType = "playAudio" | "playVideo" | "play"; type AnimationCalcMode = "discrete" | "linear" | "formula"; type AnimationValueType = "string" | "number" | "color"; interface AnimationVariantOptions { bool?: boolean; int?: number; float?: number; string?: string; color?: string; } interface EndConditionOptions { event?: "onBegin" | "onEnd" | "begin" | "end" | "onClick" | "onDblClick" | "onMouseOver" | "onMouseOut" | "onNext" | "onPrev" | "onStopAudio"; delay?: string; timeNodeId?: number; runtimeNode?: "first" | "last" | "all"; } interface AnimationBuildOptions { type: "paragraph" | "diagram" | "oleChart" | "graphic"; shapeId?: number; shapeName?: string; groupId: number; uiExpand?: boolean; build?: "allAtOnce" | "paragraph" | "custom" | "whole"; buildLevel?: number; animateBackground?: boolean; autoUpdateAnimateBackground?: boolean; rev?: boolean; advanceAuto?: number; templates?: AnimationTemplateOptions[]; diagramBuild?: "whole" | "depthByNode" | "depthByBranch" | "breadthByNode" | "breadthByLvl" | "clockwise" | "clockwiseIn" | "clockwiseOut" | "counterclockwise" | "counterclockwiseIn" | "counterclockwiseOut" | "inByRing" | "outByRing" | "up" | "down" | "allAtOnce" | "custom"; oleChartBuild?: "allAtOnce" | "series" | "category" | "seriesElement" | "categoryElement"; oleChartAnimateBackground?: boolean; graphicBuildAsOne?: boolean; graphicSubBuild?: AnimationGraphicSubBuildOptions; } interface AnimationGraphicSubBuildOptions { diagram?: { build?: "allAtOnce" | "one" | "levelOne" | "levelAtOnce"; reverse?: boolean; }; chart?: { build?: "allAtOnce" | "series" | "category" | "seriesElement" | "categoryElement"; animateBackground?: boolean; }; } interface AnimationTemplateOptions { lvl?: number; children: AnimationOptions[]; } interface AnimationOptions { type?: AnimationType; duration?: number; delay?: number; trigger?: AnimationTrigger; direction?: AnimationDirection; class?: AnimationClass; emphasisType?: EmphasisType; pathType?: PathAnimationType; path?: string; speed?: number; repeatCount?: number; autoReverse?: boolean; color?: string; mediaType?: MediaAnimationType; isNarration?: boolean; fullScreen?: boolean; volume?: number; mute?: boolean; attributeName?: string; calcMode?: AnimationCalcMode; valueType?: AnimationValueType; from?: string; to?: string; animBy?: string; charRange?: [number, number]; paragraphRange?: [number, number]; setBehavior?: { attributeName: string; toValue: string; toType?: "string" | "number"; }; commandType?: "call" | "evt" | "verb"; command?: string; iterate?: { type?: "element" | "word" | "letter"; interval?: number; backwards?: boolean; iteratePercentage?: number; }; repeatDuration?: string; acceleration?: number; deceleration?: number; restart?: "always" | "whenNotActive" | "never"; syncBehavior?: "canSlip" | "locked"; timeFilter?: string; eventFilter?: string; display?: boolean; masterRelation?: "sameClick" | "lastClick" | "nextClick"; buildLevel?: number; groupId?: number; afterEffect?: boolean; nodePlaceholder?: boolean; advanceAfterTime?: string; animateBackground?: boolean; autoUpdateAnimationBackground?: boolean; additive?: "base" | "sum" | "repl" | "mult" | "none"; accumulate?: "none" | "always"; transformType?: "pt" | "img"; runtimeContext?: string; override?: "normal" | "childStyle"; formula?: string; colorSpace?: "rgb" | "hsl"; pathEditMode?: "relative" | "fixed"; previousAction?: "none" | "skipTimed"; pointsTypes?: string; rotationAngle?: number; zoomContents?: boolean; showWhenStopped?: boolean; numberOfSlides?: number; propertyList?: string; endConditions?: EndConditionOptions[]; endSyncCondition?: EndConditionOptions; subTimeNodes?: AnimationOptions[]; exclusiveMode?: boolean; inkTargetShapeId?: number; soundTarget?: string; subShapeId?: number; graphicElement?: { diagram?: { id?: string; buildStep?: "sp" | "bg"; }; chart?: { seriesIndex?: number; categoryIndex?: number; buildStep: "category" | "ptInCategory" | "series" | "ptInSeries" | "allPts" | "gridLegend"; }; }; oleChartElementType?: "gridLegend" | "series" | "category" | "ptInSeries" | "ptInCategory"; oleChartElementLevel?: number; variantBool?: boolean; variantInt?: number; variantFloat?: number; colorFrom?: string; colorTo?: string; colorByRgb?: { r: string; g: string; b: string; }; colorByHsl?: { h: string; s: string; l: string; }; effectProgress?: AnimationVariantOptions; motionFrom?: { x: string; y: string; }; motionRotationCenter?: { x: string; y: string; }; builds?: AnimationBuildOptions[]; } //#endregion //#region src/shared/animation/timing.d.ts interface AnimationEntry extends AnimationOptions { shapeId?: number; shapeName?: string; } type AnimationsOptions = AnimationEntry[] | string; //#endregion //#region src/parts/descriptors/color-map-override.d.ts type ColorMappingOverrideOptions = { kind: "master"; } | { kind: "override"; colorMapping: Partial; }; //#endregion //#region src/parse.d.ts export interface PptxPartRefs { themes: string[]; notesMasters: string[]; handoutMasters: string[]; handoutMaster: boolean; commentAuthors?: string; comments: string[]; charts: string[]; diagramData: string[]; media: string[]; } export interface PptxDocument { doc: ParsedArchive; presentation?: Element; slides: string[]; slideMasters: string[]; slideLayouts: string[]; notesSlides: string[]; partRefs: PptxPartRefs; presProps?: string; viewProps?: string; tableStyles?: string; coreProps?: string; appProps?: string; customProps?: string; } export declare function parsePptx(data: DataType): PptxDocument; export declare function parsePresentation(data: DataType): Promise; export declare function parsePresentationSync(data: DataType): PresentationOptions; //#endregion //#region src/context.d.ts declare class ParseContext { pptx: PptxDocument; slideRels: Map; constructor(pptx: PptxDocument, slideRels: Map); } interface MediaEntry extends BaseMediaEntry { key: string; } interface ChartEntry { key: string; chartSpaceXml: string; userShapes?: { relationshipId: string; xml: string; }; } interface SmartArtEntry { key: string; dataModelXml: string; layout: string | LayoutDefinitionOptions; style: string | StyleDefinitionOptions; color: string | ColorDefinitionOptions; } interface HyperlinkEntry { key: string; url?: string; slide?: number; tooltip?: string; } interface ImageLinkEntry { key: string; url: string; } interface OleLinkEntry { key: string; url: string; } export declare class PptxWriteContext implements WriteContext { private _media; private _embeddings; private _charts; private _smartArts; private _hyperlinks; private _imageLinks; private _imageLinkKeys; private _nextImageLinkId; private _oleLinks; private _oleLinkKeys; private _nextOleLinkId; private _nextRelId; private _shapeIds; private _ambiguousShapeNames; private _nextChartId; private _nextSmartArtId; slideWidth: number; addRelationship(_type: string, _target: string, _mode?: string): string; addMedia(data: Uint8Array, type: string): string; addOle(data: Uint8Array, progId?: string): string; addImage(key: string, entry: MediaEntry): MediaEntry; addChart(key: string, entry: ChartEntry): void; addSmartArt(key: string, entry: SmartArtEntry): void; addHyperlink(key: string, target: HyperlinkTarget): void; addImageLink(url: string): string; addOleLink(url: string): string; nextChartKey(): string; beginShapeScope(): void; registerShapeId(name: string, id: number): void; resolveShapeName(name: string): number; nextSmartArtKey(): string; get media(): MediaEntry[]; get mediaCollection(): Media$1; get embeddings(): EmbeddingData[]; get charts(): ChartEntry[]; get smartArts(): SmartArtEntry[]; get hyperlinks(): HyperlinkEntry[]; get imageLinks(): ImageLinkEntry[]; get oleLinks(): OleLinkEntry[]; } export declare class PptxReadContext implements ReadContext { private _parseCtx; constructor(_parseCtx: ParseContext); resolveRelationship(rId: string): string | undefined; getPart(path: string): import("@office-open/xml").Element | undefined; getRaw(path: string): Uint8Array | undefined; } //#endregion //#region src/parts/descriptors/notes-slide.d.ts interface NotesSlideOptions { text?: string; children?: SlideChild[]; background?: BackgroundOptions; colorMappingOverride?: ColorMappingOverrideOptions; cSldExt?: string; showMasterShapes?: boolean; showMasterPlaceholderAnimations?: boolean; show?: boolean; } //#endregion //#region src/parts/handout-master.d.ts interface HeaderFooterOptions { date?: boolean; header?: boolean; footer?: boolean; slideNumber?: boolean; } interface HandoutMasterOptions { background?: BackgroundOptions; children?: SlideChild[]; colorMapping?: Partial; headerFooter?: HeaderFooterOptions; theme?: ThemeOptions$1; ext?: string; } export declare function buildHandoutMasterXml(options?: HandoutMasterOptions): string; //#endregion //#region src/parts/notes-master.d.ts interface NotesMasterOptions { background?: BackgroundOptions; children?: SlideChild[]; colorMapping?: Partial; headerFooter?: HeaderFooterOptions; notesStyle?: TextListStyleOptions$1; theme?: ThemeOptions$1; ext?: string; } export declare const DEFAULT_NOTES_STYLE: TextListStyleOptions$1; //#endregion //#region src/parts/presentation-properties.d.ts interface WebPropertiesOptions { showAnimation?: boolean; resizeGraphics?: boolean; allowPng?: boolean; relyOnVml?: boolean; organizeInFolders?: boolean; useLongFilenames?: boolean; imageSize?: "544x376" | "640x480" | "720x512" | "800x600" | "1024x768" | "1152x882" | "1152x900" | "1280x1024" | "1600x1200" | "1800x1400" | "1920x1200"; encoding?: string; color?: "none" | "browser" | "presentationText" | "presentationAccent" | "whiteTextOnBlack" | "blackTextOnWhite"; } interface PrintPropertiesOptions { printWhat?: "slides" | "handouts1" | "handouts2" | "handouts3" | "handouts4" | "handouts6" | "handouts9" | "notes" | "outline"; colorMode?: "blackWhite" | "gray" | "color"; hiddenSlides?: boolean; scaleToFitPaper?: boolean; frameSlides?: boolean; } interface HtmlPublishPropertiesOptions { showSpeakerNotes?: boolean; target?: string; title?: string; rId?: string; } interface PresentationPropertiesOptions { show?: ShowOptions; web?: WebPropertiesOptions; print?: PrintPropertiesOptions; htmlPublish?: HtmlPublishPropertiesOptions; colorMru?: string[]; ext?: string; } //#endregion //#region src/parts/slide-layout.d.ts type SlideLayoutType = "blank" | "title" | "text" | "twoColumnText" | "titleOnly" | "object" | "sectionHeader" | "chart" | "table" | "clipArtAndText" | "pictureText" | "twoObjects" | "twoTextAndTwoObjects" | "objectAndText" | "verticalText" | "verticalTitleAndText"; export declare function buildLayoutXml(layoutType: SlideLayoutType, slideWidth?: number): string; export declare function buildCustomLayoutXml(def: LayoutDefinition): string; //#endregion //#region src/parts/slide/slide-sync-properties.d.ts interface SlideSyncOptions { serverSldId: string; serverSldModifiedTime: string; clientInsertedTime: string; } //#endregion //#region src/shared/header-footer.d.ts interface SlideHeaderFooterOptions { slideNumber?: boolean; dateTime?: boolean; footer?: string | boolean; header?: boolean; } //#endregion //#region src/shared/transition.d.ts type TransitionType = "fade" | "push" | "wipe" | "split" | "blinds" | "checker" | "comb" | "randomBar" | "cover" | "pull" | "strips" | "wheel" | "zoom" | "circle" | "dissolve" | "diamond" | "newsflash" | "plus" | "wedge" | "random" | "cut"; type TransitionDirection = "left" | "up" | "right" | "down" | "leftUp" | "rightUp" | "leftDown" | "rightDown" | "out" | "in"; interface TransitionOptions { type?: TransitionType; speed?: "slow" | "medium" | "fast"; advanceOnClick?: boolean; advanceAfterTime?: number; direction?: TransitionDirection; orient?: "horizontal" | "vertical"; thruBlk?: boolean; spokes?: number; startSound?: { data: DataType; type: "mp3" | "wav" | "wma" | "aac"; name?: string; loop?: boolean; }; stopPreviousSound?: boolean; } export declare function buildTransition(options: TransitionOptions, ctx?: WriteContext): string; //#endregion //#region src/shared/file.d.ts type SlideSize = "16:9" | "4:3" | { width: number | UniversalMeasure; height: number | UniversalMeasure; }; type LayoutPlaceholderOptions = PlaceholderMapOptions; interface LayoutDefinition { type?: SlideLayoutType | string; name?: string; matchingName?: string; preserve?: boolean; userDrawn?: boolean; showMasterShapes?: boolean; showMasterPlaceholderAnimations?: boolean; layoutId?: number; children?: SlideChild[]; background?: BackgroundOptions; headerFooter?: SlideHeaderFooterOptions; controls?: ControlOptions[]; customerData?: { rId: string; }[]; cSldExt?: string; colorMappingOverride?: ColorMappingOverrideOptions; transition?: TransitionOptions; animations?: AnimationsOptions; ext?: string; placeholders?: LayoutPlaceholderOptions; layout?: string; themeOverride?: ThemeOverrideOptions; } interface MasterDefinition extends SlideMasterOptions { name?: string; theme?: ThemeOptions; layouts?: LayoutDefinition[]; } interface SlideCommentOptions { author: string; text: string; x: number | UniversalMeasure; y: number | UniversalMeasure; initials?: string; date?: DateTime; modified?: boolean; } type SlideAnimation = AnimationEntry; interface SlideOptions { children?: SlideChild[]; background?: BackgroundOptions; notes?: string | NotesSlideOptions; transition?: TransitionOptions | string; headerFooter?: SlideHeaderFooterOptions; colorMappingOverride?: ColorMappingOverrideOptions; comments?: SlideCommentOptions[]; layout?: SlideLayoutType | string; master?: string; showMasterShapes?: boolean; showMasterPlaceholderAnimations?: boolean; hidden?: boolean; controls?: ControlOptions[]; customerData?: { rId: string; }[]; slideSync?: SlideSyncOptions; cSldExt?: string; animations?: SlideAnimation[] | string; ext?: string; section?: string; } interface ShowOptions { loop?: boolean; type?: "present" | "browse" | "kiosk"; showScrollbar?: boolean; restart?: number; showNarration?: boolean; showAnimation?: boolean; useTimings?: boolean; slideRange?: { start: number; end: number; }; penColor?: string; ext?: string; } interface PresentationOptions extends CorePropertiesOptions$1 { size?: SlideSize; encrypted?: EncryptedContainerOptions; masters?: MasterDefinition[]; slides?: SlideOptions[]; show?: ShowOptions; view?: ViewPropertiesOptions; includeHandoutMaster?: boolean; includeNotesMaster?: boolean; handoutMasterOptions?: HandoutMasterOptions; notesMasterOptions?: NotesMasterOptions; tableStyles?: TableStyleListOptions; web?: WebPropertiesOptions; print?: PrintPropertiesOptions; htmlPublish?: HtmlPublishPropertiesOptions; serverZoom?: number; firstSlideNum?: number; showSpecialPlsOnTitleSld?: boolean; rtl?: boolean; removePersonalInfoOnSave?: boolean; compatMode?: boolean; strictFirstAndLastChars?: boolean; embedTrueTypeFonts?: boolean; saveSubsetFonts?: boolean; autoCompressPictures?: boolean; bookmarkIdSeed?: number; conformance?: "strict" | "transitional"; photoAlbum?: PhotoAlbumOptions; modifyVerifier?: ModifyVerifierOptions; embeddedFonts?: EmbeddedFontOptions[]; customShows?: CustomShowOptions[]; defaultTextStyle?: string | false; kinsoku?: KinsokuOptions[]; customerData?: CustomerDataOptions; smartTags?: { rId: string; }; colorMru?: string[]; presentationPropertiesExt?: string; ext?: string; appProperties?: AppPropertiesOptions; contentTypes?: ContentTypesInput; customProperties?: CustomPropertyOptions[]; rawParts?: { path: string; data: DataType; contentType?: string; }[]; passthroughRelationships?: { source: string; relationshipType: string; target: string; rId: string; targetMode?: "External"; }[]; } //#endregion //#region src/shared/placeholder.d.ts type PlaceholderKey = "title" | "body" | "subtitle" | "date" | "footer" | "slideNumber" | "header" | "object" | "chart" | "table" | "diagram" | "media" | "clipArt" | "slideImage" | "picture"; type PlaceholderMapOptions = { [K in PlaceholderKey]?: PlaceholderDefinition | false; }; export declare const PLACEHOLDER_TYPE_TO_KEY: Readonly>; interface PlaceholderPosition { x: number | UniversalMeasure; y: number | UniversalMeasure; width: number | UniversalMeasure; height: number | UniversalMeasure; } interface PlaceholderFacets { geometry?: ShapePropertiesOptions$1["geometry"]; customGeometry?: ShapePropertiesOptions$1["customGeometry"]; fill?: ShapePropertiesOptions$1["fill"]; outline?: ShapePropertiesOptions$1["outline"]; effects?: ShapePropertiesOptions$1["effects"]; scene3d?: ShapePropertiesOptions$1["scene3d"]; shape3d?: ShapePropertiesOptions$1["shape3d"]; textBody?: TextBodyOptions$1; style?: ShapeStyleOptions; } interface PlaceholderDefinition extends PlaceholderPosition, PlaceholderFacets, NonVisualDrawingPropertiesOptions {} interface ResolvedPlaceholder { position?: PlaceholderPosition; facets?: PlaceholderFacets; hidden?: boolean; } export declare function resolvePlaceholder(placeholderType: string, layout: LayoutDefinition | undefined, master: MasterDefinition | undefined): ResolvedPlaceholder; export declare function extractPlaceholderDefinition(spEl: Element, ctx: ReadContext, phTypeToKey: Readonly>): { key: PlaceholderKey; def: PlaceholderDefinition | false; } | undefined; //#endregion //#region src/parts/slide-master.d.ts interface MasterPlaceholderPosition { x: number | UniversalMeasure; y: number | UniversalMeasure; width: number | UniversalMeasure; height: number | UniversalMeasure; } type MasterPlaceholderOptions = PlaceholderMapOptions; interface SlideMasterOptions { background?: BackgroundOptions; children?: SlideChild[]; placeholders?: MasterPlaceholderOptions; colorMapping?: Partial; headerFooter?: HeaderFooterOptions; textStyles?: TextStylesOptions; preserve?: boolean; transition?: TransitionOptions; animations?: AnimationsOptions; customerData?: { rId: string; }[]; controls?: ControlOptions[]; cSldExt?: string; ext?: string; } //#endregion //#region src/parts/notes-slide.d.ts export declare function buildNotesSlideXml(options?: NotesSlideOptions): string; //#endregion //#region src/parts/descriptors/slide-layout.d.ts export declare const slideLayoutDesc: CustomDescriptor; //#endregion //#region src/parts/descriptors/animation.d.ts export declare const timingDesc: CustomDescriptor; //#endregion //#region src/parts/comment.d.ts interface AuthorEntry { id: number; name: string; initials: string; clrIdx: number; lastIdx: number; } interface CommentEntry { authorId: number; idx: number; date?: DateTime; modified?: boolean; x: number | UniversalMeasure; y: number | UniversalMeasure; text: string; } //#endregion //#region src/parts/descriptors/comments.d.ts export declare const commentAuthorsDesc: CustomDescriptor; export declare const slideCommentsDesc: CustomDescriptor; //#endregion //#region src/parts/descriptors/background.d.ts export declare const backgroundDesc: CustomDescriptor; //#endregion //#region src/parts/descriptors/presentation-properties.d.ts export declare const presentationPropertiesDesc: CustomDescriptor; //#endregion //#region src/parts/descriptors/slide.d.ts export declare const slideDesc: CustomDescriptor; //#endregion //#region src/parts/descriptors/slide-master.d.ts type SlideMasterDescriptorOptions = SlideMasterOptions & { name?: string; slideLayoutIds?: { id: number; relationshipId: string; }[]; }; export declare const slideMasterDesc: CustomDescriptor; //#endregion //#region src/shared/media/media.d.ts interface MediaTransformation { width: number | UniversalMeasure; height: number | UniversalMeasure; } export declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation; //#endregion //#region src/patch.d.ts export type Patch = TextRunOptions$1 | TextRunOptions$1[] | string; export interface PatchPresentationOptions extends BasePatchOptions { slides?: { replace?: Readonly>; append?: Readonly; remove?: readonly number[]; }; comments?: Readonly>; keepOriginalStyles?: boolean; } export declare const patchPresentation: ({ outputType, data, placeholders, findReplace, coreProperties, slides, comments, keepOriginalStyles, placeholderDelimiters }: PatchPresentationOptions) => Promise; //#endregion //#region src/generate.d.ts export declare function generatePresentation(options: PresentationOptions, packerOptions?: PackerOptions$1): Promise; export declare function generatePresentationSync(options: PresentationOptions, packerOptions?: PackerOptions$1): OutputByType$1[T]; export declare function generatePresentationStream(options: PresentationOptions, packerOptions?: PackerOptions$1): ReadableStream; //#endregion //#region src/compiler.d.ts export declare function compilePresentation(options: PresentationOptions, overrides?: XmlifyedFile[], mediaLevel?: number): Zippable; //#endregion export { type AnimationCalcMode, type AnimationClass, type AnimationDirection, type AnimationEntry, type AnimationOptions, type AnimationTrigger, type AnimationType, type AnimationValueType, type AudioCdOptions, type AudioCdTimeOptions, type AudioFrameOptions, type AudioType, type BackgroundOptions, type BevelOptions, type BevelPreset, type BlipFillConfigOptions, type BlipFillMediaData, type CellBorderOptions, ChartCollection, type ChartData, type ChartOptions, type ChartSeriesData, type ChartSpaceOptions, type ChartType, type ColorSchemeOptions, type ColorTransformOptions, type CompoundLine, type CompressionOptions, type ConnectorOptions, type CoreGradientFillOptions, type CorePropertiesOptions, type CustomShowOptions, type CustomerDataOptions, DEFAULT_TEXT_STYLES, type EffectListOptions, type EmbeddedFontOptions, type EmphasisType, type FillOptions, type FontSchemeOptions, type GradientStopOptions, type GroupOptions, type PresentationPartOptions as IPresentationXmlOptions, type KinsokuOptions, type LayoutDefinition, type LayoutPlaceholderOptions, type LineCap, type LineJoin, type LineShapeOptions, type LockedCanvasFrameOptions, type MasterDefinition, type MasterPlaceholderOptions, type MasterPlaceholderPosition, Media, type MediaAnimationType, type MediaData, type MediaDataTransformation, type MediaTransformation, type ModifyVerifierOptions, type NotesMasterOptions, type NotesSlideOptions, type OutlineOptions, type OutputByType, type OutputType, type PackerOptions, type ParagraphDescriptorOptions, type PathAnimationType, type PathShade, type PenAlignment, type PhotoAlbumOptions, type PictureOptions, type PlaceholderDefinition, type PlaceholderFacets, type PlaceholderPosition, type PosterType, type PresentationOptions, type PresetDash, type PresetMaterial, type RelationshipType, Relationships, type ResolvedPlaceholder, type Scene3DOptions, type Shape3DOptions, type ShapeOptions, type ShapePropertiesOptions, type ShowOptions, type SlideAnimation, type SlideChild, type SlideCommentOptions, type SlideHeaderFooterOptions, type SlideLayoutType, type SlideMasterOptions, type SlideOptions, type SlideSize, SmartArtCollection, type SmartArtData, type SmartArtOptions, type StrikeStyle, type TableCellOptions, type TableOptions, type TableRowOptions, type TextAlignment, type TextBodyOptions, type TextCapitalization, type TextCharacterPropertiesOptions, type TextHyperlinkOptions, type TextListStyleOptions, type TextParagraphPropertiesOptions, type TextRunOptions, type TextStylesOptions, type ThemeOptions, type TileFlipMode, type TransitionDirection, type TransitionOptions, type TransitionType, type TreeNode, type UnderlineStyle, type VerticalAnchor, type VideoFrameOptions, type VideoType, type ViewPropertiesOptions, buildFill, chartSpaceDesc, createBevel, createBottomBevel, createColorElement, createColorTransforms, createDataModel, createEffectList, createGradientFill, createGradientStop, createOutline, createScene3D, createShape3D, createThemeXml, extractBlipFillMedia, parseArchive, stringifyPresetGeometry, themeDesc }; //# sourceMappingURL=index.d.mts.map