//#region dist/.types-work/chart-qJPl2r8m.d.ts type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic'; interface MathRun { kind: 'run'; text: string; style: MathStyle; } interface MathFraction { kind: 'fraction'; num: MathNode[]; den: MathNode[]; bar?: boolean; } interface MathScript { kind: 'sup' | 'sub' | 'subSup'; base: MathNode[]; sup?: MathNode[]; sub?: MathNode[]; } interface MathNary { kind: 'nary'; op: string; limLoc?: string; sub?: MathNode[]; sup?: MathNode[]; body: MathNode[]; } interface MathDelimiter { kind: 'delimiter'; begChar: string; endChar: string; items: MathNode[][]; } interface MathRadical { kind: 'radical'; index?: MathNode[]; radicand: MathNode[]; } interface MathLimit { kind: 'limit'; base: MathNode[]; lower?: MathNode[]; upper?: MathNode[]; } interface MathArray { kind: 'array'; rows: MathNode[][][]; align: 'eq' | 'center' | 'left'; } interface MathGroupChr { kind: 'groupChr'; char: string; pos: 'top' | 'bot'; base: MathNode[]; } interface MathBar { kind: 'bar'; pos: 'top' | 'bot'; base: MathNode[]; } interface MathAccent { kind: 'accent'; char: string; base: MathNode[]; } interface MathFunc { kind: 'func'; name: MathNode[]; arg: MathNode[]; } interface MathGroup { kind: 'group'; items: MathNode[]; } interface MathPhant { kind: 'phant'; show: boolean; zeroWid?: boolean; zeroAsc?: boolean; zeroDesc?: boolean; base: MathNode[]; } interface MathSPre { kind: 'sPre'; sub: MathNode[]; sup: MathNode[]; base: MathNode[]; } interface MathBox { kind: 'box'; base: MathNode[]; } interface MathBorderBox { kind: 'borderBox'; hideTop?: boolean; hideBot?: boolean; hideLeft?: boolean; hideRight?: boolean; strikeH?: boolean; strikeV?: boolean; strikeBltr?: boolean; strikeTlbr?: boolean; base: MathNode[]; } type MathNode = MathRun | MathFraction | MathScript | MathNary | MathDelimiter | MathRadical | MathLimit | MathArray | MathGroupChr | MathBar | MathAccent | MathFunc | MathGroup | MathPhant | MathSPre | MathBox | MathBorderBox; interface Duotone$1 { clr1: string; clr2: string; } interface SrcRect { l: number; t: number; r: number; b: number; } type PathCmd$2 = { cmd: 'moveTo'; x: number; y: number; } | { cmd: 'lineTo'; x: number; y: number; } | { cmd: 'cubicBezTo'; x1: number; y1: number; x2: number; y2: number; x: number; y: number; } | { cmd: 'quadBezTo'; x1: number; y1: number; x: number; y: number; } | { cmd: 'arcTo'; wr: number; hr: number; stAng: number; swAng: number; } | { cmd: 'close'; }; type Fill = SolidFill | NoFill | GradientFill | PatternFill | ImageFill; interface SolidFill { fillType: 'solid'; color: string; } interface NoFill { fillType: 'none'; } interface GradientStop$1 { position: number; color: string; } interface GradientFill { fillType: 'gradient'; stops: GradientStop$1[]; angle: number; gradType: string; scaled?: boolean; path?: 'shape' | 'circle' | 'rect' | string; fillToRect?: FillRect; tileRect?: FillRect; flip?: 'none' | 'x' | 'y' | 'xy' | string; rotWithShape?: boolean; } interface PatternFill { fillType: 'pattern'; fg: string; bg: string; preset: string; } interface FillRect { l?: number; t?: number; r?: number; b?: number; } interface TileInfo { tx?: number; ty?: number; sx?: number; sy?: number; flip?: string; algn?: string; } interface ImageFill { fillType: 'image'; imagePath: string; svgImagePath?: string; mimeType: string; dpi?: number; rotWithShape?: boolean; srcRect?: SrcRect; fillRect?: FillRect; stretch?: boolean; tile?: TileInfo; alpha?: number; duotone?: Duotone$1; } interface Shadow { color: string; alpha: number; blur: number; dist: number; dir: number; sx?: number; sy?: number; kx?: number; ky?: number; algn?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br'; rotWithShape?: boolean; } interface Glow { color: string; alpha: number; radius: number; } interface SoftEdge { radius: number; } interface Reflection { blur: number; dist: number; dir: number; stA: number; stPos: number; endA: number; endPos: number; sx: number; sy: number; } interface ArrowEnd { type: string; w: string; len: string; } interface Stroke { color: string; width: number; fill?: Exclude; dashStyle?: string; customDash?: ReadonlyArray; lineCap?: 'butt' | 'round' | 'square'; lineJoin?: 'round' | 'bevel' | 'miter'; miterLimit?: number; alignment?: 'ctr' | 'in'; headEnd?: ArrowEnd; tailEnd?: ArrowEnd; cmpd?: string; } interface DrawingMLCustomDashSegment { dash: number; space: number; } interface TextBody$1 { verticalAnchor: string; paragraphs: Paragraph$1[]; defaultFontSize: number | null; defaultBold: boolean | null; defaultItalic: boolean | null; lIns: number; rIns: number; tIns: number; bIns: number; wrap: string; vert: string; autoFit: string; fontScale?: number | null; lnSpcReduction?: number | null; numCol?: number; spcCol?: number; } type SpaceLine = { type: 'pct'; val: number; } | { type: 'pts'; val: number; }; type Bullet$1 = { type: 'none'; } | { type: 'inherit'; } | { type: 'char'; char: string; color: string | null; sizePct: number | null; sizePts?: number; fontFamily: string | null; } | { type: 'autoNum'; numType: string; startAt: number | null; color: string | null; sizePct?: number | null; sizePts?: number; fontFamily?: string | null; }; interface TabStop$1 { pos: number; algn: string; } interface Paragraph$1 { alignment: string; marL: number; marR: number; indent: number; spaceBefore: number | null; spaceAfter: number | null; spaceLine: SpaceLine | null; lvl: number; bullet: Bullet$1; defFontSize: number | null; defColor: string | null; defBold: boolean | null; defItalic: boolean | null; defFontFamily: string | null; tabStops: TabStop$1[]; rtl?: boolean; runs: TextRun[]; } type TextRun = TextRunData | LineBreak | EquationRun; interface EquationRun { type: 'math'; nodes: MathNode[]; display: boolean; fontSize?: number | null; color?: string | null; } interface TextRunData { type: 'text'; text: string; bold: boolean | null; italic: boolean | null; underline: boolean; underlineStyle?: string; underlineColor?: string; strikethrough: boolean; strikeDouble?: boolean; fontSize: number | null; color: string | null; fontFamily: string | null; fontFamilyEa?: string; fontFamilySym?: string; baseline?: number; caps?: 'none' | 'small' | 'all'; letterSpacing?: number; fieldType?: string; hyperlink?: string; hyperlinkAction?: string; shadow?: Shadow; reflection?: Reflection; outline?: TextOutline; highlight?: string; } interface TextOutline { width: number; color?: string; } interface LineBreak { type: 'break'; } interface RenderOptions { width?: number; defaultTextColor?: string | null; dpr?: number; majorFont?: string | null; minorFont?: string | null; hlinkColor?: string | null; fetchMedia?: (path: string) => Promise; fetchImage?: (path: string, mimeType: string) => Promise; skipMediaControls?: boolean; } interface ChartSeries { name: string; chartexFormatIdx?: number | null; color: string | null; fillPattern?: PatternFill | null; invertIfNegative?: boolean | null; automaticNegativeStyle?: boolean | null; invertedFill?: SolidFill | GradientFill | PatternFill | null; invertedFillHidden?: boolean | null; invertedFillAuthored?: boolean | null; invertedLineColor?: string | null; invertedLineWidthEmu?: number | null; invertedLineHidden?: boolean | null; invertedLineAuthored?: boolean | null; chartexStyle?: ChartExElementStyle | null; lineColor?: string | null; lineWidthEmu?: number | null; threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null; values: (number | null)[]; sourceHidden?: boolean[] | null; dataPointColors?: (string | null)[] | null; explosion?: number | null; dataLabelColors?: (string | null)[] | null; labelColor?: string | null; seriesType?: string | null; lineGroupIndex?: number | null; areaGroupIndex?: number | null; barGroupIndex?: number | null; barGroupDirection?: 'bar' | 'col' | string | null; barGroupGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null; barGroupGapWidth?: number | null; barGroupOverlap?: number | null; useSecondaryAxis?: boolean | null; categories?: string[] | null; bubbleXSourceIsString?: boolean | null; showMarker?: boolean | null; valFormatCode?: string | null; catFormatCode?: string | null; catFormatBuiltinId?: number | null; catFormatCodes?: (string | null)[] | null; markerSymbol?: string | null; automaticMarkerSymbol?: string | null; markerSize?: number | null; markerFill?: string | null; markerFillPaint?: Fill | null; markerFillPaintAuthored?: boolean | null; markerLine?: string | null; markerLineWidthEmu?: number | null; dataPointOverrides?: ChartDataPointOverride[] | null; dataLabelOverrides?: ChartDataLabelOverride[] | null; seriesDataLabels?: ChartSeriesDataLabels | null; errBars?: ChartErrBars[] | null; bubbleSizes?: (number | null)[] | null; bubble3DGroupDefault?: boolean | null; bubble3D?: boolean | null; smooth?: boolean | null; trendLines?: ChartTrendline[] | null; lineHidden?: boolean | null; } interface ChartTrendline { name?: string | null; trendlineType: string; order?: number | null; period?: number | null; forward?: number | null; backward?: number | null; intercept?: number | null; dispRSqr?: boolean | null; dispEq?: boolean | null; labelManualLayout?: ChartManualLayout | null; labelText?: string | null; labelRichRuns?: ChartTextRun[] | null; labelFormatCode?: string | null; labelFormatSourceLinked?: boolean | null; labelFontSizeHpt?: number | null; labelFontBold?: boolean | null; labelFontItalic?: boolean | null; labelFontColor?: string | null; labelFontPaintAuthored?: boolean | null; labelFontHidden?: boolean | null; labelFontFace?: string | null; labelFontLanguage?: string | null; labelFontBaseline?: number | null; labelTextRotation?: number | null; labelTextWrap?: string | null; labelTextVerticalAnchor?: string | null; labelTextVerticalMode?: string | null; labelTextLInsEmu?: number | null; labelTextTInsEmu?: number | null; labelTextRInsEmu?: number | null; labelTextBInsEmu?: number | null; labelTextBodyAuthored?: boolean | null; labelBox?: ChartLabelBox | null; labelTextAlign?: string | null; lineColor?: string | null; lineWidthEmu?: number | null; lineDash?: string | null; lineHidden?: boolean | null; } interface ChartDataPointOverride { idx: number; color?: string; fillHidden?: boolean; chartexStyle?: ChartExElementStyle | null; lineColor?: string; lineWidthEmu?: number; lineDash?: string; lineHidden?: boolean; markerSymbol?: string; markerSize?: number; markerFill?: string; markerFillPaint?: Fill | null; markerFillPaintAuthored?: boolean | null; markerLine?: string; markerLineWidthEmu?: number; bubble3D?: boolean | null; explosion?: number; } interface ChartDataLabelOverride { idx: number; text: string; richRuns?: ChartTextRun[]; position?: string; fontColor?: string; fontPaintAuthored?: boolean; fontHidden?: boolean; fontSizeHpt?: number; fontFace?: string; fontBold?: boolean; fontItalic?: boolean; fontLanguage?: string; fontBaseline?: number; textRotation?: number; textWrap?: string; textVerticalAnchor?: string; textVerticalMode?: string; textLInsEmu?: number; textTInsEmu?: number; textRInsEmu?: number; textBInsEmu?: number; textBodyAuthored?: boolean; textAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string; formatCode?: string; separator?: string; manualLayout?: ChartManualLayout; labelBox?: ChartLabelBox; showVal?: boolean; showCatName?: boolean; showSerName?: boolean; showPercent?: boolean; showBubbleSize?: boolean; showLegendKey?: boolean; deleted?: boolean; } interface ChartLabelBox { fill?: string; fillPaint?: SolidFill | GradientFill | PatternFill | null; fillHidden?: boolean | null; fillPaintAuthored?: boolean | null; borderColor?: string; borderFill?: SolidFill | GradientFill | PatternFill | null; borderWidthEmu?: number; borderHidden?: boolean | null; borderPaintAuthored?: boolean | null; borderDash?: string | null; borderDashAuthored?: boolean | null; borderCustomDash?: ChartLineDashSegment[] | null; borderCap?: string | null; borderJoin?: string | null; borderCompound?: string | null; } interface ChartSeriesDataLabels { deleted?: boolean | null; showVal: boolean; showCatName: boolean; showSerName: boolean; showPercent: boolean; showBubbleSize?: boolean; showLegendKey?: boolean; position?: string; fontColor?: string; fontPaintAuthored?: boolean; fontHidden?: boolean; formatCode?: string; separator?: string; fontBold?: boolean; fontItalic?: boolean; fontLanguage?: string; fontBaseline?: number; fontSizeHpt?: number; fontFace?: string; textRotation?: number; textWrap?: string; textVerticalAnchor?: string; textVerticalMode?: string; textLInsEmu?: number; textTInsEmu?: number; textRInsEmu?: number; textBInsEmu?: number; textBodyAuthored?: boolean; textAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string; labelBox?: ChartLabelBox; showLeaderLines?: boolean; leaderLineColor?: string; leaderLineWidthEmu?: number; leaderLineHidden?: boolean; leaderLineDash?: string; } interface ChartErrBars { dir: string; barType: string; plus: (number | null)[]; minus: (number | null)[]; noEndCap: boolean; color?: string; lineWidthEmu?: number; dash?: string; hidden?: boolean; } type ChartType = 'line' | 'stackedLine' | 'stackedLinePct' | 'clusteredBar' | 'clusteredBarH' | 'stackedBar' | 'stackedBarH' | 'stackedBarPct' | 'stackedBarHPct' | 'area' | 'stackedArea' | 'stackedAreaPct' | 'pie' | 'doughnut' | 'scatter' | 'bubble' | 'radar' | 'waterfall' | 'stock' | 'surface' | 'surface3D' | 'boxWhisker' | 'sunburst' | 'treemap' | string; type ChartPlotGroupKind = 'area' | 'area3D' | 'line' | 'line3D' | 'stock' | 'radar' | 'scatter' | 'pie' | 'pie3D' | 'doughnut' | 'bar' | 'bar3D' | 'ofPie' | 'surface' | 'surface3D' | 'bubble'; type ChartPlotGroupAxisSlot = 'primary' | 'secondary' | 'none' | 'unresolved'; interface ChartPlotGroup { kind: ChartPlotGroupKind; seriesStart: number; seriesCount: number; categoryAxis: ChartPlotGroupAxisSlot; valueAxis: ChartPlotGroupAxisSlot; seriesAxis: ChartPlotGroupAxisSlot; axisIds?: string[] | null; grouping?: string | null; barDirection?: string | null; scatterStyle?: string | null; radarStyle?: string | null; gapWidth?: number | null; overlap?: number | null; bubbleScale?: number | null; bubbleSizeRepresents?: 'area' | 'w' | null; showNegativeBubbles?: boolean | null; } type ChartLineDashSegment = DrawingMLCustomDashSegment; interface ChartExElementStyle { fontSizeHpt?: number | null; fontBold?: boolean | null; fontItalic?: boolean | null; fontColor?: string | null; fontPaintAuthored?: boolean | null; fontHidden?: boolean | null; fontFace?: string | null; fontLanguage?: string | null; fontBaseline?: number | null; textRotation?: number | null; textWrap?: string | null; textVerticalAnchor?: string | null; textVerticalMode?: string | null; textLInsEmu?: number | null; textTInsEmu?: number | null; textRInsEmu?: number | null; textBInsEmu?: number | null; textBodyAuthored?: boolean | null; fillPaints?: Array | null; fillColors?: Array | null; fillHidden?: boolean | null; fillPaintAuthored?: boolean | null; fillNoStyle?: boolean | null; lineColors?: Array | null; linePaints?: Array | null; linePaintAuthored?: boolean | null; lineWidthEmu?: number | null; lineHidden?: boolean | null; lineNoStyle?: boolean | null; lineDash?: string | null; lineDashAuthored?: boolean | null; lineCustomDash?: ChartLineDashSegment[] | null; lineCap?: string | null; lineJoin?: string | null; lineCompound?: string | null; fillColorIndex?: number | null; lineColorIndex?: number | null; } type ChartStyleRole = 'axisTitle' | 'categoryAxis' | 'chartArea' | 'dataLabel' | 'dataLabelCallout' | 'dataPoint' | 'dataPoint3D' | 'dataPointLine' | 'dataPointMarker' | 'dataPointWireframe' | 'dataTable' | 'downBar' | 'dropLine' | 'errorBar' | 'floor' | 'gridlineMajor' | 'gridlineMinor' | 'hiLoLine' | 'leaderLine' | 'legend' | 'plotArea' | 'plotArea3D' | 'seriesAxis' | 'seriesLine' | 'title' | 'trendline' | 'trendlineLabel' | 'upBar' | 'valueAxis' | 'wall'; interface ChartSurfaceBandFormat { idx: number; style?: ChartExElementStyle | null; fill?: SolidFill | GradientFill | PatternFill | null; fillHidden?: boolean | null; lineColor?: string | null; lineWidthEmu?: number | null; lineHidden?: boolean | null; } interface ChartDataTable { showHorizontalBorder: boolean; showVerticalBorder: boolean; showOutline: boolean; showKeys: boolean; fontSizeHpt?: number | null; fontFace?: string | null; fontColor?: string | null; fontBold?: boolean | null; fontItalic?: boolean | null; fillColor?: string | null; fill?: SolidFill | GradientFill | PatternFill | null; fillHidden?: boolean | null; fillPaintAuthored?: boolean | null; lineColor?: string | null; lineWidthEmu?: number | null; lineDash?: string | null; lineHidden?: boolean | null; } interface ChartModel { chartType: ChartType; title: string | null; titleRichRuns?: ChartTextRun[] | null; titlePresent?: boolean; categories: string[]; categorySourceHidden?: boolean[] | null; categoryLevels?: string[][] | null; series: ChartSeries[]; plotGroups?: ChartPlotGroup[] | null; chartTextBoxes?: ChartTextBox[] | null; varyColors?: boolean | null; showDataLabels: boolean; valMin: number | null; valMax: number | null; catAxisTitle: string | null; valAxisTitle: string | null; catAxisHidden: boolean; valAxisHidden: boolean; catAxisLineHidden: boolean; valAxisLineHidden: boolean; plotAreaBg: string | null; plotAreaFill?: Fill | null; plotAreaFillHidden?: boolean | null; plotAreaFillPaintAuthored?: boolean | null; plotAreaFillAutomatic?: boolean | null; plotAreaLineColor?: string | null; plotAreaLineFill?: SolidFill | GradientFill | PatternFill | null; plotAreaLineWidthEmu?: number | null; plotAreaLineDash?: string | null; plotAreaLineDashAuthored?: boolean | null; plotAreaLineCustomDash?: ChartLineDashSegment[] | null; plotAreaLineCap?: string | null; plotAreaLineJoin?: string | null; plotAreaLineCompound?: string | null; plotAreaLineHidden?: boolean | null; plotAreaLinePaintAuthored?: boolean | null; chartBg: string | null; chartFill?: Fill | null; chartFillHidden?: boolean | null; chartFillPaintAuthored?: boolean | null; roundedCorners?: boolean | null; plotVisibleOnly?: boolean | null; showLegend: boolean; dataTable?: ChartDataTable | null; legendPos: 'r' | 'l' | 't' | 'b' | 'tr' | null; legendOverlay?: boolean | null; legendEntries?: ChartLegendEntryOverride[] | null; catAxisCrossBetween: 'between' | 'midCat' | string; valAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string; catAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string; valAxisMinorTickMark?: 'cross' | 'out' | 'in' | 'none' | string | null; catAxisMinorTickMark?: 'cross' | 'out' | 'in' | 'none' | string | null; titleFontSizeHpt: number | null; titleFontColor: string | null; titleFontFace: string | null; catAxisFontSizeHpt: number | null; valAxisFontSizeHpt: number | null; catAxisFontColor?: string | null; valAxisFontColor?: string | null; dataLabelFontSizeHpt: number | null; dataLabelFontBold?: boolean | null; subtotalIndices: number[]; legendManualLayout?: LegendManualLayout | null; valAxisFormatCode?: string | null; valAxisDisplayUnits?: ChartDisplayUnits | null; catAxisDisplayUnits?: ChartDisplayUnits | null; barGapWidth?: number | null; barOverlap?: number | null; dataLabelPosition?: string | null; dataLabelFontColor?: string | null; dataLabelFormatCode?: string | null; titleFontBold?: boolean | null; catAxisFontBold?: boolean | null; catAxisFontItalic?: boolean | null; valAxisFontBold?: boolean | null; valAxisFontItalic?: boolean | null; catAxisTitleFontSizeHpt?: number | null; catAxisTitleFontBold?: boolean | null; catAxisTitleFontItalic?: boolean | null; catAxisTitleFontColor?: string | null; catAxisTitleRotation?: number | null; catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null; catAxisTitleManualLayout?: ChartManualLayout | null; catAxisTitleTextVerticalInsetEmu?: number | null; valAxisTitleFontSizeHpt?: number | null; valAxisTitleFontBold?: boolean | null; valAxisTitleFontItalic?: boolean | null; valAxisTitleFontColor?: string | null; valAxisTitleRotation?: number | null; valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null; valAxisTitleManualLayout?: ChartManualLayout | null; valAxisTitleTextVerticalInsetEmu?: number | null; catAxisFontFace?: string | null; valAxisFontFace?: string | null; catAxisTitleFontFace?: string | null; valAxisTitleFontFace?: string | null; dataLabelFontFace?: string | null; legendFontFace?: string | null; legendFontColor?: string | null; legendFontSizeHpt?: number | null; legendFontBold?: boolean | null; legendFillColor?: string | null; legendFill?: Fill | null; legendFillHidden?: boolean | null; legendFillPaintAuthored?: boolean | null; legendLineColor?: string | null; legendLineFill?: SolidFill | GradientFill | PatternFill | null; legendLineWidthEmu?: number | null; legendLineDash?: string | null; legendLineDashAuthored?: boolean | null; legendLineCustomDash?: ChartLineDashSegment[] | null; legendLineCap?: string | null; legendLineJoin?: string | null; legendLineCompound?: string | null; legendLineHidden?: boolean | null; legendLinePaintAuthored?: boolean | null; themeMajorFontLatin?: string | null; themeMinorFontLatin?: string | null; chartBorderColor?: string | null; chartBorderLineFill?: SolidFill | GradientFill | PatternFill | null; chartBorderWidthEmu?: number | null; chartBorderDash?: string | null; chartBorderDashAuthored?: boolean | null; chartBorderCustomDash?: ChartLineDashSegment[] | null; chartBorderCap?: string | null; chartBorderJoin?: string | null; chartBorderCompound?: string | null; chartBorderHidden?: boolean | null; chartBorderPaintAuthored?: boolean | null; catAxisCrosses?: string | null; catAxisCrossesAt?: number | null; valAxisCrosses?: string | null; valAxisCrossesAt?: number | null; catAxisLineColor?: string | null; catAxisLineWidthEmu?: number | null; catAxisLineDash?: string | null; catAxisLinePaintAuthored?: boolean | null; valAxisLineColor?: string | null; valAxisLineWidthEmu?: number | null; valAxisLineDash?: string | null; valAxisLinePaintAuthored?: boolean | null; catAxisFormatCode?: string | null; catAxisMin?: number | null; catAxisMax?: number | null; titleManualLayout?: ChartManualLayout | null; plotAreaManualLayout?: ChartManualLayout | null; scatterStyle?: string | null; bubbleScale?: number | null; bubbleSizeRepresents?: 'area' | 'w' | null; showNegativeBubbles?: boolean | null; radarStyle?: string | null; secondaryValAxis?: SecondaryValueAxis | null; secondaryCatAxis?: SecondaryValueAxis | null; date1904?: boolean; holeSize?: number | null; firstSliceAngle?: number | null; dispBlanksAs?: string | null; showDataLabelsOverMax?: boolean | null; valAxisMajorGridlines?: boolean | null; catAxisMajorGridlines?: boolean | null; valAxisGridlineColor?: string | null; valAxisGridlineWidthEmu?: number | null; valAxisGridlineDash?: string | null; catAxisGridlineColor?: string | null; catAxisGridlineWidthEmu?: number | null; catAxisGridlineDash?: string | null; valAxisMinorGridlines?: boolean | null; valAxisMinorGridlineColor?: string | null; valAxisMinorGridlineWidthEmu?: number | null; valAxisMinorGridlineDash?: string | null; catAxisMinorGridlines?: boolean | null; catAxisMinorGridlineColor?: string | null; catAxisMinorGridlineWidthEmu?: number | null; catAxisMinorGridlineDash?: string | null; valAxisMajorUnit?: number | null; valAxisMinorUnit?: number | null; catAxisMajorUnit?: number | null; catAxisMinorUnit?: number | null; catAxisIsDate?: boolean | null; catAxisBaseTimeUnit?: 'days' | 'months' | 'years' | string | null; catAxisMajorTimeUnit?: 'days' | 'months' | 'years' | string | null; catAxisMinorTimeUnit?: 'days' | 'months' | 'years' | string | null; catAxisNoMultiLevelLabels?: boolean | null; valAxisLogBase?: number | null; catAxisLogBase?: number | null; valAxisOrientation?: 'minMax' | 'maxMin' | string | null; catAxisOrientation?: 'minMax' | 'maxMin' | string | null; catAxisTickLabelPos?: string | null; catAxisTickLabelSkip?: number | null; catAxisTickMarkSkip?: number | null; catAxisLabelAlignment?: 'l' | 'ctr' | 'r' | string | null; catAxisLabelOffsetPercent?: number | null; valAxisTickLabelPos?: string | null; catAxisLabelRotation?: number | null; lineGroupDecorations?: ChartLineGroupDecorations[] | null; areaGroupDecorations?: ChartAreaGroupDecorations[] | null; barGroupDecorations?: ChartBarGroupDecorations[] | null; stockDropLines?: ChartDecorationLineStyle | null; stockHiLowLineStyle?: ChartDecorationLineStyle | null; stockHiLowLines?: boolean | null; stockHiLowLineColor?: string | null; stockUpDownBars?: boolean | null; stockUpDownBarStyle?: ChartStockUpDownBarStyle | null; stockAutomaticStyle?: { lineColor: string; lineWidthEmu: number; upFillColor: string; downFillColor: string; } | null; surfaceWireframe?: boolean | null; surfaceBandFormats?: ChartSurfaceBandFormat[] | null; legacyChartStyle?: number | null; themeAccentColors?: string[] | null; ofPie?: ChartOfPie | null; threeD?: ChartThreeD | null; chartexBox?: ChartexBoxWhisker | null; chartexSunburst?: ChartexSunburst | null; chartexTreemap?: ChartexTreemap | null; chartexRegionMap?: ChartexRegionMap | null; chartexHistogramBinning?: ChartexHistogramBinning | null; chartexAccents?: string[] | null; chartexColorPalette?: Array | null; chartexColorStyleMethod?: string | null; chartStyleRoles?: Partial> | null; chartStyleColorPalette?: Array | null; chartStyleColorMethod?: string | null; chartStyleMarkerSizePt?: number | null; chartStyleMarkerSymbol?: string | null; chartexDataPointStyle?: ChartExElementStyle | null; chartexDataPointLineStyle?: ChartExElementStyle | null; chartexSeriesLineStyle?: ChartExElementStyle | null; chartexDataPointMarkerStyle?: ChartExElementStyle | null; chartexMarkerSizePt?: number | null; chartexMarkerSymbol?: string | null; chartexConnectorLines?: boolean | null; } interface ChartStockBarPaint { fillColor?: string | null; fill?: SolidFill | GradientFill | PatternFill | null; fillPaintAuthored?: boolean | null; fillHidden?: boolean | null; lineColor?: string | null; linePaintAuthored?: boolean | null; lineWidthEmu?: number | null; lineDash?: string | null; lineCap?: string | null; lineJoin?: string | null; lineHidden?: boolean | null; } interface ChartStockUpDownBarStyle { gapWidthPercent: number; up: ChartStockBarPaint; down: ChartStockBarPaint; } interface ChartDecorationLineStyle { color?: string | null; paintAuthored?: boolean | null; widthEmu?: number | null; dash?: string | null; cap?: string | null; join?: string | null; hidden?: boolean | null; } interface ChartLineGroupDecorations { groupIndex: number; dropLines?: ChartDecorationLineStyle | null; hiLowLines?: ChartDecorationLineStyle | null; upDownBars?: ChartStockUpDownBarStyle | null; } interface ChartAreaGroupDecorations { groupIndex: number; dropLines?: ChartDecorationLineStyle | null; } interface ChartBarGroupDecorations { groupIndex: number; seriesLines?: ChartDecorationLineStyle[] | null; } interface ChartOfPie { type: 'pie' | 'bar'; splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val'; splitTypeAuthored?: boolean | null; splitPos?: number | null; splitPosAuthored?: boolean | null; customSplitIndices?: number[] | null; secondPieSizePercent: number; gapWidthPercent: number; seriesLines: boolean; } interface ChartThreeDSurface { style?: ChartExElementStyle | null; fillColor?: string | null; fillHidden?: boolean | null; lineColor?: string | null; lineWidthEmu?: number | null; lineDash?: string | null; lineHidden?: boolean | null; thicknessPercent?: number | null; pictureOptions?: ChartThreeDPictureOptions | null; } interface ChartThreeDPictureOptions { applyToFront?: boolean | null; applyToSides?: boolean | null; applyToEnd?: boolean | null; pictureFormat?: 'stretch' | 'stack' | 'stackScale' | string | null; pictureFormatAuthored?: boolean | null; pictureStackUnit?: number | null; pictureStackUnitAuthored?: boolean | null; } interface ChartThreeD { view3DPresent?: boolean | null; rotationX?: number | null; rotationXAuthored?: boolean | null; rotationY?: number | null; rotationYAuthored?: boolean | null; heightPercent?: number | null; heightPercentAuthored?: boolean | null; depthPercent?: number | null; depthPercentAuthored?: boolean | null; perspective?: number | null; perspectiveAuthored?: boolean | null; rightAngleAxes?: boolean | null; rightAngleAxesAuthored?: boolean | null; gapDepthPercent?: number | null; gapDepthPercentAuthored?: boolean | null; shape?: string | null; barGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null; seriesAxis?: ChartThreeDSeriesAxis | null; floor?: ChartThreeDSurface | null; sideWall?: ChartThreeDSurface | null; backWall?: ChartThreeDSurface | null; } interface ChartThreeDSeriesAxis { title?: string | null; hidden: boolean; orientation?: 'minMax' | 'maxMin' | string | null; tickLabelPos?: string | null; tickLabelSkip?: number | null; tickMarkSkip?: number | null; majorTickMark: string; minorTickMark?: string | null; fontColor?: string | null; fontSizeHpt?: number | null; fontBold?: boolean | null; fontItalic?: boolean | null; fontFace?: string | null; lineColor?: string | null; lineWidthEmu?: number | null; lineDash?: string | null; linePaintAuthored?: boolean | null; lineHidden: boolean; titleFontSizeHpt?: number | null; titleFontBold?: boolean | null; titleFontItalic?: boolean | null; titleFontColor?: string | null; titleFontFace?: string | null; titleRotation?: number | null; titleVerticalMode?: ChartModel['catAxisTitleVerticalMode']; titleManualLayout?: ChartManualLayout | null; } interface ChartTextRun { text: string; fontSizeHpt?: number | null; bold?: boolean | null; italic?: boolean | null; color?: string | null; colorPaintAuthored?: boolean | null; colorHidden?: boolean | null; fontFace?: string | null; language?: string | null; baseline?: number | null; paragraphAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string | null; } interface ChartTextParagraph { runs: ChartTextRun[]; align?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string | null; } interface ChartTextBox { x: number; y: number; w: number; h: number; paragraphs: ChartTextParagraph[]; verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null; wrap?: 'none' | 'square' | string | null; lIns?: number; tIns?: number; rIns?: number; bIns?: number; } interface ChartexBoxSeries { name: string; chartexFormatIdx?: number | null; color?: string | null; lineColor?: string | null; lineWidthEmu?: number | null; chartexStyle?: ChartExElementStyle | null; valuesByCategory: number[][]; meanMarker: boolean; meanLine: boolean; showOutliers: boolean; showNonoutliers: boolean; quartileMethod: string; } interface ChartexBoxWhisker { oneBoxPerSeries?: boolean; categories: string[]; series: ChartexBoxSeries[]; } interface ChartexSunburstRow { path: string[]; size: number; } interface ChartexSunburst { rows: ChartexSunburstRow[]; } interface ChartexTreemap { rows: ChartexSunburstRow[]; parentLabelLayout?: string | null; } interface ChartexRegionMapRow { label: string; entityId?: string | null; value?: number | null; } interface ChartexGeography { projectionType?: 'mercator' | 'miller' | 'robinson' | 'albers' | string | null; viewedRegionType?: string | null; cultureLanguage?: string | null; cultureRegion?: string | null; attribution?: string | null; cacheProvider?: string | null; cachePresent: boolean; } interface ChartexValueColorStop { kind: 'extremeValue' | 'number' | 'percent' | string; value?: number | null; } interface ChartexRegionMapColors { stopCount?: 2 | 3 | null; minColor?: string | null; midColor?: string | null; maxColor?: string | null; minPosition?: ChartexValueColorStop | null; midPosition?: ChartexValueColorStop | null; maxPosition?: ChartexValueColorStop | null; } interface ChartexRegionMap { rows: ChartexRegionMapRow[]; regionLabelLayout?: 'none' | 'bestFitOnly' | 'showAll' | null; geography?: ChartexGeography | null; colors?: ChartexRegionMapColors | null; } interface ChartexHistogramBinning { binSize?: number | null; binCount?: number | null; intervalClosed?: 'l' | 'r' | null; underflow?: number | null; overflow?: number | null; } interface SecondaryValueAxis { min: number | null; max: number | null; title: string | null; hidden: boolean; formatCode?: string | null; displayUnits?: ChartDisplayUnits | null; fontColor?: string | null; fontSizeHpt?: number | null; fontItalic?: boolean | null; fontBold?: boolean | null; fontFace?: string | null; lineColor?: string | null; lineWidthEmu?: number | null; lineDash?: string | null; lineHidden: boolean; majorTickMark: string; minorTickMark?: string | null; minorGridlines?: boolean; minorGridlineColor?: string | null; minorGridlineWidthEmu?: number | null; minorGridlineDash?: string | null; majorGridlines?: boolean; majorGridlineColor?: string | null; majorGridlineWidthEmu?: number | null; majorGridlineDash?: string | null; majorUnit?: number | null; minorUnit?: number | null; logBase?: number | null; orientation?: 'minMax' | 'maxMin' | string | null; tickLabelPos?: string | null; labelAlignment?: 'l' | 'ctr' | 'r' | null; labelOffsetPercent?: number | null; tickLabelSkip?: number | null; tickMarkSkip?: number | null; crosses?: string | null; crossesAt?: number | null; titleFontSizeHpt?: number | null; titleFontBold?: boolean | null; titleFontItalic?: boolean | null; titleFontColor?: string | null; titleFontFace?: string | null; titleRotation?: number | null; titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null; titleManualLayout?: ChartManualLayout | null; } interface ChartDisplayUnits { divisor: number; builtInUnit?: string | null; label?: ChartDisplayUnitsLabel | null; } interface ChartDisplayUnitsLabel { text?: string | null; manualLayout?: ChartManualLayout | null; fontSizeHpt?: number | null; fontBold?: boolean | null; fontItalic?: boolean | null; fontColor?: string | null; fontFace?: string | null; rotation?: number | null; boxStyle?: ChartLabelBox | null; } interface ChartManualLayout { xMode?: string; yMode?: string; wMode?: string; hMode?: string; layoutTarget?: string; x: number; y: number; w?: number; h?: number; } interface LegendManualLayout { xMode?: string; yMode?: string; wMode?: string; hMode?: string; x: number; y: number; w?: number; h?: number; } interface ChartLegendEntryOverride { idx: number; deleted?: boolean | null; fontFace?: string | null; fontColor?: string | null; fontSizeHpt?: number | null; fontBold?: boolean | null; } interface ChartRect { x: number; y: number; w: number; h: number; } //#endregion //#region dist/.types-work/chart-ex-contract-Ba0xG5gE.d.ts interface ChartExRenderer { render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean; } //#endregion //#region dist/.types-work/mathjax-DwKoKmdb.d.ts interface MathSvg { svg: string; widthEm: number; ascentEm: number; descentEm: number; } interface MathRenderer { loadMathJax(): Promise; mathMLToSvg(mathml: string): Promise; } //#endregion //#region dist/.types-work/three-d-contract-D5bEzjMw.d.ts interface ChartThreeDRenderer { render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean; } //#endregion //#region dist/.types-work/region-map-contract-BFIR10oz.d.ts interface ChartRegionMapRenderer { render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean; } //#endregion //#region dist/.types-work/hyperlink-CZoV-4B8.d.ts type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml'; type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker'; declare class OoxmlError extends Error { readonly code: OoxmlErrorCode; constructor(code: OoxmlErrorCode, message: string); } type OoxmlFormat = 'docx' | 'xlsx' | 'pptx'; interface OoxmlResourceUsageSnapshot { readonly archiveEntryCount: number; readonly declaredInflatedBytes: number; readonly largestInflatedEntryBytes?: number; readonly distinctInflatedBytes: number; readonly operationInflatedBytes: number; } type ExtensibleLiteral = Known | (string & Record); type OoxmlResourceName = ExtensibleLiteral<'archive' | 'archive-entry' | 'xml-event' | 'xml-context' | 'xml-tree' | 'worksheet-row' | 'worksheet-shell'>; type OoxmlResourceMetric = ExtensibleLiteral<'declared-inflated-bytes' | 'actual-inflated-bytes' | 'entry-count' | 'central-directory-bytes' | 'distinct-inflated-bytes' | 'bytes' | 'depth' | 'projected-bytes'>; interface OoxmlResourceViolation { readonly format: OoxmlFormat; readonly operation: string; readonly resource: OoxmlResourceName; readonly metric: OoxmlResourceMetric; readonly part?: string; readonly limit: number; readonly observed: number; readonly configurable: boolean; readonly usage: OoxmlResourceUsageSnapshot; } interface OoxmlResourceLimitErrorDetails { readonly stage: OoxmlErrorStage; readonly violation: OoxmlResourceViolation; } declare class OoxmlResourceLimitError extends Error { readonly code: 'ooxml-resource-limit'; readonly details: OoxmlResourceLimitErrorDetails; constructor(message: string, details: OoxmlResourceLimitErrorDetails); } interface OoxmlResourcePolicySnapshot { readonly maxArchiveEntryBytes: number | null; readonly maxTotalInflatedBytes: number | null; readonly maxArchiveEntries: number | null; } interface OoxmlResourceMetricsCheckpoint { readonly name: string; readonly elapsedMs: number; readonly usage?: OoxmlResourceUsageSnapshot; } interface OoxmlResourceMetrics { readonly schemaVersion: 1; readonly scope: 'load' | 'session'; readonly format: OoxmlFormat; readonly mode: 'main' | 'worker' | 'node'; readonly status: 'ok' | 'error'; readonly sourceBytes?: number; readonly elapsedMs: number; readonly policy: Readonly; readonly usage?: OoxmlResourceUsageSnapshot; readonly checkpoints: readonly OoxmlResourceMetricsCheckpoint[]; readonly outcome?: Readonly>; readonly error?: Readonly<{ readonly code?: string; readonly stage?: string; readonly resource?: string; readonly metric?: string; }>; } type OoxmlResourceLimit = number | null; interface OoxmlResourceLimits { maxArchiveEntryBytes?: OoxmlResourceLimit; maxTotalInflatedBytes?: OoxmlResourceLimit; maxArchiveEntries?: OoxmlResourceLimit; } interface LoadOptions$3 { useGoogleFonts?: boolean; password?: string; wasmUrl?: string | URL; maxZipEntryBytes?: number; resourceLimits?: OoxmlResourceLimits; debug?: boolean; onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void; workerTimeoutMs?: number; math?: MathRenderer; threeD?: ChartThreeDRenderer; regionMap?: ChartRegionMapRenderer; chartEx?: ChartExRenderer; } type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes'; declare class OoxmlDecodedImageLimitError extends RangeError { readonly metric: OoxmlDecodedImageLimitMetric; readonly limit: number; readonly observed: number; readonly code: 'ooxml-decoded-image-limit'; constructor(metric: OoxmlDecodedImageLimitMetric, limit: number, observed: number); } declare function isOoxmlDecodedImageLimitError(error: unknown): error is OoxmlDecodedImageLimitError; type HyperlinkTarget = { kind: 'external'; url: string; } | { kind: 'internal'; ref: string; slideIndex?: number; }; declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick | undefined): boolean; //#endregion //#region dist/.types-work/find-highlight-DdGGQ_H7.d.ts interface TextSelectionContextOptions { readonly maxTextCharacters?: number; readonly maxRunLocators?: number; } interface ViewerContextMenuEvent { readonly originalEvent: MouseEvent; getContext(): Promise; } interface ViewerCommentsOptions { readonly includeResolved?: boolean; } type ViewerCommentConnectorRoute = 'bezier' | 'orthogonal'; type ViewerCommentConnectorStroke = 'solid' | 'dashed'; interface ViewerCommentConnectorOptions { readonly route?: ViewerCommentConnectorRoute; readonly stroke?: ViewerCommentConnectorStroke; readonly color?: string; readonly activeColor?: string; } interface ViewerCommentMessageContext { readonly id?: string; readonly author?: string; readonly date?: string; readonly text: string; readonly status?: 'active' | 'resolved' | 'closed'; } interface ViewerCommentThreadContext { readonly root: ViewerCommentMessageContext; readonly replies: readonly ViewerCommentMessageContext[]; } interface AutoResizeOptions { pauseWhenHidden?: boolean; } declare function autoResize(render: (width: number, height: number) => void | Promise, element: Element, opts?: AutoResizeOptions): () => void; interface ZoomableViewer { getScale(): number; setScale(scale: number): void | Promise; zoomIn(): void | Promise; zoomOut(): void | Promise; fitWidth(): void | Promise; fitPage(): void | Promise; } interface MatchRunSlice { runIndex: number; start: number; end: number; } interface FindMatchesOptions { caseSensitive?: boolean; } interface FindMatch { matchIndex: number; text: string; location: Loc; } interface FindHighlightColors { match?: string; active?: string; } //#endregion //#region dist/.types-work/types-HfeSaZtq.d.ts interface DocxDocumentModel { section: SectionProps; body: BodyElement[]; headers: HeadersFooters; footers: HeadersFooters; majorFont?: string; minorFont?: string; fontFamilyClasses?: Record; fontFamilyPitches?: Record; embeddedFonts?: EmbeddedFontRef[]; revisions?: DocRevision[]; comments?: DocComment[]; footnotes?: DocNote[]; endnotes?: DocNote[]; settings?: DocSettings; parseError?: string; } interface EmbeddedFontRef { fontName: string; style: 'regular' | 'bold' | 'italic' | 'boldItalic'; partPath: string; fontKey: string; } interface DocSettings { kinsoku?: boolean; noLineBreaksBefore?: string; noLineBreaksAfter?: string; mathDefJc?: string; defaultTabStop?: number; characterSpacingControl?: string; useFeLayout?: boolean; balanceSingleByteDoubleByteWidth?: boolean; adjustLineHeightInTable?: boolean; } interface DocRevision { kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string; id?: string; author?: string; date?: string; text: string; } interface DocComment { id: string; author?: string; initials?: string; date?: string; text: string; parentId?: string; resolved?: boolean; paragraphs?: string[]; } interface DocxCommentMark { id: string; kind: 'rangeStart' | 'rangeEnd' | 'reference' | string; runIndex: number; } interface DocNote { id: string; content: BodyElement[]; } declare function noteText(note: DocNote): string; interface HeadersFooters { default: HeaderFooter | null; first: HeaderFooter | null; even: HeaderFooter | null; } interface HeaderFooter { body: BodyElement[]; } interface PageNumType { start?: number; fmt?: string; } interface PageBorders { offsetFrom: string; display: string; zOrder: string; top?: PageBorderEdge; bottom?: PageBorderEdge; left?: PageBorderEdge; right?: PageBorderEdge; } interface PageBorderEdge { style: string; color?: string; width: number; space: number; } interface LineNumbering { countBy: number; start: number; distance?: number; restart: string; } interface SectionGeom { pageWidth: number; pageHeight: number; marginTop: number; marginRight: number; marginBottom: number; marginLeft: number; headerDistance: number; footerDistance: number; } interface SectionProps { pageWidth: number; pageHeight: number; marginTop: number; marginRight: number; marginBottom: number; marginLeft: number; headerDistance: number; footerDistance: number; titlePage: boolean; evenAndOddHeaders: boolean; sectionStart?: string | null; textDirection?: string | null; docGridType?: string | null; docGridLinePitch?: number | null; docGridCharSpace?: number | null; columns?: ColumnsSpec | null; pageNumType?: PageNumType | null; pageBorders?: PageBorders | null; lineNumbering?: LineNumbering | null; vAlign?: string | null; } interface ColumnsSpec { count: number; spacePt: number; equalWidth: boolean; sep: boolean; cols: ColSpec[]; } interface ColSpec { widthPt: number; spacePt: number; } type BodyElement = ({ type: 'paragraph'; } & DocParagraph) | ({ type: 'table'; } & DocTable) | { type: 'pageBreak'; parity?: 'odd' | 'even'; sameParagraphAsPrevious?: boolean; } | { type: 'columnBreak'; } | { type: 'sectionBreak'; kind: 'continuous' | 'nextPage' | 'oddPage' | 'evenPage' | string; columns?: ColumnsSpec | null; headers?: HeadersFooters; footers?: HeadersFooters; titlePage?: boolean; geom?: SectionGeom; pageNumType?: PageNumType | null; textDirection?: string | null; }; interface DocParagraph { paragraphId?: string; alignment: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | 'both' | 'distribute' | 'lowKashida' | 'mediumKashida' | 'highKashida' | 'thaiDistribute' | string; indentLeft: number; indentRight: number; indentFirst: number; spaceBefore: number; spaceAfter: number; lineSpacing: LineSpacing | null; numbering: NumberingInfo | null; tabStops: TabStop[]; runs: DocRun[]; bookmarks?: string[]; commentMarks?: DocxCommentMark[]; shading?: string | null; pageBreakBefore?: boolean; contextualSpacing?: boolean; keepNext?: boolean; keepLines?: boolean; markVanish?: boolean; widowControl?: boolean; overflowPunct?: boolean; adjustRightInd?: boolean; borders?: ParagraphBorders | null; styleId?: string | null; defaultFontSize?: number; defaultFontFamily?: string | null; defaultFontFamilyEastAsia?: string | null; paragraphMarkColor?: string | null; bidi?: boolean; snapToGrid?: boolean; framePr?: FramePr; } interface FramePr { dropCap: 'none' | 'drop' | 'margin' | string; lines: number; wrap: 'around' | 'auto' | 'none' | 'notBeside' | 'through' | 'tight' | string; hAnchor: 'text' | 'margin' | 'page' | string; vAnchor: 'text' | 'margin' | 'page' | string; hRule: 'auto' | 'atLeast' | 'exact' | string; hSpace: number; vSpace: number; w?: number; h?: number; x?: number; y?: number; xAlign?: 'left' | 'center' | 'right' | 'inside' | 'outside' | string; yAlign?: 'inline' | 'top' | 'center' | 'bottom' | 'inside' | 'outside' | string; } interface ParagraphBorders { top: ParaBorderEdge | null; bottom: ParaBorderEdge | null; left: ParaBorderEdge | null; right: ParaBorderEdge | null; between: ParaBorderEdge | null; } interface ParaBorderEdge { style: string; color: string | null; width: number; space: number; } interface DocxRunBorder { style: string; color?: string | null; width: number; space: number; } interface TabStop { pos: number; alignment: 'left' | 'start' | 'center' | 'right' | 'end' | 'decimal' | 'bar' | 'clear' | 'num'; leader: 'none' | 'dot' | 'hyphen' | 'underscore' | 'heavy' | 'middleDot'; } interface LineSpacing { value: number; rule: 'auto' | 'exact' | 'atLeast'; explicit?: boolean; } interface NumberingInfo { numId: number; level: number; format: string; text: string; indentLeft: number; tab: number; suff: string; jc?: string; fontFamily?: string | null; fontFamilyEastAsia?: string | null; color?: string | null; colorAuto?: boolean; picBulletImagePath?: string; picBulletMimeType?: string; picBulletWidthPt?: number; picBulletHeightPt?: number; } type DocRunContent = ({ type: 'text'; } & DocxTextRun) | ({ type: 'anchorHost'; } & AnchorHostMetrics) | ({ type: 'image'; } & ImageRun) | ({ type: 'chart'; } & ChartRun) | { type: 'break'; breakType: 'line' | 'page' | 'column'; } | ({ type: 'field'; } & FieldRun) | ({ type: 'shape'; } & ShapeRun) | { type: 'math'; nodes: MathNode[]; display: boolean; fontSize: number; jc?: string; } | ({ type: 'ptab'; } & PTabRun); type DocRun = DocRunContent & { revision?: RunRevision; }; interface ChartRun { chart: ChartModel; widthPt: number; heightPt: number; anchor: boolean; anchorXPt?: number; anchorYPt?: number; anchorXFromMargin?: boolean; anchorYFromPara?: boolean; wrapMode?: string; distTop?: number; distBottom?: number; distLeft?: number; distRight?: number; wrapSide?: string; allowOverlap?: boolean; anchorXAlign?: string | null; anchorYAlign?: string | null; anchorXRelativeFrom?: string | null; anchorYRelativeFrom?: string | null; } interface PTabRun { alignment: 'left' | 'center' | 'right'; relativeTo: 'margin' | 'indent'; leader: 'none' | 'dot' | 'hyphen' | 'underscore' | 'middleDot'; fontSize: number; } type PathCmd$1 = { cmd: 'moveTo'; x: number; y: number; } | { cmd: 'lineTo'; x: number; y: number; } | { cmd: 'cubicBezTo'; x1: number; y1: number; x2: number; y2: number; x: number; y: number; } | { cmd: 'quadBezTo'; x1: number; y1: number; x: number; y: number; } | { cmd: 'arcTo'; wr: number; hr: number; stAng: number; swAng: number; } | { cmd: 'close'; }; interface AnchorHostMetrics { fontSize: number; fontFamily?: string | null; fontFamilyEastAsia?: string | null; bold?: boolean; italic?: boolean; } interface ShapeRun { inline?: boolean; widthPt: number; heightPt: number; anchorXPt: number; anchorYPt: number; anchorXFromMargin: boolean; anchorYFromPara: boolean; anchorXAlign?: string | null; anchorYAlign?: string | null; pctPosH?: number | null; pctPosV?: number | null; anchorXRelativeFrom?: string | null; anchorYRelativeFrom?: string | null; widthPct?: number | null; heightPct?: number | null; widthRelativeFrom?: string | null; heightRelativeFrom?: string | null; groupWidthPt?: number | null; groupHeightPt?: number | null; behindDoc?: boolean; zOrder: number; subpaths: PathCmd$1[][]; presetGeometry?: string | null; adjValues?: Array; fill: ShapeFill$1 | null; stroke: string | null; strokeWidth?: number; strokeFill?: ShapeStrokeFill | null; strokeDash?: string | null; strokeCustomDash?: Array<{ dash: number; space: number; }>; strokeCap?: 'butt' | 'round' | 'square' | null; strokeJoin?: 'round' | 'bevel' | 'miter' | null; strokeMiterLimit?: number | null; strokeAlignment?: 'ctr' | 'in' | null; strokeCompound?: string | null; headEnd?: LineEnd | null; tailEnd?: LineEnd | null; rotation?: number; flipH?: boolean; flipV?: boolean; wrapMode?: string | null; distTop?: number; distBottom?: number; distLeft?: number; distRight?: number; wrapSide?: string | null; textBlocks?: ShapeText$1[]; defaultTextColor?: string | null; textAnchor?: string | null; textAutofit?: string | null; textInsetL?: number; textInsetT?: number; textInsetR?: number; textInsetB?: number; textVert?: string | null; textPath?: TextPath | null; fillOpacity?: number | null; } interface TextPath { string: string; fontFamily?: string | null; bold?: boolean; italic?: boolean; } interface LineEnd { type: string; w: string; len: string; } interface ShapeTextRun$1 { text: string; fontSizePt: number; color?: string | null; fontFamily?: string | null; fontFamilyEastAsia?: string | null; bold?: boolean; italic?: boolean; ruby?: RubyAnnotation | null; } interface ShapeText$1 { text: string; fontSizePt: number; color?: string | null; paragraphMarkColor?: string | null; fontFamily?: string | null; bold?: boolean; italic?: boolean; runs?: ShapeTextRun$1[]; numbering?: NumberingInfo | null; alignment: string; spaceBefore?: number; spaceAfter?: number; lineSpacingVal?: number; lineSpacingRule?: string; indentLeft?: number; indentRight?: number; indentFirst?: number; tabStops?: TabStop[]; bidi?: boolean; contextualSpacing?: boolean; styleId?: string | null; imagePath?: string; mimeType?: string; svgImagePath?: string; imageWidthPt?: number; imageHeightPt?: number; } type ShapeFill$1 = { fillType: 'solid'; color: string; } | { fillType: 'gradient'; stops: GradientStop[]; angle: number; gradType: string; scaled?: boolean; path?: string; fillToRect?: FillRect; tileRect?: FillRect; flip?: string; rotWithShape?: boolean; } | { fillType: 'pattern'; fg: string; bg: string; preset: string; } | { fillType: 'image'; imagePath: string; mimeType: string; svgImagePath?: string; srcRect?: { l: number; t: number; r: number; b: number; }; fillRect?: FillRect; tile?: TileInfo; alpha?: number; duotone?: Duotone$1; }; type ShapeStrokeFill = { fillType: 'gradient'; stops: GradientStop[]; angle: number; gradType: string; scaled?: boolean; path?: string; fillToRect?: FillRect; tileRect?: FillRect; flip?: string; rotWithShape?: boolean; } | { fillType: 'pattern'; fg: string; bg: string; preset: string; }; interface GradientStop { position: number; color: string; } interface FieldRun { fieldType: string; instruction: string; fallbackText: string; bold: boolean; italic: boolean; underline: boolean; strikethrough: boolean; fontSize: number; color: string | null; fontFamily: string | null; background: string | null; vertAlign: 'super' | 'sub' | null; allCaps?: boolean; smallCaps?: boolean; doubleStrikethrough?: boolean; highlight?: string | null; emphasisMark?: EmphasisMark; } interface DocxTextRun { text: string; bold: boolean; italic: boolean; underline: boolean; underlineStyle?: string; underlineColor?: string; strikethrough: boolean; fontSize: number; color: string | null; fontFamily: string | null; fontFamilyEastAsia?: string | null; isLink: boolean; background: string | null; colorAuto?: boolean | null; border?: DocxRunBorder | null; vertAlign: 'super' | 'sub' | null; hyperlink: string | null; hyperlinkAnchor?: string | null; allCaps?: boolean; smallCaps?: boolean; doubleStrikethrough?: boolean; highlight?: string | null; emphasisMark?: EmphasisMark; ruby?: RubyAnnotation; revision?: RunRevision; rtl?: boolean; cs?: boolean; fontFamilyCs?: string; fontSizeCs?: number; boldCs?: boolean; italicCs?: boolean; langBidi?: string; snapToGrid?: boolean; charSpacing?: number; fitTextVal?: number; fitTextId?: string | number; charScale?: number; position?: number; kerning?: number; eastAsianVert?: boolean; eastAsianVertCompress?: boolean; eastAsianCombine?: boolean; eastAsianCombineBrackets?: string; noteRef?: NoteRef; } interface NoteRef { kind: 'footnote' | 'endnote' | string; id: string; } interface RunRevision { kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string; id?: string; author?: string; date?: string; } interface RubyAnnotation { text: string; fontSizePt: number; hpsRaisePt?: number; } type EmphasisMark = 'dot' | 'comma' | 'circle' | 'underDot'; interface ImageRun { imagePath: string; mimeType: string; svgImagePath?: string; srcRect?: { l: number; t: number; r: number; b: number; } | null; widthPt: number; heightPt: number; rotation?: number; flipH?: boolean; flipV?: boolean; anchor?: boolean; anchorXPt?: number; anchorYPt?: number; anchorXFromMargin?: boolean; anchorYFromPara?: boolean; colorReplaceFrom?: string; duotone?: Duotone$1; alpha?: number; wrapMode?: string; distTop?: number; distBottom?: number; distLeft?: number; distRight?: number; wrapSide?: string; allowOverlap?: boolean; anchorXAlign?: string | null; anchorYAlign?: string | null; anchorXRelativeFrom?: string | null; anchorYRelativeFrom?: string | null; } interface TblpPr { leftFromText: number; rightFromText: number; topFromText: number; bottomFromText: number; horzAnchor: 'text' | 'margin' | 'page' | string; horzSpecified: boolean; vertAnchor: 'text' | 'margin' | 'page' | string; tblpX: number; tblpY: number; tblpXSpec?: 'left' | 'center' | 'right' | 'inside' | 'outside' | string; tblpYSpec?: 'inline' | 'top' | 'center' | 'bottom' | 'inside' | 'outside' | string; } interface DocTable { colWidths: number[]; rows: DocTableRow[]; borders: TableBorders; cellMarginTop: number; cellMarginBottom: number; cellMarginLeft: number; cellMarginRight: number; jc: string; tblInd?: number; layout?: string; widthPt?: number; widthPct?: number; bidiVisual?: boolean; tblpPr?: TblpPr; overlap?: string; } interface TableBorders { top: BorderSpec | null; bottom: BorderSpec | null; left: BorderSpec | null; right: BorderSpec | null; insideH: BorderSpec | null; insideV: BorderSpec | null; } interface BorderSpec { width: number; color: string | null; style: string; } interface DocTableRow { cells: DocTableCell[]; gridBefore?: number; gridAfter?: number; rowHeight: number | null; rowHeightRule: 'auto' | 'atLeast' | 'exact' | string; isHeader: boolean; cantSplit?: boolean; } type CellElement = ({ type: 'paragraph'; } & DocParagraph) | ({ type: 'table'; } & DocTable); interface DocTableCell { content: CellElement[]; colSpan: number; vMerge: boolean | null; borders: CellBorders; background: string | null; vAlign: 'top' | 'center' | 'bottom'; widthPt: number | null; widthPct?: number; marginTop?: number | null; marginBottom?: number | null; marginLeft?: number | null; marginRight?: number | null; } interface CellBorders { top: BorderSpec | null; bottom: BorderSpec | null; left: BorderSpec | null; right: BorderSpec | null; insideH: BorderSpec | null; insideV: BorderSpec | null; } interface DocxStorySource { story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox'; storyInstance: string; path: readonly number[]; } interface DocxTextRunInfo { source?: Readonly; paragraphId?: string; sourceRunIndex?: number; direction?: 'ltr' | 'rtl'; text: string; x: number; y: number; w: number; h: number; highlightBounds?: Readonly<{ x: number; y: number; width: number; height: number; }>; fontSize: number; font: string; letterSpacingPx?: number; transform?: string; hyperlink?: HyperlinkTarget; eastAsianVert?: boolean; } interface RenderPageOptions { width?: number; dpr?: number; defaultTextColor?: string; onTextRun?: (run: DocxTextRunInfo) => void; currentDate?: Date | number; } //#endregion //#region dist/.types-work/docx-CDchTe6F.d.ts interface CommentAnchorRange { readonly commentId: string; readonly source: Readonly; readonly startRunIndex: number; readonly endRunIndex: number; readonly reference: CommentAnchorPoint; readonly geometryFallback?: CommentAnchorGeometryFallback; } interface CommentAnchorPoint { readonly source: Readonly; readonly runIndex: number; readonly affinity: 'following' | 'preceding'; } interface CommentAnchorGeometryFallback { readonly source: Readonly; readonly sourceRunIndex: number; } type DocxCommentAnchorKind = 'range' | 'point' | 'fallback'; interface DocxCommentHighlightRect { readonly x: number; readonly y: number; readonly width: number; readonly height: number; readonly transform?: string; } interface ResolvedDocxCommentAnchor { readonly anchor: Readonly; readonly kind: DocxCommentAnchorKind; readonly rects: readonly Readonly[]; } interface ResolvedDocxCommentThread { readonly root: Readonly; readonly replies: readonly Readonly[]; readonly anchors: readonly Readonly[]; } interface ResolveDocxCommentThreadsOptions { readonly includeResolved?: boolean; } declare function resolveCommentAnchorRuns(anchor: Readonly, runs: readonly Readonly[]): readonly Readonly[]; declare function resolveDocxCommentThreads(comments: readonly Readonly[], anchors: readonly Readonly[], runs: readonly Readonly[], options?: ResolveDocxCommentThreadsOptions): readonly Readonly[]; type DocxSelectionContextOptions = TextSelectionContextOptions; interface DocxSelectionSourceLocator { readonly story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox'; readonly storyInstance: string; readonly path: readonly number[]; } interface DocxSelectionRunLocator { readonly pageIndex: number; readonly runIndex: number; readonly paragraphId?: string; readonly source?: DocxSelectionSourceLocator; } interface DocxTextSelectionContext { readonly format: 'docx'; readonly kind: 'text'; readonly text: string; readonly pageIndexes: readonly number[]; readonly paragraphIds: readonly string[]; readonly runs: readonly DocxSelectionRunLocator[]; readonly truncated: boolean; readonly truncationReasons: readonly ('text' | 'runs')[]; readonly textCharacters: number; readonly maxTextCharacters: number; readonly maxRunLocators: number; } interface DocxPagePoint { readonly xPt: number; readonly yPt: number; } interface DocxElementContext { readonly format: 'docx'; readonly kind: 'element'; readonly pageIndex: number; readonly elementIndex: number; readonly elementType: 'chart' | 'image' | 'shape'; readonly point: DocxPagePoint; readonly bounds: Readonly; readonly source: DocxSelectionSourceLocator; readonly text?: string; readonly mimeType?: string; readonly seriesCount?: number; readonly truncated: boolean; readonly truncationReasons: readonly ('text')[]; readonly textCharacters: number; readonly maxTextCharacters: number; } interface DocxCommentSelectionContext { readonly format: 'docx'; readonly kind: 'comment'; readonly pageIndex: number; readonly commentId: string; readonly source?: DocxSelectionSourceLocator; readonly thread: ViewerCommentThreadContext; readonly truncated: boolean; readonly truncationReasons: readonly ('text')[]; readonly textCharacters: number; readonly maxTextCharacters: number; } type DocxSelectionContext = DocxTextSelectionContext | DocxElementContext | DocxCommentSelectionContext; declare function readDocxTextSelectionContext(root: HTMLElement, selection: Selection | null, options?: DocxSelectionContextOptions): DocxTextSelectionContext | null; interface DocxElementContextOptions { readonly maxTextCharacters?: number; readonly currentDate?: Date | number; } interface RevisionAnchorRange { readonly revisionIndex: number; readonly source: Readonly; readonly startRunIndex: number; readonly endRunIndex: number; readonly geometryFallback?: RevisionAnchorGeometryFallback; } interface RevisionAnchorGeometryFallback { readonly source: Readonly; readonly sourceRunIndex: number; } declare function resolveRevisionAnchorRuns(anchor: Readonly, runs: readonly Readonly[]): readonly Readonly[]; interface LoadOptions$2 extends LoadOptions$3 { math?: MathRenderer; mode?: 'main' | 'worker'; } type CollectPageRunsOptions = Pick; interface DocxPageCommentThreadsOptions extends CollectPageRunsOptions, ResolveDocxCommentThreadsOptions {} type RenderPageToBitmapOptions = Omit & { onTextRun?: (run: DocxTextRunInfo) => void; }; declare class DocxDocument { private _metrics; private _document; private _source; private _meta; private _review; private _bookmarkPages; private _commentAnchorRanges; private _revisionAnchorRanges; private _reviewTextRunSourceIndex; private _mode; private _threeD; private _regionMap; private _chartEx; private _worker; private _bridge; private readonly _rawParts; private _embeddedFontFaces; private _googleFontFaces; private _localMetricFontFaces; private readonly _fetchImage; private constructor(); static load(source: string | ArrayBuffer, opts?: LoadOptions$2): Promise; private _parse; destroy(): void; getImage(imagePath: string, mimeType: string): Promise; getFontBytes(partPath: string): Promise; private _resourceUsage; getResourceMetrics(): Promise; toMarkdown(): Promise; get pageCount(): number; get mode(): 'main' | 'worker'; get document(): DocxDocumentModel; get comments(): readonly Readonly[]; get revisions(): readonly Readonly[]; commentAnchorRanges(): readonly CommentAnchorRange[]; revisionAnchorRanges(): readonly RevisionAnchorRange[]; private _reviewSnapshot; get footnotes(): DocNote[]; get endnotes(): DocNote[]; private _getLayout; private _getBookmarkPages; getBookmarkPage(bookmarkName: string): number | undefined; pageSize(pageIndex: number): { widthPt: number; heightPt: number; }; renderPage(target: HTMLCanvasElement | OffscreenCanvas, pageIndex: number, opts?: RenderPageOptions): Promise; renderPageToBitmap(pageIndex: number, opts?: RenderPageToBitmapOptions): Promise; collectPageRuns(pageIndex: number, opts?: CollectPageRunsOptions): Promise; getCommentThreads(pageIndex: number, options?: DocxPageCommentThreadsOptions): Promise[]>; getElementContextAt(pageIndex: number, point: DocxPagePoint, opts?: DocxElementContextOptions): Promise; } interface DocxMatchLocation { page: number; } interface DocxViewerOptions extends Omit, LoadOptions$2 { container?: HTMLElement; enableTextSelection?: boolean; enableElementSelection?: boolean; onSelectionContextChange?: (context: DocxSelectionContext | null) => void; onContextMenu?: (event: ViewerContextMenuEvent) => void; findHighlightColors?: FindHighlightColors; onPageChange?: (index: number, total: number) => void; zoomMin?: number; zoomMax?: number; onScaleChange?: (scale: number) => void; onHyperlinkClick?: (target: HyperlinkTarget) => void; enableHyperlinks?: boolean; onError?: (err: Error) => void; } declare class DocxViewer implements ZoomableViewer { private readonly _documentOwner; private get _doc(); private readonly _borrowed; private readonly _hostWindow; private _currentPage; private _scale; private _canvas; private _wrapper; private readonly _canvasMount; private _textLayer; private _highlightLayer; private _elementLayer; private _find; private _measureCtx; private _opts; private readonly _mode; private readonly _renderDispatcher; private readonly _errorRouter; private _destroyed; private _selectionChangeListener; private _selectionContextKey; private _elementContext; private _elementHitGeneration; private _elementClickListener; private _contextMenuListener; static fromDocument(canvas: HTMLCanvasElement, document: DocxDocument, opts?: Omit): Omit; constructor(canvas: HTMLCanvasElement, opts?: DocxViewerOptions); load(source: string | ArrayBuffer): Promise; get pageCount(): number; get currentPage(): number; get canvasElement(): HTMLCanvasElement; goToPage(index: number): Promise; nextPage(): Promise; prevPage(): Promise; private _naturalWidthPx; private _renderWidth; getScale(): number; private _zoomMin; private _zoomMax; setScale(scale: number): Promise; zoomIn(): Promise; zoomOut(): Promise; fitWidth(): Promise; fitPage(): Promise; private _fit; private _fitContainer; findText(query: string, opts?: FindMatchesOptions): Promise[]>; findNext(): Promise | null>; findPrev(): Promise | null>; clearFind(): void; private _activateMatch; private _redrawHighlights; getResourceMetrics(): Promise; getSelectionContext(options?: DocxSelectionContextOptions): DocxSelectionContext | null; private _emitSelectionContextChange; private _setElementContext; private _invalidateElementContext; private _redrawElementOutline; private _onElementClick; private _onContextMenu; private _resolveContextAt; destroy(): void; private _render; private _reportRenderError; private _renderPage; private _buildHighlightLayer; private _canvasCssPx; private _measureForFont; private _collectPageRuns; private _buildTextLayer; private _hyperlinkHandler; } interface DocxCommentsOptions extends ViewerCommentsOptions { readonly cards?: boolean; readonly side?: 'auto' | 'left' | 'right'; readonly markers?: boolean; readonly connectors?: ViewerCommentConnectorOptions; } interface DocxScrollViewerOptions extends Omit, LoadOptions$2 { width?: number; gap?: number; paddingTop?: number; paddingBottom?: number; paddingLeft?: number; paddingRight?: number; overscan?: number; enableTextSelection?: boolean; comments?: boolean | DocxCommentsOptions; enableElementSelection?: boolean; onSelectionContextChange?: (context: DocxSelectionContext | null) => void; onContextMenu?: (event: ViewerContextMenuEvent) => void; findHighlightColors?: FindHighlightColors; zoomMin?: number; zoomMax?: number; enableZoom?: boolean; refitOnResize?: boolean; background?: string; pageShadow?: string | false; onVisiblePageChange?: (topIndex: number, total: number) => void; onScaleChange?: (scale: number) => void; onHyperlinkClick?: (target: HyperlinkTarget) => void; enableHyperlinks?: boolean; onError?: (err: Error) => void; } declare class DocxScrollViewer implements ZoomableViewer { private readonly _documentOwner; private get _doc(); private readonly _borrowed; private readonly _opts; private readonly _container; private readonly _wrapper; private readonly _scrollHost; private readonly _spacer; private _mode; private _scale; private _scaleEstablished; private _pendingScale; private readonly _slots; private readonly _free; private _heights; private _scrollGeometry; private _lastRange; private _lastTopIndex; private _scrollListener; private _selectionChangeListener; private _selectionContextKey; private _elementClickListener; private _contextMenuListener; private _commentOutsidePointerListener; private _elementContext; private _activeCommentId; private _activeCommentPage; private _commentUi; private readonly _commentPageById; private readonly _commentRunsByPage; private readonly _commentIndexedPages; private _commentScanFrontier; private _commentNavigationGeneration; private _commentAnchorRangesForMargin; private _commentAnchorIds; private _commentGeometryScheduled; private _commentGeometryFrame; private readonly _pendingCommentGeometry; private _elementHitGeneration; private _destroyed; private _measureCtx; private readonly _bitmapInFlight; private _renderEpoch; private _settleTimer; private _wheelListener; private _pendingZoomAnchor; private _resizeObserver; private _prevBase; private _lastFitWidth; private readonly _pageShadow; private readonly _find; private _findActive; static fromDocument(container: HTMLElement, document: DocxDocument, opts?: Omit): Omit; constructor(container: HTMLElement, opts?: DocxScrollViewerOptions); load(source: string | ArrayBuffer): Promise; get pageCount(): number; private _pageWidthPx; private _pageHeightPx; private _fitWidthPx; private _hasCommentMargin; private _hasDisplayableComments; private _commentMarginExtent; private _commentZoom; private _commentsEnabled; private _commentsOptions; private _commentSide; private _syncCommentMarginGeometry; private _baseScale; relayout(): void; private _relayout; private _recomputeHeights; private _gap; private _overscan; private _pad; private _padH; private _pageIndexAtOffset; private _range; private _syncSpacer; private _syncSpacerWidth; private _onScroll; private _mountVisible; private _applyPageShadow; private _acquireSlot; private _recycleSlot; private _positionSlot; private _dpr; private _renderSlot; private _hyperlinkHandler; private _measureForFont; private _canvasCssPx; private _reportRenderError; private _renderSlotBitmap; setScale(scale: number): void; getScale(): number; zoomIn(): void; zoomOut(): void; fitWidth(): void; fitPage(): void; private _fit; private _previewVisible; private _previewSlot; private _scheduleSettle; private _settleRender; private _settleSlot; scrollToPage(index: number, opts?: { behavior?: 'auto' | 'smooth'; }): void; private _scrollToPageTarget; private _resetCommentNavigation; private _advanceCommentScanFrontier; private _indexCommentPages; private _commentRunsForPage; goToComment(commentId: string, opts?: { pageIndex?: number; behavior?: 'auto' | 'smooth'; }): Promise; findText(query: string, opts?: FindMatchesOptions): Promise[]>; findNext(): Promise | null>; findPrev(): Promise | null>; clearFind(): void; private _activateMatch; private _collectPageRuns; private _redrawHighlights; private _refreshFindRuns; private _commitCommentRuns; private _redrawSlotComments; private _redrawSlotCommentConnectors; private _scheduleCommentGeometry; private _redrawSlotHighlights; private _onResize; get topVisiblePage(): number; getResourceMetrics(): Promise; getSelectionContext(options?: DocxSelectionContextOptions): DocxSelectionContext | null; private _emitSelectionContextChange; private _setElementContext; private _invalidateElementContext; private _redrawElementOutlines; private _redrawElementOutlineForSlot; private _onElementClick; private _onContextMenu; private _resolveContextAt; destroy(): void; } declare function buildDocxTextLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], cssWidth: number, cssHeight: number, onHyperlinkClick?: (target: HyperlinkTarget) => void, measureForFont?: (font: string) => (s: string) => number, pageIndex?: number): void; interface DocxHighlightMatch { slices: MatchRunSlice[]; active: boolean; } type DocxHighlightColors = FindHighlightColors; declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void; declare namespace docx_d_exports { export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartErrBars, ChartExElementStyle, ChartExRenderer, ChartLabelBox, ChartLegendEntryOverride, ChartLineDashSegment, ChartLineGroupDecorations, ChartManualLayout, ChartModel, ChartOfPie, ChartPlotGroup, ChartPlotGroupAxisSlot, ChartPlotGroupKind, ChartRect, ChartRegionMapRenderer, ChartRun, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartSurfaceBandFormat, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDPictureOptions, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, ColSpec, CollectPageRunsOptions, ColumnsSpec, CommentAnchorGeometryFallback, CommentAnchorPoint, CommentAnchorRange, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxCommentAnchorKind, DocxCommentHighlightRect, DocxCommentMark, DocxCommentSelectionContext, DocxCommentsOptions, DocxDocument, DocxDocumentModel, DocxElementContext, DocxElementContextOptions, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxPageCommentThreadsOptions, DocxPagePoint, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxSelectionContext, DocxSelectionContextOptions, DocxSelectionRunLocator, DocxSelectionSourceLocator, DocxStorySource, DocxTextRun, DocxTextRunInfo, DocxTextSelectionContext, DocxViewer, DocxViewerOptions, DrawingMLCustomDashSegment, Duotone$1 as Duotone, EmbeddedFontRef, FieldRun, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, FramePr, GradientFill, GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageFill, ImageRun, LegendManualLayout, LineEnd, LineNumbering, LineSpacing, LoadOptions$2 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, NoFill, NoteRef, NumberingInfo, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, PTabRun, PageBorderEdge, PageBorders, PageNumType, ParaBorderEdge, ParagraphBorders, PathCmd$1 as PathCmd, PatternFill, RenderPageOptions, RenderPageToBitmapOptions, ResolveDocxCommentThreadsOptions, ResolvedDocxCommentAnchor, ResolvedDocxCommentThread, RevisionAnchorGeometryFallback, RevisionAnchorRange, RubyAnnotation, RunRevision, SecondaryValueAxis, SectionGeom, SectionProps, ShapeFill$1 as ShapeFill, ShapeRun, ShapeStrokeFill, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, SolidFill, SrcRect, TabStop, TableBorders, TblpPr, TextPath, TextSelectionContextOptions, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext, resolveCommentAnchorRuns, resolveDocxCommentThreads, resolveRevisionAnchorRuns }; } //#endregion //#region dist/.types-work/types-PWBS8kGC.d.ts interface BlipBullet { type: 'blip'; imagePath: string; mimeType: string; sizePct: number | null; sizePts?: number; } type Bullet = Bullet$1 | BlipBullet; interface Paragraph extends Paragraph$1 { eaLnBrk: boolean; defTabSz?: number; } interface TextBody extends TextBody$1 { rtlCol?: boolean; textWarp?: { preset: string; adj?: number[]; }; paragraphs: Paragraph[]; } interface Presentation { slideWidth: number; slideHeight: number; slides: Slide[]; defaultTextColor: string | null; majorFont: string | null; minorFont: string | null; hlinkColor?: string; folHlinkColor?: string; } interface Slide { index: number; slideNumber: number; partName?: string; background: Fill | null; elements: SlideElement[]; elementSources?: SlideElementSource[]; notes?: string; comments?: PptxComment[]; hidden?: boolean; parseError?: string; } type SlideElementOrigin = 'master' | 'layout' | 'slide'; interface SlideElementSource { origin: SlideElementOrigin; } interface DimOptions { color: string; opacity: number; } type PptxCommentAnchor = Readonly<{ type: 'slide'; }> | Readonly<{ type: 'drawingElement'; elementId?: string; creationId?: string; }> | Readonly<{ type: 'textRange'; elementId?: string; start?: number; length?: number; }> | Readonly<{ type: 'unknown'; }>; interface PptxComment { authorId?: number; modernAuthorId?: string; id?: string; index?: number; author?: string; date?: string; x?: number; y?: number; anchors?: readonly Readonly[]; status?: 'active' | 'resolved' | 'closed'; text: string; replies?: readonly Readonly[]; } interface PptxCommentReply { id?: string; authorId?: string; author?: string; date?: string; status?: 'active' | 'resolved' | 'closed'; text: string; } type SlideElement = ShapeElement | PictureElement | TableElement | ChartElement | MediaElement; interface MediaElement { type: 'media'; id?: string; x: number; y: number; width: number; height: number; rotation: number; flipH: boolean; flipV: boolean; mediaKind: 'audio' | 'video'; posterPath: string; posterMimeType: string; mediaPath: string; mimeType: string; } interface ShapeElement { type: 'shape'; x: number; y: number; width: number; height: number; rotation: number; flipH: boolean; flipV: boolean; geometry: string; fill: Fill | null; stroke: Stroke | null; textBody: TextBody | null; defaultTextColor: string | null; custGeom: PathCmd$2[][] | null; adj: number | null; adj2: number | null; adj3: number | null; adj4: number | null; adj5: number | null; adj6: number | null; adj7: number | null; adj8: number | null; shadow: Shadow | null; innerShadow?: Shadow; glow?: Glow; softEdge?: SoftEdge; reflection?: Reflection; textRect?: TextRect; scene3d?: Scene3d; sp3d?: Sp3d; id?: string; name?: string; hyperlink?: string; hyperlinkAction?: string; } interface TextRect { x: number; y: number; width: number; height: number; } interface Rot3d { lat: number; lon: number; rev: number; } interface Camera3d { prst: string; fov?: number; zoom?: number; rot?: Rot3d; } interface LightRig { rig: string; dir: string; rot?: Rot3d; } interface Scene3d { camera: Camera3d; lightRig?: LightRig; } interface Bevel3d { w: number; h: number; prst: string; } interface Sp3d { z?: number; extrusionH?: number; contourW?: number; contourClr?: string; extrusionClr?: string; prstMaterial: string; bevelT?: Bevel3d; bevelB?: Bevel3d; } interface TableElement { type: 'table'; id?: string; x: number; y: number; width: number; height: number; rotation: number; flipH: boolean; flipV: boolean; cols: number[]; rows: TableRow[]; rtl?: boolean; } interface TableRow { height: number; cells: TableCell[]; } interface TableCell { textBody: TextBody | null; fill: Fill | null; textColor?: string; borderL: Stroke | null; borderR: Stroke | null; borderT: Stroke | null; borderB: Stroke | null; diagonalTL?: Stroke | null; diagonalTR?: Stroke | null; gridSpan: number; rowSpan: number; hMerge: boolean; vMerge: boolean; } interface ChartElement { type: 'chart'; id?: string; x: number; y: number; width: number; height: number; rotation: number; flipH: boolean; flipV: boolean; chart: ChartModel; } interface PictureElement { type: 'picture'; id?: string; x: number; y: number; width: number; height: number; rotation: number; flipH: boolean; flipV: boolean; imagePath: string; mimeType: string; svgImagePath?: string; intrinsicWidthPx?: number; intrinsicHeightPx?: number; stroke: Stroke | null; prstGeom?: string; prstAdjust?: number[]; srcRect?: { l: number; t: number; r: number; b: number; }; alpha?: number; duotone?: Duotone$1; custGeom?: PathCmd$2[][] | null; shadow?: Shadow; innerShadow?: Shadow; glow?: Glow; softEdge?: SoftEdge; reflection?: Reflection; scene3d?: Scene3d; sp3d?: Sp3d; } //#endregion //#region dist/.types-work/pptx-CZHOWYdz.d.ts interface PptxTextRunInfo { elementIndex?: number; origin?: SlideElementOrigin; shapeId?: string; text: string; inShapeX: number; inShapeY: number; w: number; h: number; fontSize: number; font: string; shapeX: number; shapeY: number; shapeW: number; shapeH: number; rotation: number; textBodyRotation?: number; hyperlink?: HyperlinkTarget; } type TextRunCallback = (run: PptxTextRunInfo) => void; type SlideRenderOptions = RenderOptions & { math?: MathRenderer; threeD?: ChartThreeDRenderer; regionMap?: ChartRegionMapRenderer; chartEx?: ChartExRenderer; dim?: DimOptions; }; declare function renderSlide(canvas: HTMLCanvasElement | OffscreenCanvas, slide: Slide, slideWidth: number, slideHeight: number, opts?: SlideRenderOptions, onTextRun?: TextRunCallback): Promise; interface PptxMatchLocation { slide: number; } interface PresentationHandle { play(mediaPath?: string): void; pause(mediaPath?: string): void; destroy(): void; } interface PptxSelectionRunLocator { readonly slideIndex: number; readonly runIndex: number; readonly shapeId?: string; readonly elementIndex?: number; readonly origin?: SlideElementOrigin; } interface PptxTextSelectionContext { readonly format: 'pptx'; readonly kind: 'text'; readonly text: string; readonly slideIndexes: readonly number[]; readonly shapeIds: readonly string[]; readonly runs: readonly PptxSelectionRunLocator[]; readonly truncated: boolean; readonly truncationReasons: readonly ('text' | 'runs')[]; readonly textCharacters: number; readonly maxTextCharacters: number; readonly maxRunLocators: number; } interface PptxCommentSelectionContext { readonly format: 'pptx'; readonly kind: 'comment'; readonly slideIndex: number; readonly commentIndex: number; readonly occurrenceId: string; readonly commentId?: string; readonly point?: Readonly<{ x: number; y: number; }>; readonly thread: ViewerCommentThreadContext; readonly truncated: boolean; readonly truncationReasons: readonly ('text')[]; readonly textCharacters: number; readonly maxTextCharacters: number; } declare function readPptxTextSelectionContext(root: HTMLElement, selection: Selection | null, options?: TextSelectionContextOptions): PptxTextSelectionContext | null; type PptxSelectionContextOptions = TextSelectionContextOptions; interface PptxSlidePoint { readonly x: number; readonly y: number; } interface PptxElementContextOptions { readonly tolerance?: number; readonly maxTextCharacters?: number; } interface PptxElementContext { readonly format: 'pptx'; readonly kind: 'element'; readonly slideIndex: number; readonly elementIndex: number; readonly origin: SlideElementOrigin | 'unknown'; readonly elementType: SlideElement['type']; readonly point: PptxSlidePoint; readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; rotation: number; flipH: boolean; flipV: boolean; }>; readonly shapeId?: string; readonly name?: string; readonly geometry?: string; readonly text?: string; readonly mimeType?: string; readonly mediaKind?: 'audio' | 'video'; readonly rowCount?: number; readonly columnCount?: number; readonly seriesCount?: number; readonly truncated: boolean; readonly truncationReasons: readonly ('text')[]; readonly textCharacters: number; readonly maxTextCharacters: number; } interface PptxElementBounds { readonly elementId: string; readonly elementIndex: number; readonly origin: SlideElementOrigin | 'unknown'; readonly elementType: SlideElement['type']; readonly bounds: PptxElementContext['bounds']; } type PptxSelectionContext = PptxTextSelectionContext | PptxCommentSelectionContext | PptxElementContext; type LoadOptions$1 = LoadOptions$3 & { mode?: 'main' | 'worker'; }; interface RenderSlideToBitmapOptions { width?: number; dpr?: number; dim?: DimOptions; onTextRun?: TextRunCallback; } interface RenderSlideOptions { width?: number; dpr?: number; onTextRun?: TextRunCallback; skipMediaControls?: boolean; dim?: DimOptions; } interface PresentSlideOptions extends Omit { onError?: (error: Error) => void; } declare class PptxPresentation { private _metrics; private readonly _worker; private readonly _bridge; private _mode; private _preflight; private _slides; private _slidePullClient; private _resourceFailure; private _slidePartIndex; private readonly _rawParts; private _googleFontFaces; private readonly _fetchImage; private readonly _fetchMedia; private _math; private _threeD; private _regionMap; private _chartEx; private constructor(); private _assertResourceHealthy; private _rethrowWithResourceFailure; static load(source: string | ArrayBuffer, opts?: LoadOptions$1): Promise; private _parse; get slideCount(): number; get slideWidth(): number; get slideHeight(): number; get mode(): 'main' | 'worker'; getNotes(slideIndex: number): string | null; getComments(slideIndex: number): readonly Readonly[]; isHidden(slideIndex: number): boolean; private _partNames; private _partIndex; getSlideIndexByPartName(partName: string): number | undefined; resolveInternalTarget(ref: string, currentIndex?: number): number | undefined; renderSlide(canvas: HTMLCanvasElement | OffscreenCanvas, slideIndex: number, opts?: RenderSlideOptions): Promise; renderSlideToBitmap(slideIndex: number, opts?: RenderSlideToBitmapOptions): Promise; collectSlideRuns(slideIndex: number, width?: number): Promise; getElementContextAt(slideIndex: number, point: PptxSlidePoint, options?: PptxElementContextOptions): Promise; getElementBoundsByIds(slideIndex: number, elementIds: readonly string[]): Promise; getMedia(mediaPath: string): Promise; private _findMimeTypeForPath; getImage(imagePath: string, mimeType: string): Promise; getResourceMetrics(): Promise; toMarkdown(): Promise; presentSlide(canvas: HTMLCanvasElement, slideIndex: number, opts?: PresentSlideOptions): Promise; destroy(): void; } type HiddenSlideMode = 'show' | 'skip' | 'dim'; interface PptxViewerOptions extends Pick, LoadOptions$1 { onSlideChange?: (index: number, total: number) => void; onError?: (err: Error) => void; zoomMin?: number; zoomMax?: number; onScaleChange?: (scale: number) => void; enableMediaPlayback?: boolean; enableTextSelection?: boolean; enableElementSelection?: boolean; elementHitTolerance?: number; onSelectionContextChange?: (context: PptxSelectionContext | null) => void; onContextMenu?: (event: ViewerContextMenuEvent) => void; findHighlightColors?: FindHighlightColors; hiddenSlideMode?: HiddenSlideMode; hiddenSlideDim?: Partial; onHyperlinkClick?: (target: HyperlinkTarget) => void; enableHyperlinks?: boolean; } declare class PptxViewer implements ZoomableViewer { private readonly canvas; private readonly wrapper; private readonly canvasMount; private _scale; private textLayer; private highlightLayer; private elementLayer; private _find; private _measureCtx; private readonly presentationOwner; private get engine(); private readonly borrowed; private readonly hostWindow; private readonly opts; private currentSlide; private _hiddenMode; private handle; private readonly _mode; private readonly renderDispatcher; private readonly errorRouter; private destroyed; private selectionChangeListener; private selectionContextKey; private elementClickListener; private contextMenuListener; private elementContext; private elementHitGeneration; private readonly elementHitTolerance; static fromPresentation(canvas: HTMLCanvasElement, presentation: PptxPresentation, opts?: Omit): Omit; constructor(canvas: HTMLCanvasElement, opts?: PptxViewerOptions); load(source: string | ArrayBuffer): Promise; goToSlide(index: number): Promise; nextSlide(): Promise; prevSlide(): Promise; private _step; private _initialSlide; private _dim; setHiddenSlideMode(mode: HiddenSlideMode): Promise; get hiddenSlideMode(): HiddenSlideMode; get visibleSlideCount(): number; get slideIndex(): number; get slideCount(): number; getNotes(slideIndex: number): string | null; get canvasElement(): HTMLCanvasElement; private _naturalWidthPx; private _targetWidth; getScale(): number; private _zoomMin; private _zoomMax; setScale(scale: number): Promise; zoomIn(): Promise; zoomOut(): Promise; fitWidth(): Promise; fitPage(): Promise; private _fit; private renderCurrentSlide; private _buildHighlightLayer; private _measureForFont; private _collectSlideRuns; findText(query: string, opts?: FindMatchesOptions): Promise[]>; findNext(): Promise | null>; findPrev(): Promise | null>; clearFind(): void; private _activateMatch; private _redrawHighlights; private _buildTextLayer; private _hyperlinkHandler; private _onHyperlinkClick; private _resolveInternalSlideIndex; private _reportRenderError; getResourceMetrics(): Promise; getSelectionContext(options?: PptxSelectionContextOptions): PptxSelectionContext | null; private _emitSelectionContextChange; private _setElementContext; private _invalidateElementSelection; private _redrawElementOutline; private _onElementClick; private _onContextMenu; private _resolveContextAt; destroy(): void; } interface PptxCommentsOptions extends ViewerCommentsOptions { readonly cards?: boolean; readonly side?: 'auto' | 'left' | 'right'; readonly markers?: boolean; readonly connectors?: ViewerCommentConnectorOptions; } interface PptxScrollViewerOptions extends Pick, LoadOptions$1 { width?: number; gap?: number; paddingTop?: number; paddingBottom?: number; paddingLeft?: number; paddingRight?: number; overscan?: number; enableTextSelection?: boolean; comments?: boolean | PptxCommentsOptions; enableElementSelection?: boolean; elementHitTolerance?: number; onSelectionContextChange?: (context: PptxSelectionContext | null) => void; onContextMenu?: (event: ViewerContextMenuEvent) => void; findHighlightColors?: FindHighlightColors; enableMediaPlayback?: boolean; mediaOverscan?: number; zoomMin?: number; zoomMax?: number; enableZoom?: boolean; refitOnResize?: boolean; background?: string; pageShadow?: string | false; onVisibleSlideChange?: (topIndex: number, total: number) => void; onScaleChange?: (scale: number) => void; onError?: (err: Error) => void; onHyperlinkClick?: (target: HyperlinkTarget) => void; enableHyperlinks?: boolean; } declare class PptxScrollViewer implements ZoomableViewer { private readonly _presentationOwner; private get _pres(); private readonly _borrowed; private readonly _opts; private readonly _container; private readonly _wrapper; private readonly _scrollHost; private readonly _spacer; private _mode; private _scale; private _scaleEstablished; private _pendingScale; private readonly _slots; private readonly _free; private _uniformSlideHeight; private _lastRange; private _lastTopIndex; private _scrollListener; private _selectionChangeListener; private _selectionContextKey; private _elementClickListener; private _contextMenuListener; private _commentOutsidePointerListener; private _elementContext; private _activeCommentId; private _activeCommentSlide; private _commentNavigationGeneration; private _commentUi; private _commentGeometryScheduled; private _commentGeometryFrame; private readonly _pendingCommentGeometry; private _hasComments; private _elementHitGeneration; private readonly _elementHitTolerance; private _destroyed; private readonly _slideInFlight; private _renderEpoch; private _settleTimer; private _wheelListener; private _pendingZoomAnchor; private _resizeObserver; private _prevBase; private _lastFitWidth; private readonly _pageShadow; private readonly _find; private _findActive; private _findMeasureCtx; static fromPresentation(container: HTMLElement, presentation: PptxPresentation, opts?: Omit): Omit; constructor(container: HTMLElement, opts?: PptxScrollViewerOptions); load(source: string | ArrayBuffer): Promise; get slideCount(): number; private _slideWidthPx; private _slideHeightPx; private _fitWidthPx; private _commentMarginExtent; private _hasCommentMargin; private _commentZoom; private _commentsEnabled; private _commentsOptions; private _commentSide; private _syncCommentMarginGeometry; private _presentationHasComments; private _baseScale; relayout(): void; private _relayout; private _recomputeHeights; private _gap; private _overscan; private _mediaOverscan; private _pad; private _padH; private _slideOffset; private _slideIndexAtOffset; private _rangeAt; private _range; private _mediaRange; private _rangeContains; private _syncSpacer; private _syncSpacerWidth; private _onScroll; private _mountVisible; private _applyPageShadow; private _acquireSlot; private _recycleSlot; private _positionSlot; private _dpr; private _renderSlot; private _renderInteractiveSlot; private _syncMediaPlayback; private _reportRenderError; private _renderSlotBitmap; setScale(scale: number): void; getScale(): number; zoomIn(): void; zoomOut(): void; fitWidth(): void; fitPage(): void; private _fit; private _previewVisible; private _previewSlot; private _scheduleSettle; private _settleRender; private _settleSlot; private _settleInteractiveSlot; scrollToSlide(index: number, opts?: { behavior?: 'auto' | 'smooth'; }): void; private _scrollToSlideCommentTarget; private _resolveSlideCommentElementBounds; goToComment(slideIndex: number, commentIndex: number, opts?: { behavior?: 'auto' | 'smooth'; }): Promise; findText(query: string, opts?: FindMatchesOptions): Promise[]>; findNext(): Promise | null>; findPrev(): Promise | null>; clearFind(): void; private _activateMatch; private _collectSlideRuns; private _redrawHighlights; private _refreshFindRuns; private _redrawSlotComments; private _redrawSlotCommentConnectors; private _commitSlotComments; private _ensureSlotCommentAnchors; private _scheduleCommentGeometry; private _redrawSlotHighlights; private _measureForFind; private _hyperlinkHandler; private _onHyperlinkClick; private _resolveInternalSlideIndex; private _onResize; get topVisibleSlide(): number; getResourceMetrics(): Promise; getSelectionContext(options?: PptxSelectionContextOptions): PptxSelectionContext | null; private _emitSelectionContextChange; private _setElementContext; private _invalidateElementSelection; private _redrawElementOutlines; private _redrawElementOutlineForSlot; private _onElementClick; private _onContextMenu; private _resolveContextAt; destroy(): void; } declare function buildPptxTextLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], cssWidth: number, cssHeight: number, onHyperlinkClick?: (target: HyperlinkTarget) => void, slideIndex?: number): void; interface PptxHighlightMatch { slices: MatchRunSlice[]; active: boolean; } type PptxHighlightColors = FindHighlightColors; declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void; declare namespace pptx_d_exports { export { ArrowEnd, AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartElement, ChartErrBars, ChartExElementStyle, ChartExRenderer, ChartLabelBox, ChartLegendEntryOverride, ChartLineDashSegment, ChartLineGroupDecorations, ChartManualLayout, ChartModel, ChartOfPie, ChartPlotGroup, ChartPlotGroupAxisSlot, ChartPlotGroupKind, ChartRect, ChartRegionMapRenderer, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartSurfaceBandFormat, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDPictureOptions, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, DimOptions, DrawingMLCustomDashSegment, Duotone$1 as Duotone, EquationRun, Fill, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop$1 as GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, LegendManualLayout, LightRig, LineBreak, LoadOptions$1 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MediaElement, NoFill, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, Paragraph, PathCmd$2 as PathCmd, PatternFill, PictureElement, PptxComment, PptxCommentAnchor, PptxCommentReply, PptxCommentSelectionContext, PptxCommentsOptions, PptxElementBounds, PptxElementContext, PptxElementContextOptions, PptxHighlightColors, PptxHighlightMatch, PptxMatchLocation, PptxPresentation, PptxScrollViewer, PptxScrollViewerOptions, PptxSelectionContext, PptxSelectionContextOptions, PptxSelectionRunLocator, PptxSlidePoint, PptxTextRunInfo, PptxTextSelectionContext, PptxViewer, PptxViewerOptions, PresentSlideOptions, Presentation, PresentationHandle, Reflection, RenderOptions, RenderSlideOptions, RenderSlideToBitmapOptions, Rot3d, Scene3d, SecondaryValueAxis, Shadow, ShapeElement, Slide, SlideElement, SlideElementOrigin, SlideElementSource, SlideRenderOptions, SoftEdge, SolidFill, Sp3d, SpaceLine, SrcRect, Stroke, TabStop$1 as TabStop, TableCell, TableElement, TableRow, TextBody, TextOutline, TextRect, TextRun, TextRunCallback, TextRunData, TextSelectionContextOptions, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide }; } //#endregion //#region dist/.types-work/types-Dktpy0kq.d.ts type ShapeFill = Exclude; interface Workbook { sheets: SheetMeta[]; date1904?: boolean; parseError?: string; } type SheetVisibility = 'visible' | 'hidden' | 'veryHidden'; interface SheetMeta { name: string; sheetId: number; rId: string; tabColor?: string | null; visibility?: 'hidden' | 'veryHidden'; } interface MergeCell { top: number; left: number; bottom: number; right: number; } interface Worksheet { name: string; isChartSheet?: boolean; rows: Row[]; colWidths: Record; colWidthRanges?: Array<{ min: number; max: number; width: number; }>; colStyleRanges?: Array<{ min: number; max: number; styleIndex: number; }>; rowHeights: Record; colOutlineLevels?: Record; colCollapsed?: Record; colHidden?: Record; defaultColWidth: number; defaultRowHeight: number; defaultRowHeightCustom?: boolean; mergeCells: MergeCell[]; freezeRows: number; freezeCols: number; conditionalFormats: ConditionalFormat[]; images: ImageAnchor[]; charts: ChartAnchor[]; shapeGroups?: ShapeAnchor[]; showZeros?: boolean; showGridlines?: boolean; rightToLeft?: boolean; outlinePr?: OutlinePr; tabColor?: string | null; autoFilter?: WorksheetCellRange | null; hyperlinks?: Hyperlink[]; commentRefs?: string[]; comments?: XlsxComment[]; dataValidations?: DataValidation[]; definedNames?: DefinedName[]; tables?: TableInfo[]; slicers?: SlicerAnchor[]; pivotTables?: PivotTableMetadata[]; pivotDiagnostics?: PivotDiagnostic[]; sparklineGroups?: SparklineGroup[]; defaultFontFamily?: string; defaultFontSize?: number; date1904?: boolean; parseError?: string; } interface PivotTableMetadata { name: string; cacheId: number; location: PivotLocation; rowFields: number[]; columnFields: number[]; pageFields: PivotPageField[]; dataFields: PivotDataField[]; refreshOnLoad?: boolean; cacheInvalid?: boolean; cacheDefinitionPart?: string; cacheSource?: PivotCacheSource; status: PivotMetadataStatus; extensionUris?: string[]; } interface PivotLocation extends WorksheetCellRange { firstHeaderRow: number; firstDataRow: number; firstDataCol: number; } interface PivotPageField { field: number; item?: number; name?: string; } interface PivotDataField { field: number; subtotal?: string; rawSubtotal?: string; name?: string; } type PivotCacheSource = { kind: 'worksheet'; sheet?: string; reference?: string; name?: string; relationshipId?: string; } | { kind: 'external'; } | { kind: 'consolidation'; } | { kind: 'scenario'; }; type PivotMetadataStatus = { state: 'complete'; } | { state: 'partial'; reasons: PivotPartialReason[]; }; type PivotPartialReason = { kind: 'missingCacheRelationship'; } | { kind: 'malformedCacheRelationships'; } | { kind: 'unreadableCacheRelationships'; } | { kind: 'externalCacheRelationship'; } | { kind: 'ambiguousCacheRelationship'; } | { kind: 'unreadableCacheDefinition'; } | { kind: 'malformedCacheDefinition'; } | { kind: 'malformedField'; field: string; } | { kind: 'unsupportedCacheSource'; sourceType: string; } | { kind: 'unresolvedWorksheetSourceRelationship'; } | { kind: 'unsupportedSemanticFeature'; feature: string; }; interface PivotDiagnostic { part: string; reason: { kind: 'unreadableWorksheetRelationships'; } | { kind: 'malformedWorksheetRelationships'; } | { kind: 'malformedPivotRelationship'; } | { kind: 'externalPivotRelationship'; } | { kind: 'unreadablePart'; } | { kind: 'malformedXml'; } | { kind: 'missingIdentity'; } | { kind: 'invalidLocation'; }; } interface SparklineGroup { kind: 'line' | 'column' | 'stem'; markers: boolean; high: boolean; low: boolean; first: boolean; last: boolean; negative: boolean; displayXAxis: boolean; displayEmptyCellsAs: string; minAxisType: string; maxAxisType: string; manualMin?: number; manualMax?: number; lineWeight: number; colorSeries?: string; colorNegative?: string; colorAxis?: string; colorMarkers?: string; colorFirst?: string; colorLast?: string; colorHigh?: string; colorLow?: string; sparklines: Sparkline[]; } interface Sparkline { row: number; col: number; values: (number | null)[]; } interface SlicerAnchor { fromCol: number; fromColOff: number; fromRow: number; fromRowOff: number; toCol: number; toColOff: number; toRow: number; toRowOff: number; caption: string; items: SlicerItem[]; style?: SlicerStyle; } interface SlicerItem { name: string; selected: boolean; } interface SlicerStyle { whole?: SlicerElementStyle; header?: SlicerElementStyle; selectedItemWithData?: SlicerElementStyle; unselectedItemWithData?: SlicerElementStyle; } interface SlicerElementStyle { fontColor?: string; fontSize?: number; fontBold?: boolean; fontFamily?: string; fillColor?: string; borderColor?: string; } interface TableInfo { range: WorksheetCellRange; styleName: string; headerRowCount: number; totalsRowCount: number; showRowStripes: boolean; showColumnStripes: boolean; showFirstColumn: boolean; showLastColumn: boolean; accentColor: string; isCustom?: boolean; wholeTableDxf?: number; headerRowDxf?: number; totalRowDxf?: number; firstColumnDxf?: number; lastColumnDxf?: number; band1HorizontalDxf?: number; band2HorizontalDxf?: number; columns: TableColumnInfo[]; } interface TableColumnInfo { dataDxfId?: number; headerRowDxfId?: number; totalsRowDxfId?: number; } interface DefinedName { name: string; formula: string; } interface XlsxComment { kind?: 'note' | 'thread'; cellRef: string; id?: string; personId?: string; author?: string; date?: string; rootText?: string; text: string; resolved?: boolean; replies?: XlsxCommentReply[]; } interface XlsxCommentReply { id: string; parentId: string; personId: string; author?: string; date?: string; text: string; resolved?: boolean; } interface DataValidation { sqref: string; validationType?: string; operator?: string; formula1?: string; formula2?: string; allowBlank?: boolean; promptTitle?: string; prompt?: string; errorTitle?: string; errorMessage?: string; } interface ChartAnchor { zOrder?: number; fromCol: number; fromColOff: number; fromRow: number; fromRowOff: number; toCol: number; toColOff: number; toRow: number; toRowOff: number; chart: ChartModel; } interface ShapeAnchor { fromCol: number; fromColOff: number; fromRow: number; fromRowOff: number; toCol: number; toColOff: number; toRow: number; toRowOff: number; editAs?: string; nativeExtCx: number; nativeExtCy: number; shapes: ShapeInfo[]; } interface ShapeInfo { zOrder?: number; x: number; y: number; w: number; h: number; rot: number; flipH?: boolean; flipV?: boolean; fillColor?: string; fill?: ShapeFill; strokeColor?: string; strokeWidth: number; strokeFill?: Exclude; strokeDashStyle?: string; strokeCustomDash?: Array<{ dash: number; space: number; }>; strokeLineCap?: 'butt' | 'round' | 'square'; strokeLineJoin?: 'round' | 'bevel' | 'miter'; strokeMiterLimit?: number; strokeAlignment?: 'ctr' | 'in'; strokeCmpd?: string; strokeHeadEnd?: ArrowEnd; strokeTailEnd?: ArrowEnd; geom: ShapeGeom; text?: ShapeText; } interface ShapeText { anchor: string; wrap: string; autoFit?: string; fontScale?: number | null; lnSpcReduction?: number | null; lIns: number; tIns: number; rIns: number; bIns: number; paragraphs: ShapeParagraph[]; } interface ShapeParagraph { align: string; rtl?: boolean; marL?: number; marR?: number; indent?: number; spaceLine?: SpaceLine | null; runs: ShapeTextRun[]; } type ShapeTextRun = { type: 'text'; text: string; bold: boolean; italic: boolean; size: number; color?: string; fontFace?: string; fontFaceEa?: string; fontFaceCs?: string; } | { type: 'break'; } | { type: 'math'; nodes: MathNode[]; display: boolean; fontSize?: number; color?: string; }; type ShapeGeom = { type: 'preset'; name: string; adj?: (number | null)[]; } | { type: 'custom'; paths: PathInfo[]; } | { type: 'image'; imagePath: string; mimeType: string; svgImagePath?: string; srcRect?: { l: number; t: number; r: number; b: number; }; alpha?: number; duotone?: Duotone; }; interface Duotone { clr1: string; clr2: string; } interface PathInfo { w: number; h: number; commands: PathCmd[]; } type PathCmd = { op: 'moveTo'; x: number; y: number; } | { op: 'lineTo'; x: number; y: number; } | { op: 'cubicBezTo'; x1: number; y1: number; x2: number; y2: number; x3: number; y3: number; } | { op: 'quadBezTo'; x1: number; y1: number; x2: number; y2: number; } | { op: 'arcTo'; wr: number; hr: number; stAng: number; swAng: number; } | { op: 'close'; }; interface ImageAnchor { zOrder?: number; fromCol: number; fromColOff: number; fromRow: number; fromRowOff: number; toCol: number; toColOff: number; toRow: number; toRowOff: number; editAs?: string; nativeExtCx: number; nativeExtCy: number; imagePath: string; mimeType: string; svgImagePath?: string; srcRect?: { l: number; t: number; r: number; b: number; }; alpha?: number; duotone?: Duotone; } interface WorksheetCellRange { top: number; left: number; bottom: number; right: number; } interface Hyperlink { col: number; row: number; url: string | null; location?: string | null; display?: string | null; } interface ConditionalFormat { sqref: WorksheetCellRange[]; rules: CfRule[]; } type CfRule = { type: 'cellIs'; operator: string; formulas: string[]; dxfId: number | null; priority: number; } | { type: 'expression'; formula: string; dxfId: number | null; priority: number; stopIfTrue: boolean; } | { type: 'colorScale'; stops: CfStop[]; priority: number; } | { type: 'dataBar'; color: string; min: CfValue; max: CfValue; priority: number; gradient: boolean; } | { type: 'top10'; top: boolean; percent: boolean; rank: number; dxfId: number | null; priority: number; } | { type: 'aboveAverage'; aboveAverage: boolean; equalAverage?: boolean; stdDev?: number; dxfId: number | null; priority: number; } | { type: 'iconSet'; iconSet: string; cfvos: CfValue[]; reverse: boolean; priority: number; customIcons?: CfIcon[]; } | { type: 'other'; kind: string; priority: number; }; interface CfIcon { iconSet: string; iconId: number; } interface CfStop { kind: string; value: string | null; color: string; } interface CfValue { kind: string; value: string | null; } interface Row { index: number; height: number | null; customHeight?: boolean; cells: Cell[]; outlineLevel?: number; collapsed?: boolean; hidden?: boolean; } interface OutlinePr { summaryBelow: boolean; summaryRight: boolean; } interface Cell { col: number; row: number; value: CellValue; styleIndex?: number; formula?: string; showPhonetic?: boolean; } type CellValue = { type: 'empty'; } | { type: 'text'; text: string; runs?: Run[]; phoneticRuns?: PhoneticRun[]; phoneticPr?: PhoneticProperties; } | { type: 'number'; number: number; } | { type: 'bool'; bool: boolean; } | { type: 'error'; error: string; } | { type: 'shared'; si: number; }; interface PhoneticRun { sb: number; eb: number; text: string; } type PhoneticType = 'fullwidthKatakana' | 'halfwidthKatakana' | 'Hiragana' | 'noConversion'; type PhoneticAlignment = 'left' | 'center' | 'distributed' | 'noControl'; interface PhoneticProperties { fontId: number; type?: PhoneticType; alignment?: PhoneticAlignment; } interface Run { text: string; font?: RunFont; } interface RunFont { bold: boolean; italic: boolean; underline: boolean; strike: boolean; size?: number; color?: string | null; name?: string | null; underlineStyle?: string; vertAlign?: 'superscript' | 'subscript'; } interface SharedString { text: string; runs?: Run[]; phoneticRuns?: PhoneticRun[]; phoneticPr?: PhoneticProperties; } interface NumFmt { numFmtId: number; formatCode: string; } interface Styles { fonts: CellFont[]; fills: CellFill[]; borders: Border[]; cellXfs: CellXf[]; numFmts: NumFmt[]; dxfs: Dxf[]; } interface Dxf { font: CellFont | null; fill: CellFill | null; border: Border | null; numFmt?: NumFmt | null; } interface CellFont { bold: boolean; italic: boolean; underline: boolean; strike: boolean; size: number; color: string | null; name: string | null; underlineStyle?: string; vertAlign?: 'superscript' | 'subscript'; } interface CellFill { patternType: string; fgColor: string | null; bgColor: string | null; gradient?: GradientFillSpec | null; } interface GradientFillSpec { gradientType: string; degree: number; left: number; right: number; top: number; bottom: number; stops: { position: number; color: string; }[]; } interface Border { left: BorderEdge | null; right: BorderEdge | null; top: BorderEdge | null; bottom: BorderEdge | null; diagonalUp?: BorderEdge | null; diagonalDown?: BorderEdge | null; horizontal?: BorderEdge | null; vertical?: BorderEdge | null; } interface BorderEdge { style: string; color: string | null; } interface CellXf { fontId: number; fillId: number; borderId: number; numFmtId: number; alignH: string | null; alignV: string | null; wrapText: boolean; indent?: number; textRotation?: number; shrinkToFit?: boolean; readingOrder?: number; } interface ParsedWorkbook { workbook: Workbook; styles: Styles; sharedStrings: SharedString[]; } interface ViewportRange { row: number; col: number; rows: number; cols: number; } interface XlsxTextRunInfo { sheetName: string; cellRef: string; text: string; x: number; y: number; width: number; height: number; row: number; col: number; } interface XlsxRenderViewportOptions { width?: number; height?: number; dpr?: number; defaultFontFamily?: string; defaultFontSize?: number; scrollOffsetX?: number; scrollOffsetY?: number; freezeRows?: number; freezeCols?: number; cellScale?: number; onTextRun?: (info: XlsxTextRunInfo) => void; selectedRowRange?: { start: number; end: number; strong: boolean; } | null; selectedColRange?: { start: number; end: number; strong: boolean; } | null; } //#endregion //#region dist/.types-work/xlsx-_-beyOtw.d.ts type ResolvedList = { kind: 'values'; values: string[]; } | { kind: 'formula'; formula: string; }; type RenderViewportToBitmapOptions = Omit & { width: number; height: number; }; interface LoadOptions extends LoadOptions$3 { mode?: 'main' | 'worker'; } declare class XlsxWorkbook { private metrics; private worker; private bridge; private parsedWorkbook; private sheetCache; private sheetLoads; private readonly rawParts; private queuedImageLoads; private readonly _fetchImage; private resourcePolicy; private math; private threeD; private regionMap; private chartEx; private googleFontNames; private readonly retainedFontSets; private fontsDestroyed; private _mode; private generation; private archiveOperationTail; private worksheetPullClient; private workerTimeoutMs; private retainedSheetUsage; private resourceFailure; private constructor(); get mode(): 'main' | 'worker'; static load(source: string | ArrayBuffer, opts?: LoadOptions): Promise; private _load; private retainFontsInSet; get sheetNames(): string[]; get sheetCount(): number; get tabColors(): (string | null)[]; sheetVisibility(sheetIndex: number): SheetVisibility; isHidden(sheetIndex: number): boolean; getWorksheet(sheetIndex: number): Promise; getComments(sheetIndex: number): Promise[]>; getResourceMetrics(): Promise; private loadWorksheet; private loadWorksheetStream; private ensureWorksheetPullClient; private runArchiveOperation; getImage(imagePath: string, mimeType: string): Promise; private getImageWithinArchiveOperation; private requestImage; toMarkdown(): Promise; resolveValidationList(sheetIndex: number, formula1: string | undefined): Promise; cellText(ws: Worksheet, cell: Cell): string; renderViewport(target: HTMLCanvasElement | OffscreenCanvas, sheetIndex: number, viewport: ViewportRange, opts?: XlsxRenderViewportOptions): Promise; renderViewportToBitmap(sheetIndex: number, viewport: ViewportRange, opts: RenderViewportToBitmapOptions): Promise; private withWorksheetArchiveOperation; destroy(): void; private assertResourceHealthy; } type CanvasViewerRenderMode = 'main' | 'worker'; interface CellAddress { row: number; col: number; } type XlsxSelectionArea = Readonly<{ kind: 'cells'; top: number; left: number; bottom: number; right: number; }> | Readonly<{ kind: 'rows'; firstRow: number; lastRow: number; }> | Readonly<{ kind: 'columns'; firstColumn: number; lastColumn: number; }> | Readonly<{ kind: 'sheet'; }>; interface XlsxSelectionState { readonly areas: readonly XlsxSelectionArea[]; readonly activeAreaIndex: number; readonly activeCell: CellAddress; readonly extensionAnchor: CellAddress; } type XlsxSelectionInput = string | XlsxSelectionState | null; interface XlsxSelectionContextOptions { readonly maxCells?: number; readonly maxTextCharacters?: number; } interface XlsxSelectionContextCell { readonly address: CellAddress; readonly displayText: string; readonly valueType: 'empty' | 'text' | 'number' | 'bool' | 'error' | 'shared'; readonly value: string | number | boolean | null; readonly formula?: string; readonly comment?: ViewerCommentThreadContext; } interface XlsxRangeSelectionContext { readonly format: 'xlsx'; readonly kind: 'range'; readonly sheetIndex: number; readonly sheetName: string; readonly selection: XlsxSelectionState; readonly coordinateCountUpperBound: number; readonly cells: readonly XlsxSelectionContextCell[]; readonly truncated: boolean; readonly truncationReasons: readonly ('cells' | 'text')[]; readonly maxCells: number; readonly textCharacters: number; readonly maxTextCharacters: number; } interface XlsxElementAnchorMarker { readonly row: number; readonly col: number; readonly offsetX: number; readonly offsetY: number; } interface XlsxElementContext { readonly format: 'xlsx'; readonly kind: 'element'; readonly sheetIndex: number; readonly sheetName: string; readonly elementType: 'chart' | 'image' | 'shape'; readonly elementIndex: number; readonly shapeIndex?: number; readonly anchor: Readonly<{ from: XlsxElementAnchorMarker; to: XlsxElementAnchorMarker; }>; readonly text?: string; readonly mimeType?: string; readonly seriesCount?: number; readonly shapeCount?: number; readonly truncated: boolean; readonly truncationReasons: readonly ('text')[]; readonly textCharacters: number; readonly maxTextCharacters: number; } type XlsxSelectionContext = XlsxRangeSelectionContext | XlsxElementContext; declare const MAX_SELECTION_AREAS = 128; declare const MAX_SELECTION_CONTEXT_CELLS = 10000; declare const MAX_SELECTION_CONTEXT_TEXT_CHARACTERS: number; interface XlsxMatchLocation { sheet: number; sheetName: string; ref: string; row: number; col: number; } interface XlsxCommentsOptions extends ViewerCommentsOptions {} type HiddenSheetMode = 'show' | 'skip' | 'dim'; interface XlsxSheetViewerOptions extends LoadOptions { cellScale?: number; resizable?: boolean; showScrollbars?: boolean; zoomMin?: number; zoomMax?: number; onScaleChange?: (scale: number) => void; onReady?: (sheetNames: string[]) => void; onSheetChange?: (index: number, total: number) => void; onError?: (err: Error) => void; onSelectionStateChange?: (selection: XlsxSelectionState | null) => void; onSelectionContextChange?: (context: XlsxSelectionContext | null) => void; onContextMenu?: (event: ViewerContextMenuEvent) => void; enableElementSelection?: boolean; onHyperlinkClick?: (target: HyperlinkTarget) => void; enableHyperlinks?: boolean; selectionColor?: string; findHighlightColors?: FindHighlightColors; comments?: boolean | XlsxCommentsOptions; hiddenSheetMode?: HiddenSheetMode; onViewportChange?: (offset: XlsxViewportOffset) => void; } interface XlsxViewerOptions extends XlsxSheetViewerOptions { showZoomSlider?: boolean; } interface XlsxViewportOffset { readonly x: number; readonly y: number; } interface XlsxCellViewportRect { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } interface XlsxScrollToCellOptions { readonly align?: 'nearest' | 'start' | 'center' | 'end'; } type XlsxCopyResult = Readonly<{ status: 'copied'; cellCount: number; utf16CodeUnits: number; }> | Readonly<{ status: 'empty-selection'; }> | Readonly<{ status: 'unsupported-multiple-areas'; }> | Readonly<{ status: 'too-large'; limit: 'cells' | 'text'; }> | Readonly<{ status: 'clipboard-unavailable'; }> | Readonly<{ status: 'clipboard-denied'; }>; type XlsxViewerMount = { readonly kind: 'composite'; } | { readonly kind: 'sheet'; readonly canvas: HTMLCanvasElement; readonly mode: CanvasViewerRenderMode; }; declare class XlsxViewerEngine implements ZoomableViewer { private readonly container; private readonly hostDocument; private readonly hostWindow; private readonly acquisition; private readonly viewport; private readonly renderDispatcher; private wrapper; private canvas; private gridRegion; private rowGutter; private colGutter; private cornerGutter; private gutter; private rowOutline; private colOutline; private rowOutlineBands; private colOutlineBands; private stashedRowHeights; private stashedColWidths; private sizeOverrideStore; private readonly projectionId; private canvasArea; private scrollHost; private spacer; private readonly surface; private readonly overlayHost; private tabBar; private tabStrip; private tabList; private navPrev; private navNext; private tabs; private tabColors; private zoomSlider; private zoomLabel; private currentSheet; private sheetRequestGeneration; private fontBindingGeneration; private fontBinding; private _hiddenSheetMode; private currentWorksheet; private currentSourceComments; private commentNavigationGeneration; private sourceCommentMap; private sheetViews; private opts; private readonly _mountKind; private readonly _nativeScrollbars; private readonly _mode; private _borrowed; private preparedWorkbook; private _destroyed; private resizeObserver; private chromeColors; private chromeStyleObserver; private chromeSchemeMedia; private chromeSchemeListener; private _lastViewportNotification; private get anchorCell(); private get activeCell(); private get selectionMode(); private get isSelecting(); private get selectionPointerId(); private beginSelectionDrag; private _pendingZoomAnchor; private readonly selectionController; private lastNotifiedSelectionState; private emittingSelectionChange; private pendingSelectionChange; private selectionNotificationScheduled; private selectionNotificationCount; private selectionContextNotificationFrame; private selectionContextNotificationMicrotask; private readonly selectionContextRows; private readonly selectionContextCells; private elementContext; private selectionOverlay; private findOverlay; private _find; private keydownHandler; private pendingTap; private pendingClick; private pendingElementClick; private resizeDrag; private selectionAutoScrollPointer; private selectionAutoScrollFrame; private selectionAutoScrollLastTime; private commentPopup; private commentMap; private hyperlinkMap; private commentPopupKey; private commentPopupTimer; private commentPopupCell; private commentPopupPositionScheduled; private commentPopupResizeObserver; private commentUi; private commentPopupRenderGeneration; private validationPanel; private validationPanelKey; private validationRequestGeneration; private validationArrowRect; private validationOutsideHandler; constructor(container: HTMLElement, opts: XlsxViewerOptions | XlsxSheetViewerOptions | undefined, mount: XlsxViewerMount); private refreshChromeTheme; private installChromeThemeRefresh; private _collectSheetCells; load(source: string | ArrayBuffer): Promise; private activateWorkbook; private ensureHostFonts; private releaseHostFonts; private prepareWorkbook; private get workbook(); private get wb(); private set wb(value); private showSheet; private isCurrentSheetRequest; private buildOutline; private layoutGutters; private renderGutters; private paintAxisGutter; private drawToggleBox; private drawLevelButton; private paintCornerGutter; private onGutterPointerDown; private applyGroupToggle; private scrollOutlineSummaryToStart; private applyLevelButton; private setBandHidden; private recordSizeOverride; private wireSizeOverrides; private syncAutomaticRowOverrides; private setBandCollapsed; private afterOutlineMutation; private buildOutlineLayoutOnly; private get isRtl(); private updateFooterDirection; private get maxScrollLeft(); private get maxScrollTop(); private syncNativeViewportExtent; private get viewportTop(); private set viewportTop(value); private get effectiveScrollLeft(); private setViewportLeft; private screenX; private resetHorizontalScroll; private reanchorHorizontalScroll; get sheetIndex(): number; get sheetCount(): number; goToSheet(index: number): Promise; nextSheet(): Promise; prevSheet(): Promise; getViewportOffset(): XlsxViewportOffset; private emitViewportChange; setViewportOffset(offset: XlsxViewportOffset): Promise; relayout(): Promise; scrollToCell(ref: string, options?: XlsxScrollToCellOptions): Promise; private _stepSheet; private _initialSheet; getCellAt(clientX: number, clientY: number): CellAddress | null; private elementContextViewport; private elementContextAt; private _cellRect; getCellViewportRect(cell: CellAddress | string): XlsxCellViewportRect | null; getComments(): readonly Readonly[]; goToComment(sheetIndex: number, cellRef: string, options?: XlsxScrollToCellOptions): Promise; get selectionState(): XlsxSelectionState | null; setSelection(input: XlsxSelectionInput): void; getSelectionContext(options?: XlsxSelectionContextOptions): XlsxSelectionContext | null; private commitSelection; private setElementContext; private scheduleSelectionContextNotification; private emitSelectionChange; private scheduleSelectionNotification; private finishSelectionNotificationChain; private getHeaderHit; private getResizeTarget; private applyResize; private refitAutoRowsAfterColumnResize; setSelectionColor(color: string): void; setHiddenSheetMode(mode: HiddenSheetMode): Promise; get hiddenSheetMode(): HiddenSheetMode; get visibleSheetCount(): number; copySelection(): Promise; private updateSelectionOverlay; private drawElementContextOverlay; private maybeDrawValidationDropdown; private updateFindOverlay; findText(query: string, opts?: FindMatchesOptions): Promise[]>; findNext(): Promise | null>; findPrev(): Promise | null>; clearFind(): void; private _activateMatch; private _scrollCellIntoView; private toggleValidationPanel; private openValidationPanel; private isCurrentValidationRequest; private renderValidationPanel; private positionValidationPanel; private installValidationOutsideHandler; private hideValidationPanel; private buildCommentMap; private createCommentMap; private createVisibleSheetView; private buildHyperlinkMap; private hyperlinkAtCell; private dispatchHyperlink; private navigateInternalHyperlink; private scheduleCommentPopup; private loadCommentUi; private renderCommentPopup; private scheduleCommentPopupPosition; private positionCommentPopup; private hideCommentPopup; private applyPointerSelection; private viewportInputBounds; private extendDragSelection; private selectionAutoScrollSpeed; private trackSelectionAutoScroll; private runSelectionAutoScroll; private stopSelectionAutoScroll; private contextMenuTargetIsSelected; private resolveContextMenuContext; private setupSelectionEvents; private buildTabs; private makeNavButton; private navButtonStyle; private scrollTabs; private updateNavButtons; private updateTabActive; private tabStyle; private tabCss; private buildZoomControl; private zoomPosToScale; private zoomScaleToPos; setScale(scale: number): void; getScale(): number; zoomIn(): void; zoomOut(): void; fitWidth(): void; fitPage(): void; private _fit; private _naturalContentExtent; private updateSpacerSize; private scheduleRender; private renderCurrentSheet; private _reportRenderError; private _renderCurrentSheet; private computeHeaderHighlight; get sheetNames(): string[]; get canvasElement(): HTMLCanvasElement; getResourceMetrics(): Promise; destroy(): void; private assertOpen; private destroyedError; } declare class XlsxViewer extends XlsxViewerEngine { static fromWorkbook(container: HTMLElement, workbook: XlsxWorkbook, opts?: Omit): Omit; constructor(container: HTMLElement, opts?: XlsxViewerOptions); } declare class XlsxSheetViewer implements ZoomableViewer { readonly canvasElement: HTMLCanvasElement; private readonly engine; private readonly canvasMount; private destroyed; private snapshot; private lastMetrics; static fromWorkbook(canvasElement: HTMLCanvasElement, workbook: XlsxWorkbook, options?: Omit): Omit; constructor(canvasElement: HTMLCanvasElement, options?: XlsxSheetViewerOptions); load(source: string | ArrayBuffer): Promise; get sheetIndex(): number; get sheetCount(): number; get sheetNames(): string[]; goToSheet(index: number): Promise; nextSheet(): Promise; prevSheet(): Promise; getViewportOffset(): XlsxViewportOffset; setViewportOffset(offset: XlsxViewportOffset): Promise; scrollToCell(ref: string, options?: XlsxScrollToCellOptions): Promise; relayout(): Promise; getScale(): number; setScale(scale: number): void; zoomIn(): void; zoomOut(): void; fitWidth(): void; fitPage(): void; getCellAt(clientX: number, clientY: number): CellAddress | null; getCellViewportRect(cell: CellAddress | string): XlsxCellViewportRect | null; getComments(): readonly Readonly[]; goToComment(sheetIndex: number, cellRef: string, options?: XlsxScrollToCellOptions): Promise; get selectionState(): XlsxSelectionState | null; setSelection(selection: XlsxSelectionInput): void; getSelectionContext(options?: XlsxSelectionContextOptions): XlsxSelectionContext | null; copySelection(): Promise; setSelectionColor(color: string): void; setHiddenSheetMode(mode: HiddenSheetMode): Promise; get hiddenSheetMode(): HiddenSheetMode; get visibleSheetCount(): number; findText(query: string, options?: FindMatchesOptions): Promise[]>; findNext(): Promise | null>; findPrev(): Promise | null>; clearFind(): void; getResourceMetrics(): Promise; destroy(): void; private captureSnapshot; private assertOpen; private destroyedError; } declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet; declare namespace xlsx_d_exports { export { ArrowEnd, AutoResizeOptions, Border, BorderEdge, Cell, CellAddress, CellFill, CellFont, CellValue, CellXf, CfIcon, CfRule, CfStop, CfValue, ChartAnchor, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartErrBars, ChartExElementStyle, ChartExRenderer, ChartLabelBox, ChartLegendEntryOverride, ChartLineDashSegment, ChartLineGroupDecorations, ChartManualLayout, ChartModel, ChartOfPie, ChartPlotGroup, ChartPlotGroupAxisSlot, ChartPlotGroupKind, ChartRect, ChartRegionMapRenderer, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartSurfaceBandFormat, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDPictureOptions, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, ConditionalFormat, DataValidation, DefinedName, DrawingMLCustomDashSegment, Duotone, Dxf, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, GradientFill, GradientFillSpec, GradientStop$1 as GradientStop, HiddenSheetMode, Hyperlink, HyperlinkTarget, ImageAnchor, ImageFill, LegendManualLayout, LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MergeCell, NoFill, NumFmt, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, OutlinePr, ParsedWorkbook, PathCmd, PathInfo, PatternFill, PhoneticAlignment, PhoneticProperties, PhoneticRun, PhoneticType, PivotCacheSource, PivotDataField, PivotDiagnostic, PivotLocation, PivotMetadataStatus, PivotPageField, PivotPartialReason, PivotTableMetadata, RenderViewportToBitmapOptions, ResolvedList, Row, Run, RunFont, SecondaryValueAxis, ShapeAnchor, ShapeFill, ShapeGeom, ShapeInfo, ShapeParagraph, ShapeText, ShapeTextRun, SharedString, SheetMeta, SheetVisibility, SlicerAnchor, SlicerElementStyle, SlicerItem, SlicerStyle, SolidFill, SpaceLine, Sparkline, SparklineGroup, SrcRect, Styles, TableColumnInfo, TableInfo, TileInfo, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ViewportRange, Workbook, Worksheet, WorksheetCellRange, XlsxCellViewportRect, XlsxComment, XlsxCommentReply, XlsxCommentsOptions, XlsxCopyResult, XlsxElementAnchorMarker, XlsxElementContext, XlsxMatchLocation, XlsxRangeSelectionContext, XlsxRenderViewportOptions, XlsxScrollToCellOptions, XlsxSelectionArea, XlsxSelectionContext, XlsxSelectionContextCell, XlsxSelectionContextOptions, XlsxSelectionInput, XlsxSelectionState, XlsxSheetViewer, XlsxSheetViewerOptions, XlsxTextRunInfo, XlsxViewer, XlsxViewerOptions, XlsxViewportOffset, XlsxWorkbook, ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings }; } //#endregion export { docx_d_exports as docx, pptx_d_exports as pptx, xlsx_d_exports as xlsx };