import { $ as DxfOptions, A as TableColumnOptions, B as PivotAreaOptions, C as SheetBackgroundImageOptions, D as WorksheetOptions, E as WorksheetContext, F as tableDesc, G as PivotSourceData, H as PivotDataField, I as SharedStrings, J as BorderOptions, K as PivotTableOptions, L as SharedStringsDocOptions, M as TableStyleInfoOptions, N as TableType, O as stringifyWorksheet, P as TotalsRowFunction, Q as CustomTableStyleOptions, R as sharedStringsDesc, S as ScenarioOptions, T as WorksheetChartOptions, U as PivotFilterOptions, W as PivotFilterType, Y as BorderSideOptions, Z as CustomCellStyleOptions, _ as PhoneticPropertiesOptions, a as ColumnOptions, at as StylesDocOptions, b as ScenarioCellOptions, c as ConditionalFormatRule, d as FormulaOptions, et as FillOptions, f as FreezePaneOptions, g as MergeCellOptions, h as IgnoredErrorOptions, i as ColorScaleOptions, it as Styles, j as TableOptions, k as worksheetDesc, l as DataBarOptions, m as IconSetType, n as CfvoOptions, nt as StyleExtensionOptions, o as CommentOptions, ot as StylesParseResult, p as IconSetOptions, q as AlignmentOptions, r as CfvoType, rt as StyleOptions, s as ConditionalFormatOptions, st as stylesDesc, t as CellOptions, tt as FontOptions, u as DataValidationOptions, v as ProtectedRangeOptions, w as SheetProtectionOptions, x as ScenarioDefinition, y as RowOptions, z as ConsolidateFunction } from "./worksheet-C9CP2B97.mjs"; import { A as ChartsheetProtectionOptions, B as buildExternalReferencesXml, C as OleLinkOptions, D as ChartsheetOptions, E as ChartsheetHeaderFooterOptions, F as FileRecoveryPropertiesOptions, H as workbookDesc, I as FileSharingOptions, L as PivotCacheReference, M as CalcChainOptions, N as calcChainDesc, O as ChartsheetPageMargins, P as CustomWorkbookViewOptions, R as WebPublishingOptions, S as OleItemOptions, T as ChartsheetDescriptorOptions, V as buildTablePartsXml, _ as ExternalCellOptions, a as RevisionEntry, b as ExternalRowOptions, c as RevisionHeadersOptions, d as RevisionMoveOptions, f as RevisionRowColumnOptions, g as ExternalBookOptions, h as pivotCacheRecordsDesc, i as RevisionDefinedNameOptions, j as chartsheetDesc, k as ChartsheetPageSetup, l as RevisionInsertSheetOptions, m as pivotCacheDefDesc, n as RevisionCellChangeOptions, o as RevisionFormattingOptions, p as PivotCacheDefDescriptorOptions, r as RevisionCommentOptions, s as RevisionHeaderEntry, t as WorkbookOptions, u as RevisionLogOptions, v as ExternalDefinedNameOptions, w as externalLinkDesc, x as ExternalSheetDataOptions, y as ExternalLinkOptions, z as WorkbookProtectionOptions } from "./file-Clpwutq2.mjs"; import { generateWorkbook, generateWorkbookStream, generateWorkbookSync } from "./generate.mjs"; import { XlsxDocument, XlsxPartRefs, parseWorkbook, parseXlsx } from "./parse.mjs"; import { Patch, PatchWorkbookOptions, ScalarValue, patchWorkbook } from "./patch.mjs"; import { Element } from "@office-open/xml"; import { ChartCollection, CompressionOptions, CorePropertiesOptions, Media, OutputByType, OutputType, PackerOptions, RelationshipType, Relationships, UniversalMeasure, XmlifyedFile, Zippable } from "@office-open/core"; import { createThemeXml } from "@office-open/core/theme"; import { CustomDescriptor, ReadContext, WriteContext } from "@office-open/core/descriptor"; //#region src/parts/comments.d.ts interface CommentsDocOptions { comments: CommentOptions[]; } declare const commentsDesc: CustomDescriptor; declare const vmlNotesDesc: CustomDescriptor; //#endregion //#region src/parts/drawing.d.ts declare const ANCHOR_TYPES: { readonly twoCell: "twoCell"; readonly oneCell: "oneCell"; readonly absolute: "absolute"; }; type AnchorType = (typeof ANCHOR_TYPES)[keyof typeof ANCHOR_TYPES]; declare const EDIT_AS_TYPES: { readonly twoCell: "twoCell"; readonly oneCell: "oneCell"; readonly absolute: "absolute"; }; type EditAsType = (typeof EDIT_AS_TYPES)[keyof typeof EDIT_AS_TYPES]; interface DrawingImageOptions { col: number; colOffset?: number | UniversalMeasure; row: number; rowOffset?: number | UniversalMeasure; toCol?: number; toRow?: number; toColOffset?: number | UniversalMeasure; toRowOffset?: number | UniversalMeasure; rId: string; anchorType?: AnchorType; editAs?: EditAsType; absoluteX?: number | UniversalMeasure; absoluteY?: number | UniversalMeasure; extentCx?: number | UniversalMeasure; extentCy?: number | UniversalMeasure; locksWithSheet?: boolean; printsWithSheet?: boolean; } interface DrawingChartOptions { col: number; colOffset?: number | UniversalMeasure; row: number; rowOffset?: number | UniversalMeasure; rId: string; locksWithSheet?: boolean; printsWithSheet?: boolean; } interface DrawingOptions { images?: DrawingImageOptions[]; charts?: DrawingChartOptions[]; } declare const drawingDesc: CustomDescriptor; //#endregion //#region src/parts/pivot-table.d.ts interface PivotTableDescriptorOptions { options: PivotTableOptions; sourceData: PivotSourceData; cacheId: number; } interface PivotFieldParseResult { axis?: string; showAll?: boolean; dataField?: boolean; hierarchy?: string; dragToRow?: boolean; dragToCol?: boolean; dragToPage?: boolean; dragToData?: boolean; dragOff?: boolean; showDropDowns?: boolean; insertBlankRow?: boolean; showPropCell?: boolean; showPropTip?: boolean; showPropAsCaption?: boolean; compact?: boolean; outline?: boolean; subtotalTop?: boolean; includeNewItemsInFilter?: boolean; } interface DataFieldParseResult { name?: string; fld?: number; subtotal?: string; showDataAs?: string; baseField?: number; baseItem?: number; numFmtId?: string; } interface PageFieldParseResult { fld?: number; hier?: number; cap?: string; } interface PivotFormatParseResult { action?: string; dxfId?: number; pivotArea?: Partial; } interface ChartFormatParseResult { chart?: number; format?: number; series?: boolean; pivotArea?: Partial; } interface PivotHierarchyParseResult { outline?: boolean; multipleItemSelectionAllowed?: boolean; subtotalTop?: boolean; showInFieldList?: boolean; dragToRow?: boolean; dragToCol?: boolean; dragToPage?: boolean; dragToData?: boolean; dragOff?: boolean; includeNewItemsInFilter?: boolean; caption?: string; } interface PivotFilterParseResult { fld?: number; type?: string; id?: number; mpFld?: number; evalOrder?: number; } interface HierarchyUsageParseResult { hierarchyUsage: number; } interface CalculatedItemParseResult { field?: number; formula?: string; pivotArea?: Partial; } interface CalculatedMemberParseResult { name?: string; mdx?: string; memberName?: string; hierarchy?: string; parent?: string; solveOrder?: number; set?: boolean; } interface PivotTableParseResult { name?: string; cacheId?: number; dataOnRows?: boolean; showHeaders?: boolean; showEmptyRow?: boolean; showEmptyCol?: boolean; grandTotalCaption?: string; errorCaption?: string; showError?: boolean; missingCaption?: string; showMissing?: boolean; pageStyle?: string; pivotTableStyle?: string; tag?: string; showItems?: boolean; editData?: boolean; disableFieldList?: boolean; showCalcMbrs?: boolean; visualTotals?: boolean; showMultipleLabel?: boolean; showDataDropDown?: boolean; showDrill?: boolean; printDrill?: boolean; showMemberPropertyTips?: boolean; showDataTips?: boolean; enableWizard?: boolean; enableDrill?: boolean; enableFieldProperties?: boolean; pageWrap?: number; pageOverThenDown?: boolean; subtotalHiddenItems?: boolean; fieldPrintTitles?: boolean; mergeItem?: boolean; showDropZones?: boolean; published?: boolean; gridDropZones?: boolean; multipleFieldFilters?: boolean; rowHeaderCaption?: string; colHeaderCaption?: string; fieldListSortAscending?: boolean; mdxSubqueries?: boolean; customListSort?: boolean; asteriskTotals?: boolean; dataPosition?: number; immersive?: boolean; vacatedStyle?: string; dataCaption?: string; location?: string; locationRowPageCount?: number; locationColPageCount?: number; pivotFields?: PivotFieldParseResult[]; dataFields?: DataFieldParseResult[]; rowFields?: number[]; colFields?: number[]; pageFields?: PageFieldParseResult[]; formats?: PivotFormatParseResult[]; chartFormats?: ChartFormatParseResult[]; pivotHierarchies?: PivotHierarchyParseResult[]; filters?: PivotFilterParseResult[]; rowHierarchiesUsage?: HierarchyUsageParseResult[]; colHierarchiesUsage?: HierarchyUsageParseResult[]; calculatedItems?: CalculatedItemParseResult[]; calculatedMembers?: CalculatedMemberParseResult[]; style?: string; } declare const pivotTableDesc: CustomDescriptor; //#endregion //#region src/parts/dialogsheet.d.ts interface DialogsheetPageMargins { left?: number | UniversalMeasure; right?: number | UniversalMeasure; top?: number | UniversalMeasure; bottom?: number | UniversalMeasure; header?: number | UniversalMeasure; footer?: number | UniversalMeasure; } interface DialogsheetPageSetup { paperSize?: number; orientation?: string; horizontalDpi?: number; verticalDpi?: number; copies?: number; } interface DialogsheetProtectionOptions { content?: boolean; objects?: boolean; scenarios?: boolean; } interface DialogsheetOptions { name?: string; tabColor?: string; pageMargins?: DialogsheetPageMargins; pageSetup?: DialogsheetPageSetup; sheetProtection?: DialogsheetProtectionOptions; } //#endregion //#region src/parts/query-table.d.ts interface QueryTableDeletedFieldOptions { name: string; } interface QueryTableFieldOptions { id: number; name?: string; tableColumnId?: number; row?: number; fillFormatting?: boolean; textFormatting?: boolean; numberFormatting?: boolean; borderFormatting?: boolean; width?: number; clipped?: boolean; dataBound?: boolean; } interface QueryTableRefreshOptions { nextId?: number; minimumVersion?: number; preserveFormatting?: boolean; adjustColumnWidth?: boolean; refreshOnLoad?: boolean; backgroundRefresh?: boolean; deletedFields?: QueryTableDeletedFieldOptions[]; queryTableFields?: QueryTableFieldOptions[]; rowCount?: number; fieldIdWrapped?: boolean; headersInLastRefresh?: boolean; preserveSortFilterLayout?: boolean; unboundColumnsLeft?: number; unboundColumnsRight?: number; } interface QueryTableOptions { name?: string; connectionId: number; autoFormat?: boolean; preserveFormatting?: boolean; adjustColumnWidth?: boolean; refreshOnLoad?: boolean; backgroundRefresh?: boolean; rowNumbers?: boolean; disableRefresh?: boolean; firstBackgroundRefresh?: boolean; growShrinkType?: boolean; fillFormulas?: boolean; removeDataOnSave?: boolean; disableEdit?: boolean; intermediate?: boolean; queryTableRefresh?: QueryTableRefreshOptions; } //#endregion //#region src/parts/metadata.d.ts interface MetadataTypeOptions { name: string; minVersion?: number; minSupportedVersion?: number; ghostRow?: boolean; ghostCol?: boolean; edit?: boolean; delete?: boolean; copy?: boolean; paste?: boolean; pasteAll?: boolean; pasteFormulas?: boolean; pasteValues?: boolean; pasteFormats?: boolean; pasteComments?: boolean; pasteDataValidation?: boolean; pasteBorders?: boolean; pasteColWidths?: boolean; pasteNumberFormats?: boolean; merge?: boolean; splitFirst?: boolean; splitAll?: boolean; rowColShift?: boolean; clearAll?: boolean; clearFormats?: boolean; clearContents?: boolean; clearComments?: boolean; assign?: boolean; coerce?: boolean; adjust?: boolean; cellMeta?: boolean; } interface MetadataStringOptions { value: string; } interface FutureMetadataOptions { name: string; type: string; } interface MetadataOptions { types?: MetadataTypeOptions[]; strings?: MetadataStringOptions[]; futureMetadata?: FutureMetadataOptions[]; mdxMetadata?: MdxOptions[]; cellMetadataBlocks?: MetadataBlockOptions[]; valueMetadataBlocks?: MetadataBlockOptions[]; } interface MdxOptions { f: string; n: number; tuple?: MdxTupleOptions; set?: MdxSetOptions; memberProp?: MdxMemberPropOptions; kpi?: MdxKpiOptions; } interface MdxTupleOptions { c?: number; } interface MdxSetOptions { ns: number; } interface MdxMemberPropOptions { n: number; np: number; } interface MdxKpiOptions { n: number; np: number; p: string; } interface MetadataRecordOptions { t: number; v: number; } interface MetadataBlockOptions { records?: MetadataRecordOptions[]; } //#endregion //#region src/parts/connection.d.ts interface DatabasePropertiesOptions { connection: string; command?: string; commandType?: number; serverCommand?: string; } interface WebPropertiesOptions { url: string; sourceData?: boolean; htmlFormat?: string; htmlTables?: string[]; consecutive?: boolean; firstRowHeader?: boolean; parsePre?: boolean; xl2000?: boolean; editPage?: string; firstRow?: boolean; post?: boolean; textDates?: boolean; xl97?: boolean; textFields?: TextFieldOptions[]; } interface TextPropertiesOptions { textFields?: TextFieldOptions[]; codePage?: number; characterSet?: string; sourceFile?: string; delimited?: boolean; tab?: boolean; space?: boolean; comma?: boolean; semicolon?: boolean; custom?: string; decimal?: string; thousands?: string; trailingMinus?: boolean; delimiter?: string; fileType?: "mac" | "win" | "dos"; firstRow?: boolean; qualifier?: "doubleQuote" | "singleQuote" | "none"; } interface TextFieldOptions { type: number; dataType?: string; } interface ParameterOptions { name: string; sqlType?: number; characterSet?: string; stringValue?: string; integerValue?: number; booleanValue?: boolean; refreshOnChange?: boolean; prompt?: boolean; integer?: boolean; reference?: string; parameterType?: string; } interface ConnectionOptions { id: number; name?: string; type?: number; refreshOnLoad?: boolean; refreshedVersion?: number; backgroundRefresh?: boolean; saveData?: boolean; savePassword?: boolean; description?: string; credentials?: string; interval?: number; keepAlive?: boolean; new?: boolean; odcFile?: string; onlyUseConnectionFile?: boolean; reconnectionMethod?: number; singleSignOnId?: string; dbPr?: DatabasePropertiesOptions; webPr?: WebPropertiesOptions; textPr?: TextPropertiesOptions; parameters?: ParameterOptions[]; } //#endregion //#region src/parts/xml-mapping.d.ts interface SchemaOptions { id: string; schemaRef?: string; namespace?: string; schemaLanguage?: string; schemaID?: string; elementFormDefault?: string; attributeFormDefault?: string; } interface DataBindingOptions { dataBindingName?: string; fileBinding?: boolean; fileBindingName?: string; connectionID?: number; dataBindingLoadMode?: number; } interface MapOptions { id: number; name: string; rootElement: string; schemaID: string; showImportExportValidationErrors?: boolean; append?: boolean; dataBindingLoadMode?: number; autoFit?: boolean; fileBinding?: boolean; fileBindingName?: string; preserveFormat?: boolean; preserveSortAFLayout?: boolean; dataBinding?: DataBindingOptions; } interface MapInfoOptions { selectionNamespaces: string; schemas: SchemaOptions[]; maps: MapOptions[]; } interface XmlPropertiesOptions { xmlElement?: string; mapId: number; xpath: string; xmlDataType: string; } interface XmlCellPropertiesOptions { id: number; uniqueName?: string; xmlPr: XmlPropertiesOptions; } interface SingleXmlCellOptions { id: number; r: string; connectionId: number; xmlCellPr: XmlCellPropertiesOptions; } interface XmlColumnPropertiesOptions { xpath: string; xmlDataType: string; mapId: number; denormalized?: boolean; } //#endregion //#region src/shared/media.d.ts interface MediaData { fileName: string; type: string; data: Uint8Array; width: number; height: number; } //#endregion //#region src/util/index.d.ts declare function columnToLetter(col: number): string; declare function dateToSerialNumber(date: Date): number; //#endregion //#region src/compiler.d.ts declare function compileWorkbook(options: WorkbookOptions, overrides?: XmlifyedFile[], mediaLevel?: number): Zippable; //#endregion //#region src/parts/content-types.d.ts declare class ContentTypes { private dynamicEntries; addWorksheet(index: number): void; addChartsheet(index: number): void; addStyles(): void; addSharedStrings(): void; addTheme(index?: number): void; addCustomProperties(): void; addChart(index: number): void; addDrawing(index: number): void; addComments(index: number): void; addVmlDrawing(): void; addImageType(extension: "png" | "jpeg"): void; addPivotTable(index: number): void; addPivotCacheDefinition(index: number): void; addPivotCacheRecords(index: number): void; addTable(index: number): void; addExternalLink(index: number): void; addCalcChain(): void; addDialogsheet(index: number): void; addRevisionHeaders(): void; addRevisionLog(index: number): void; addUsers(): void; addQueryTable(index: number): void; addMetadata(): void; serialize(): string; } //#endregion //#region src/context.d.ts declare class XlsxWriteContext implements WriteContext { sharedStrings: SharedStrings; styles: Styles; media: Media; charts: ChartCollection; contentTypes: ContentTypes; workbookRels: Relationships; pivotCacheRefs: PivotCacheReference[]; addRelationship(type: RelationshipType, target: string, _mode?: string): string; addMedia(_data: Uint8Array, _type: string): string; registerDxf(opts: DxfOptions): number; } declare class XlsxReadContext implements ReadContext { private xlsx; readonly sharedStrings: string[]; parsedStyles?: StylesParseResult; constructor(xlsx: XlsxDocument, sharedStrings?: string[]); resolveRelationship(rId: string): string | undefined; resolveWorksheetRel(wsPath: string, rId: string): string | undefined; getWorksheetRelsByType(wsPath: string, typeFragment: string): Array<{ rId: string; target: string; }>; getPart(path: string): Element | undefined; getRaw(path: string): Uint8Array | undefined; resolveStyle(styleIndex: number): StyleOptions | undefined; } //#endregion export { type AlignmentOptions, type AnchorType, type BorderOptions, type BorderSideOptions, type CalcChainOptions, type CellOptions, type CfvoOptions, type CfvoType, type ChartsheetDescriptorOptions, type ChartsheetHeaderFooterOptions, type ChartsheetOptions, type ChartsheetPageMargins, type ChartsheetPageSetup, type ChartsheetProtectionOptions, type ColorScaleOptions, type ColumnOptions, type CommentsDocOptions, type CompressionOptions, type ConditionalFormatOptions, type ConditionalFormatRule, type ConnectionOptions, type ConsolidateFunction, type CorePropertiesOptions, type CustomCellStyleOptions, type CustomTableStyleOptions, type CustomWorkbookViewOptions, type DataBarOptions, type DataBindingOptions, type DataValidationOptions, type DatabasePropertiesOptions, type DialogsheetOptions, type DrawingChartOptions, type DrawingImageOptions, type DrawingOptions, type EditAsType, type ExternalBookOptions, type ExternalCellOptions, type ExternalDefinedNameOptions, type ExternalLinkOptions, type ExternalRowOptions, type ExternalSheetDataOptions, type FileRecoveryPropertiesOptions, type FileSharingOptions, type FillOptions, type FontOptions, type FormulaOptions, type FreezePaneOptions, type FutureMetadataOptions, type IconSetOptions, type IconSetType, type IgnoredErrorOptions, type MapInfoOptions, type MapOptions, Media, type MediaData, type MergeCellOptions, type MetadataOptions, type MetadataStringOptions, type MetadataTypeOptions, type OleItemOptions, type OleLinkOptions, type OutputByType, type OutputType, type PackerOptions, type ParameterOptions, type Patch, type PatchWorkbookOptions, type PhoneticPropertiesOptions, type PivotCacheDefDescriptorOptions, type PivotDataField, type PivotFilterOptions, PivotFilterType as PivotFilterTypeValue, type PivotTableDescriptorOptions, type PivotTableOptions, type ProtectedRangeOptions, type QueryTableOptions, type RevisionCellChangeOptions, type RevisionCommentOptions, type RevisionDefinedNameOptions, type RevisionEntry, type RevisionFormattingOptions, type RevisionHeaderEntry, type RevisionHeadersOptions, type RevisionInsertSheetOptions, type RevisionLogOptions, type RevisionMoveOptions, type RevisionRowColumnOptions, type RowOptions, type ScalarValue, type ScenarioCellOptions, type ScenarioDefinition, type ScenarioOptions, type SchemaOptions, SharedStrings, type SharedStringsDocOptions, type SheetBackgroundImageOptions, type SheetProtectionOptions, type SingleXmlCellOptions, type StyleExtensionOptions, type StyleOptions, Styles, type StylesDocOptions, type TableColumnOptions, type TableOptions, type TableStyleInfoOptions, TableType, TotalsRowFunction, type WebPropertiesOptions, type WebPublishingOptions, type WorkbookOptions, type WorkbookProtectionOptions, type WorksheetChartOptions, type WorksheetContext, type WorksheetOptions, type XlsxDocument, type XlsxPartRefs, XlsxReadContext, XlsxWriteContext, type XmlCellPropertiesOptions, type XmlColumnPropertiesOptions, type XmlPropertiesOptions, buildExternalReferencesXml, buildTablePartsXml, stringifyWorksheet as buildWorksheetXml, stringifyWorksheet, calcChainDesc, chartsheetDesc, columnToLetter, commentsDesc, compileWorkbook, createThemeXml, dateToSerialNumber, drawingDesc, externalLinkDesc, generateWorkbook, generateWorkbookStream, generateWorkbookSync, parseWorkbook, parseXlsx, patchWorkbook, pivotCacheDefDesc, pivotCacheRecordsDesc, pivotTableDesc, sharedStringsDesc, stylesDesc, tableDesc, vmlNotesDesc, workbookDesc, worksheetDesc }; //# sourceMappingURL=index.d.mts.map