import { $ as DxfOptions, D as WorksheetOptions, G as PivotSourceData, Q as CustomTableStyleOptions, V as PivotCacheDefinitionOptions, X as ColorsOptions, Z as CustomCellStyleOptions, nt as StyleExtensionOptions } from "./worksheet-C9CP2B97.mjs"; import { AppPropertiesOptions, CorePropertiesOptions, CustomPropertyOptions, UniversalMeasure } from "@office-open/core"; import { CustomDescriptor, WriteContext } from "@office-open/core/descriptor"; //#region src/parts/workbook.d.ts interface SheetDefinition { name: string; sheetId: number; rId: string; state?: "visible" | "hidden" | "veryHidden"; } interface PivotCacheReference { cacheId: number; rId: string; } interface TablePartReference { rId: string; } interface CustomWorkbookViewOptions { name: string; guid: string; windowWidth: number; windowHeight: number; activeSheetId: number; xWindow?: number; yWindow?: number; showFormulaBar?: boolean; showStatusbar?: boolean; showHorizontalScroll?: boolean; showVerticalScroll?: boolean; showSheetTabs?: boolean; tabRatio?: number; includeHiddenRowCol?: boolean; includePrintSettings?: boolean; personalView?: boolean; maximized?: boolean; minimized?: boolean; autoUpdate?: boolean; mergeInterval?: number; changesSavedWin?: boolean; onlySync?: boolean; showComments?: string; } interface WorkbookProtectionOptions { lockStructure?: boolean; lockWindows?: boolean; lockRevision?: boolean; workbookPassword?: string; workbookAlgorithmName?: string; workbookHashValue?: string; workbookSaltValue?: string; workbookSpinCount?: number; revisionsPassword?: string; revisionsAlgorithmName?: string; revisionsHashValue?: string; revisionsSaltValue?: string; revisionsSpinCount?: number; workbookPasswordCharacterSet?: string; revisionsPasswordCharacterSet?: string; } type WorkbookConformance = "strict" | "transitional"; interface FileRecoveryPropertiesOptions { autoRecover?: boolean; crashSave?: boolean; dataExtractLoad?: boolean; repairLoad?: boolean; } interface WebPublishingOptions { css?: boolean; thicket?: boolean; longFileNames?: boolean; vml?: boolean; allowPng?: boolean; targetScreenSize?: string; dpi?: number; codePage?: number; characterSet?: string; } interface FileSharingOptions { readOnlyRecommended?: boolean; userName?: string; reservationPassword?: string; algorithmName?: string; hashValue?: string; saltValue?: string; spinCount?: number; } interface WorkbookPropertiesOptions { date1904?: boolean; defaultThemeVersion?: number; showObjects?: string; hidePivotFieldList?: boolean; allowRefreshQuery?: boolean; filterPrivacy?: boolean; backupFile?: boolean; codeName?: string; showBorderUnselectedTables?: boolean; promptedSolutions?: boolean; showInkAnnotation?: boolean; saveExternalLinkValues?: boolean; updateLinks?: string; showPivotChartFilter?: boolean; publishItems?: boolean; checkCompatibility?: boolean; autoCompressPictures?: boolean; refreshAllConnections?: boolean; } interface VolTypeOptions { type?: "realTimeData" | "olapFunctions"; mains?: VolMainOptions[]; } interface VolMainOptions { first: string; topics?: VolTopicOptions[]; } interface VolTopicOptions { value: string; valueType?: string; stringTopics?: string[]; refs?: VolTopicRefOptions[]; } interface VolTopicRefOptions { reference: string; sheetIndex: number; } interface WebPublishObjectOptions { rId: string; destinationFile?: string; autoRepublish?: boolean; title?: string; sourceObject?: string; appName?: string; } interface CalculationPropertiesOptions { calcMode?: string; calcId?: number; fullCalcOnLoad?: boolean; calcOnSave?: boolean; forceFullCalc?: boolean; concurrentCalc?: boolean; concurrentManualCount?: number; iterate?: boolean; iterateCount?: number; iterateDelta?: number; refMode?: string; fullPrecision?: boolean; calcCompleted?: boolean; } interface WorkbookViewOptions { activeTab?: number; autoFilterDateGrouping?: boolean; firstSheet?: number; showHorizontalScroll?: boolean; showSheetTabs?: boolean; showVerticalScroll?: boolean; tabRatio?: number; windowWidth?: number; windowHeight?: number; xWindow?: number; yWindow?: number; } interface WorkbookDescriptorOptions { sheets: SheetDefinition[]; pivotCaches?: PivotCacheReference[]; protection?: WorkbookProtectionOptions; customViews?: CustomWorkbookViewOptions[]; fileRecoveryPr?: FileRecoveryPropertiesOptions; functionGroups?: string[]; webPublishing?: WebPublishingOptions; fileSharing?: FileSharingOptions; workbookPr?: WorkbookPropertiesOptions; calcPr?: CalculationPropertiesOptions; bookView?: WorkbookViewOptions; volTypes?: VolTypeOptions[]; webPublishObjects?: WebPublishObjectOptions[]; conformance?: WorkbookConformance; } declare const workbookDesc: CustomDescriptor; declare function buildTablePartsXml(tableParts: TablePartReference[]): string; declare function buildExternalReferencesXml(refs: { rId: string; }[]): string; //#endregion //#region src/parts/calc-chain.d.ts interface CalcCell { reference: string; sheetIndex: number; array?: boolean; } interface CalcChainOptions { cells: CalcCell[]; } declare const calcChainDesc: CustomDescriptor; //#endregion //#region src/parts/chartsheet.d.ts interface ChartsheetPageMargins { left?: number | UniversalMeasure; right?: number | UniversalMeasure; top?: number | UniversalMeasure; bottom?: number | UniversalMeasure; header?: number | UniversalMeasure; footer?: number | UniversalMeasure; } interface ChartsheetPageSetup { paperSize?: number; orientation?: string; horizontalDpi?: number; verticalDpi?: number; copies?: number; } interface ChartsheetProtectionOptions { content?: boolean; objects?: boolean; } interface ChartsheetHeaderFooterOptions { differentFirst?: boolean; differentOddEven?: boolean; oddHeader?: string; oddFooter?: string; } interface ChartsheetOptions { name?: string; tabColor?: string; pageMargins?: ChartsheetPageMargins; pageSetup?: ChartsheetPageSetup; headerFooter?: ChartsheetHeaderFooterOptions; sheetProtection?: ChartsheetProtectionOptions; published?: boolean; zoomToFit?: boolean; chart: { type: string; title?: string; categories?: string[]; series: { name: string; values: number[]; }[]; }; } interface ChartsheetDescriptorOptions extends ChartsheetOptions { drawingRId: string; } declare const chartsheetDesc: CustomDescriptor; //#endregion //#region src/parts/external-link.d.ts interface ExternalDefinedNameOptions { name: string; refersTo?: string; sheetId?: number; publishToServer?: boolean; vbProcedure?: boolean; workbookParameter?: boolean; xlm?: boolean; } interface ExternalCellOptions { reference: string; type?: string; value?: string; } interface ExternalBookOptions { target?: string; sheetNames?: string[]; definedNames?: ExternalDefinedNameOptions[]; sheetDataSet?: ExternalSheetDataOptions[]; } interface ExternalRowOptions { rowNumber: number; cells?: ExternalCellOptions[]; } interface ExternalSheetDataOptions { sheetId: number; refreshError?: boolean; rows?: ExternalRowOptions[]; } interface ExternalLinkOptions { externalBook?: ExternalBookOptions; bookRId?: string; oleLink?: OleLinkOptions; oleRId?: string; } interface OleItemOptions { name: string; advise?: boolean; prefer?: boolean; } interface OleLinkOptions { oleItems?: OleItemOptions[]; } declare const externalLinkDesc: CustomDescriptor; //#endregion //#region src/parts/pivot-cache.d.ts type PivotCacheRecordEntry = { type: "string"; v: number; } | { type: "number"; v: number; } | { type: "date"; v: string; } | { type: "missing"; }; interface PivotCacheRecordsDescriptorOptions { sourceData: PivotSourceData; records?: PivotCacheRecordEntry[][]; } interface PivotCacheDefDescriptorOptions { sourceRef: string; sourceSheet: string; sourceData: PivotSourceData; recordsRid: string; cacheDefOpts?: PivotCacheDefinitionOptions; } interface PivotCacheDefWorksheetSource { ref?: string; sheet?: string; } interface PivotCacheDefCacheField { name?: string; numFmtId?: number; sharedItems?: (string | number)[]; } interface PivotCacheDefParseResult { invalid?: boolean; saveData?: boolean; optimizeMemory?: boolean; enableRefresh?: boolean; refreshedBy?: string; refreshedDate?: number; refreshedDateIso?: string; backgroundQuery?: boolean; missingItemsLimit?: number; upgradeOnRefresh?: boolean; supportSubquery?: boolean; supportAdvancedDrill?: boolean; recordCount?: number; sourceType?: string; worksheetSource?: PivotCacheDefWorksheetSource; cacheFields?: PivotCacheDefCacheField[]; } interface PivotCacheRecordsParseResult { records: PivotCacheRecordEntry[][]; } declare const pivotCacheDefDesc: CustomDescriptor; declare const pivotCacheRecordsDesc: CustomDescriptor; //#endregion //#region src/parts/revision-log.d.ts type RowColumnAction = "insertRow" | "deleteRow" | "insertCol" | "deleteCol"; type RevisionAction = "add" | "delete"; interface RevisionHeaderEntry { guid: string; dateTime: string; userName: string; rId: string; maxSheetId: number; sheetIds: number[]; reviewed?: number[]; minRId?: number; maxRId?: number; } interface RevisionHeadersOptions { guid: string; headers: RevisionHeaderEntry[]; lastGuid?: string; shared?: boolean; diskRevisions?: boolean; history?: boolean; trackRevisions?: boolean; exclusive?: boolean; revisionId?: number; version?: number; keepChangeHistory?: boolean; protected?: boolean; preserveHistory?: number; } interface SharedUserOptions { guid: string; name: string; id: number; dateTime: string; } interface UsersOptions { users?: SharedUserOptions[]; } interface RevisionRowColumnOptions { rId: number; sheetId: number; ref: string; action: RowColumnAction; endOfList?: boolean; edge?: boolean; undo?: boolean; rejected?: boolean; childrenXml?: string; } interface RevisionMoveOptions { rId: number; sheetId: number; source: string; destination: string; sourceSheetId?: number; undo?: boolean; rejected?: boolean; childrenXml?: string; } interface RevisionCustomViewOptions { guid: string; action: RevisionAction; } interface RevisionSheetRenameOptions { rId: number; sheetId: number; oldName: string; newName: string; undo?: boolean; rejected?: boolean; } interface RevisionInsertSheetOptions { rId: number; sheetId: number; name: string; sheetPosition: number; undo?: boolean; rejected?: boolean; } interface RevisionCellChangeOptions { rId: number; sheetId: number; hasOldDxf?: boolean; xfDxf?: boolean; style?: boolean; hasDxf?: boolean; numFmtId?: number; quotePrefix?: boolean; oldQuotePrefix?: boolean; phonetic?: boolean; oldPhonetic?: boolean; endOfListFormulaUpdate?: boolean; undo?: boolean; rejected?: boolean; oldCellXml?: string; newCellXml: string; oldDxfXml?: string; newDxfXml?: string; } interface RevisionFormattingOptions { sheetId: number; sqref: string; xfDxf?: boolean; style?: boolean; start?: number; length?: number; dxfXml?: string; } interface RevisionAutoFormattingOptions { sheetId: number; ref: string; autoFormatXml?: string; } interface RevisionDefinedNameOptions { rId: number; name: string; localSheetId?: number; customView?: boolean; formula?: string; oldFormula?: string; function?: boolean; oldFunction?: boolean; functionGroupId?: number; oldFunctionGroupId?: number; shortcutKey?: number; oldShortcutKey?: number; hidden?: boolean; oldHidden?: boolean; customMenu?: string; oldCustomMenu?: string; description?: string; oldDescription?: string; help?: string; oldHelp?: string; statusBar?: string; oldStatusBar?: string; comment?: string; oldComment?: string; undo?: boolean; rejected?: boolean; } interface RevisionCommentOptions { sheetId: number; cell: string; guid: string; action?: RevisionAction; alwaysShow?: boolean; old?: boolean; hiddenRow?: boolean; hiddenColumn?: boolean; author: string; oldLength?: number; newLength?: number; } interface RevisionQueryTableFieldOptions { sheetId: number; ref: string; fieldId: number; } interface RevisionConflictOptions { rId: number; undo?: boolean; rejected?: boolean; sheetId?: number; } type RevisionEntry = { type: "rowColumn"; data: RevisionRowColumnOptions; } | { type: "move"; data: RevisionMoveOptions; } | { type: "customView"; data: RevisionCustomViewOptions; } | { type: "sheetRename"; data: RevisionSheetRenameOptions; } | { type: "insertSheet"; data: RevisionInsertSheetOptions; } | { type: "cellChange"; data: RevisionCellChangeOptions; } | { type: "formatting"; data: RevisionFormattingOptions; } | { type: "autoFormatting"; data: RevisionAutoFormattingOptions; } | { type: "definedName"; data: RevisionDefinedNameOptions; } | { type: "comment"; data: RevisionCommentOptions; } | { type: "queryTableField"; data: RevisionQueryTableFieldOptions; } | { type: "conflict"; data: RevisionConflictOptions; }; interface RevisionLogOptions { revisions: RevisionEntry[]; } //#endregion //#region src/parts/file.d.ts interface WorkbookOptions extends CorePropertiesOptions { worksheets?: WorksheetOptions[]; chartsheets?: ChartsheetOptions[]; dxfs?: DxfOptions[]; colors?: ColorsOptions; tableStyles?: CustomTableStyleOptions[]; cellStyles?: CustomCellStyleOptions[]; styleExtensions?: StyleExtensionOptions[]; workbookProtection?: WorkbookProtectionOptions; externalLinks?: ExternalLinkOptions[]; customWorkbookViews?: CustomWorkbookViewOptions[]; fileRecoveryPr?: FileRecoveryPropertiesOptions; functionGroups?: string[]; webPublishing?: WebPublishingOptions; fileSharing?: FileSharingOptions; volTypes?: VolTypeOptions[]; webPublishObjects?: WebPublishObjectOptions[]; bookView?: WorkbookViewOptions; calcPr?: CalculationPropertiesOptions; workbookPr?: WorkbookPropertiesOptions; calcChain?: CalcCell[]; pivotCaches?: PivotCacheDefParseResult[]; pivotCacheRecords?: PivotCacheRecordsParseResult[]; appProperties?: AppPropertiesOptions; customProperties?: CustomPropertyOptions[]; revisionLog?: SharedWorkbookOptions; } interface SharedWorkbookOptions { headers: RevisionHeadersOptions; logs: RevisionLogOptions[]; users?: UsersOptions; } //#endregion export { ChartsheetProtectionOptions as A, buildExternalReferencesXml as B, OleLinkOptions as C, ChartsheetOptions as D, ChartsheetHeaderFooterOptions as E, FileRecoveryPropertiesOptions as F, workbookDesc as H, FileSharingOptions as I, PivotCacheReference as L, CalcChainOptions as M, calcChainDesc as N, ChartsheetPageMargins as O, CustomWorkbookViewOptions as P, WebPublishingOptions as R, OleItemOptions as S, ChartsheetDescriptorOptions as T, buildTablePartsXml as V, ExternalCellOptions as _, RevisionEntry as a, ExternalRowOptions as b, RevisionHeadersOptions as c, RevisionMoveOptions as d, RevisionRowColumnOptions as f, ExternalBookOptions as g, pivotCacheRecordsDesc as h, RevisionDefinedNameOptions as i, chartsheetDesc as j, ChartsheetPageSetup as k, RevisionInsertSheetOptions as l, pivotCacheDefDesc as m, RevisionCellChangeOptions as n, RevisionFormattingOptions as o, PivotCacheDefDescriptorOptions as p, RevisionCommentOptions as r, RevisionHeaderEntry as s, WorkbookOptions as t, RevisionLogOptions as u, ExternalDefinedNameOptions as v, externalLinkDesc as w, ExternalSheetDataOptions as x, ExternalLinkOptions as y, WorkbookProtectionOptions as z }; //# sourceMappingURL=file-Clpwutq2.d.mts.map