@rosperitus/excelerate 0.8.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/excelerate.d.ts CHANGED
@@ -1,6 +1,41 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
+ /**
5
+ * A style to write, as `setCellStyle` takes it. Every field is optional and
6
+ * what is left out keeps the value the cell had, so `{ font: { bold: true } }`
7
+ * makes a cell bold without touching its number format.
8
+ */
9
+ export interface CellStylePatch {
10
+ numberFormat?: string;
11
+ font?: Partial<{
12
+ name: string;
13
+ size: number;
14
+ bold: boolean;
15
+ italic: boolean;
16
+ underline: string;
17
+ strike: boolean;
18
+ color: StyleColor;
19
+ }>;
20
+ fill?: Partial<{ pattern: string; foreground: StyleColor; background: StyleColor }>;
21
+ borders?: Partial<{
22
+ left: Partial<BorderSide>;
23
+ right: Partial<BorderSide>;
24
+ top: Partial<BorderSide>;
25
+ bottom: Partial<BorderSide>;
26
+ }>;
27
+ alignment?: Partial<{
28
+ horizontal: string | null;
29
+ vertical: string | null;
30
+ wrapText: boolean;
31
+ shrinkToFit: boolean;
32
+ indent: number;
33
+ textRotation: number;
34
+ }>;
35
+ }
36
+
37
+
38
+
4
39
  /** What a cell can hold on the JS side. An error cell reads as its code, `#DIV/0!`. */
5
40
  export type CellValue = number | string | boolean | null;
6
41
  /** A rectangle of cells, row by row, as `getRange` returns it. */
@@ -16,6 +51,109 @@ export interface SheetRow {
16
51
  indent: Uint32Array;
17
52
  hidden: boolean;
18
53
  }
54
+ /** Where a drawing object sits, in the 1-based numbers a user sees. */
55
+ export interface ObjectAnchor {
56
+ kind: "twoCell" | "oneCell" | "absolute";
57
+ row: number | null;
58
+ column: number | null;
59
+ }
60
+ /** How a sheet is frozen and shown, as `sheetView` returns it. */
61
+ export interface SheetViewInfo {
62
+ frozenRows: number;
63
+ frozenColumns: number;
64
+ zoom: number | null;
65
+ showGridLines: boolean;
66
+ showRowColHeaders: boolean;
67
+ rightToLeft: boolean;
68
+ topLeftCell: string | null;
69
+ }
70
+ /** A name that stands for a formula, as `definedNames` returns it. */
71
+ export interface WorkbookName {
72
+ name: string;
73
+ formula: string;
74
+ sheet: number | null;
75
+ hidden: boolean;
76
+ }
77
+ /** A rule limiting what a cell accepts, as `dataValidations` returns it. */
78
+ export interface SheetValidation {
79
+ sqref: string[];
80
+ type: string;
81
+ operator: string;
82
+ formula1: string;
83
+ formula2: string;
84
+ allowBlank: boolean;
85
+ showDropDown: boolean;
86
+ }
87
+ /** One conditional formatting block, as `conditionalFormats` returns it. */
88
+ export interface SheetConditionalFormat {
89
+ sqref: string[];
90
+ rules: { type: string; priority: number; operator: string | null; formulas: string[]; text: string | null }[];
91
+ }
92
+ /** The autofilter over a range, as `autoFilter` returns it. */
93
+ export interface SheetAutoFilter {
94
+ range: string;
95
+ columns: { colId: number; kind: "values" | "custom" | "dynamic" | "top10" | "none" }[];
96
+ }
97
+ /** A pivot report on the sheet, as `pivotTables` returns it. */
98
+ export interface SheetPivotTable {
99
+ name: string;
100
+ location: string | null;
101
+ cacheId: number;
102
+ rowFields: number;
103
+ columnFields: number;
104
+ valueFields: number;
105
+ }
106
+ /** How a sheet or the workbook is locked, as `sheetProtection` returns it. */
107
+ export interface ProtectionInfo { locked: boolean; hasPassword: boolean }
108
+ /** How `toCsv` writes, and how `Book.readCsv` reads. */
109
+ export interface CsvOptions {
110
+ delimiter?: string;
111
+ contiguous?: boolean;
112
+ preserveEmptyFields?: boolean;
113
+ }
114
+ /** A note on a cell, as `comments` returns it. */
115
+ export interface SheetComment { address: string; author: string; text: string }
116
+ /** A link over a cell or a block of them, as `hyperlinks` returns it. */
117
+ export interface SheetHyperlink {
118
+ range: string;
119
+ target: string;
120
+ external: boolean;
121
+ display: string | null;
122
+ tooltip: string | null;
123
+ }
124
+ /** A table over a block of cells, as `tables` returns it. */
125
+ export interface SheetTable {
126
+ name: string;
127
+ displayName: string;
128
+ range: string;
129
+ headerRowCount: number | null;
130
+ totalsRowCount: number | null;
131
+ columns: string[];
132
+ }
133
+ /** A chart on the sheet, as `charts` returns it. */
134
+ export interface SheetChart {
135
+ name: string;
136
+ title: string | null;
137
+ kinds: string[];
138
+ seriesCount: number;
139
+ anchor: ObjectAnchor;
140
+ }
141
+ /** A picture on the sheet, as `images` returns it. Bytes come from `imageData`. */
142
+ export interface SheetImage {
143
+ name: string;
144
+ description: string;
145
+ format: string;
146
+ byteLength: number;
147
+ anchor: ObjectAnchor;
148
+ }
149
+ /** A drawn shape, as `shapes` returns it. */
150
+ export interface SheetShape {
151
+ name: string;
152
+ description: string;
153
+ geometry: string | null;
154
+ text: string;
155
+ anchor: ObjectAnchor;
156
+ }
19
157
  /**
20
158
  * A colour as the file states it: `null` when the file leaves it to the
21
159
  * reader, `#AARRGGBB` when it names one outright, and `indexed:N` or
@@ -70,6 +208,24 @@ export class Book {
70
208
  * Appends a sheet and returns its index.
71
209
  */
72
210
  addSheet(title: string): number;
211
+ /**
212
+ * Draws a table over a range, the thing `Sales[Amount]` names.
213
+ *
214
+ * The first row of the range is the header unless `headerRow` says
215
+ * otherwise, and the column names are read from it. The name must be
216
+ * unique in the workbook, as Excel requires.
217
+ */
218
+ addTable(sheet: number, name: string, range: string, header_row?: boolean | null): void;
219
+ /**
220
+ * The array formulas of a sheet, as the areas they cover: `["B2:B4"]`.
221
+ * The formula itself is on the top left cell of each.
222
+ */
223
+ arrayFormulas(sheet: number): string[];
224
+ /**
225
+ * The autofilter over a sheet, or `undefined` when it has none. What the
226
+ * filter hides is a property of each row - see `rowHidden`.
227
+ */
228
+ autoFilter(sheet: number): SheetAutoFilter | undefined;
73
229
  /**
74
230
  * Whether a cell is bold.
75
231
  *
@@ -110,6 +266,11 @@ export class Book {
110
266
  * The same by 1-based row and column.
111
267
  */
112
268
  cellStyleAt(sheet: number, row: number, column: number): CellStyle;
269
+ /**
270
+ * The charts on a sheet. `kinds` names the plots drawn in each -
271
+ * `barChart`, `lineChart` - and a combination chart has more than one.
272
+ */
273
+ charts(sheet: number): SheetChart[];
113
274
  /**
114
275
  * Empties a cell, style and all.
115
276
  */
@@ -122,11 +283,55 @@ export class Book {
122
283
  * The same for a column, named by its letters: `columnLevel(0, "C")`.
123
284
  */
124
285
  columnLevel(sheet: number, column: string): number;
286
+ /**
287
+ * The width of a column in characters, or `undefined` when the sheet
288
+ * leaves it to the default. `column` is 1-based.
289
+ */
290
+ columnWidth(sheet: number, column: number): number | undefined;
291
+ /**
292
+ * The notes on a sheet, in address order.
293
+ */
294
+ comments(sheet: number): SheetComment[];
295
+ /**
296
+ * The conditional formatting of a sheet, block by block. The formatting
297
+ * each rule applies is not modelled here - it lives in the workbook's
298
+ * differential styles - but what the rule tests is.
299
+ */
300
+ conditionalFormats(sheet: number): SheetConditionalFormat[];
301
+ /**
302
+ * Copies a rectangle of cells so its top left corner lands on `to`,
303
+ * rewriting the formulas as Excel rewrites a copied formula: `=A1` one
304
+ * row down reads `=A2`, `$A$1` stays put.
305
+ *
306
+ * `toSheet` defaults to the sheet copied from. A cell the source leaves
307
+ * empty empties the target, the way pasting a block does.
308
+ */
309
+ copyRange(sheet: number, range: string, to: string, to_sheet?: number | null): void;
310
+ /**
311
+ * The rules limiting what cells accept: the dropdown lists, the ranges,
312
+ * the dates.
313
+ */
314
+ dataValidations(sheet: number): SheetValidation[];
315
+ /**
316
+ * The names the workbook defines: what `=Total` and `Print_Area` stand
317
+ * for. `sheet` is set on a name local to one sheet.
318
+ */
319
+ definedNames(): WorkbookName[];
125
320
  /**
126
321
  * Evaluates a formula (with or without the leading `=`) as if it sat in
127
322
  * `address` of `sheet`, and returns its result.
128
323
  */
129
324
  evaluate(sheet: number, address: string, formula: string): CellValue;
325
+ /**
326
+ * The other workbooks this one reads, in the order `[1]Sheet1!A1` counts
327
+ * them. A path is `undefined` where the file does not name one.
328
+ */
329
+ externalBooks(): any[];
330
+ /**
331
+ * Freezes the first `rows` rows and `columns` columns, so they stay put
332
+ * while the rest scrolls. `freezePanes(0, 1, 0)` pins the header row.
333
+ */
334
+ freezePanes(sheet: number, rows: number, columns: number): void;
130
335
  /**
131
336
  * Reads an xlsx package from its bytes.
132
337
  */
@@ -183,6 +388,42 @@ export class Book {
183
388
  * `null`; `getFormattedAt` still answers for the cells that need it.
184
389
  */
185
390
  getRowAt(sheet: number, row: number, formatted?: boolean | null): SheetRow;
391
+ /**
392
+ * The hyperlinks of a sheet. `external` tells a URL from a jump inside
393
+ * the workbook.
394
+ */
395
+ hyperlinks(sheet: number): SheetHyperlink[];
396
+ /**
397
+ * The bytes of one picture, by its position in `images`.
398
+ */
399
+ imageData(sheet: number, index: number): Uint8Array;
400
+ /**
401
+ * The pictures on a sheet, without their bytes: `imageData` fetches those
402
+ * for the one that is wanted.
403
+ */
404
+ images(sheet: number): SheetImage[];
405
+ /**
406
+ * Inserts blank cells over a range, pushing what was there `"down"` or
407
+ * `"right"` - Excel's "Insert Cells", which moves part of a row rather
408
+ * than the whole of it.
409
+ */
410
+ insertCells(sheet: number, range: string, shift: string): void;
411
+ /**
412
+ * Inserts `count` columns to the left of column `at`, 1-based.
413
+ */
414
+ insertColumns(sheet: number, at: number, count: number): void;
415
+ /**
416
+ * Inserts `count` rows above row `at`, moving everything below down.
417
+ *
418
+ * Formulas across the whole workbook follow the cells they read, and so
419
+ * do merges, links, validations, tables and drawings. `at` is the number
420
+ * a user sees.
421
+ */
422
+ insertRows(sheet: number, at: number, count: number): void;
423
+ /**
424
+ * Merges a block of cells: `merge(0, "A1:C1")`.
425
+ */
426
+ merge(sheet: number, range: string): void;
186
427
  /**
187
428
  * The merged areas of a sheet, as `"A1:C1"` strings in the order the file
188
429
  * lists them.
@@ -196,10 +437,44 @@ export class Book {
196
437
  * carrying three hundred thousand of them needs.
197
438
  */
198
439
  mergedRangesAt(sheet: number): Uint32Array;
440
+ /**
441
+ * Moves a rectangle of cells, leaving the source empty.
442
+ *
443
+ * A moved formula keeps reading the cells it read; the formulas elsewhere
444
+ * that read *these* cells follow them instead, as they do when Excel cuts
445
+ * and pastes.
446
+ */
447
+ moveRange(sheet: number, range: string, to: string, to_sheet?: number | null): void;
448
+ /**
449
+ * Moves a sheet along the tab bar. Formulas are untouched - a sheet is
450
+ * named, not numbered - but every index moves, this one included, so read
451
+ * `sheetIndex` again afterwards.
452
+ */
453
+ moveSheet(from: number, to: number): void;
199
454
  /**
200
455
  * A new workbook with one empty sheet.
201
456
  */
202
457
  constructor();
458
+ /**
459
+ * The pivot reports laid out on a sheet. The numbers they show are cells
460
+ * like any others; this says where a report sits and how wide its axes
461
+ * are.
462
+ */
463
+ pivotTables(sheet: number): SheetPivotTable[];
464
+ /**
465
+ * Locks a sheet against editing, optionally behind a password.
466
+ *
467
+ * This is the lock Excel offers under "Protect Sheet": it stops a user
468
+ * editing, it does not encrypt anything. The password is stored as Excel
469
+ * stores it - SHA-512 over a random salt, 100,000 spins - and
470
+ * `verifySheetPassword` checks it back.
471
+ */
472
+ protectSheet(sheet: number, password?: string | null): void;
473
+ /**
474
+ * Locks the structure of the workbook: which sheets there are, and their
475
+ * order. `windows` locks the window layout as well.
476
+ */
477
+ protectWorkbook(password?: string | null, windows?: boolean | null): void;
203
478
  /**
204
479
  * Reads a workbook of any format this crate supports, working the format
205
480
  * out from the bytes themselves.
@@ -209,6 +484,15 @@ export class Book {
209
484
  * the sheet of a SYLK file.
210
485
  */
211
486
  static read(bytes: Uint8Array, name?: string | null, max_expanded?: number | null, on_progress?: Function | null): Book;
487
+ /**
488
+ * Reads CSV with the guesses overridden: the delimiter, whether a row
489
+ * that produced no cell is skipped, whether an empty field becomes an
490
+ * empty string rather than no cell at all.
491
+ *
492
+ * `Book.read` guesses all of this from the bytes, which is right for a
493
+ * file of unknown origin; this is for one whose shape you already know.
494
+ */
495
+ static readCsv(bytes: Uint8Array, options: CsvOptions): Book;
212
496
  /**
213
497
  * Recomputes every formula and stores the results beside them, so that
214
498
  * `get` and `toCsv` show this engine's answers rather than the cache the
@@ -272,10 +556,51 @@ export class Book {
272
556
  * The names registered, in no particular order.
273
557
  */
274
558
  registeredFunctions(): string[];
559
+ /**
560
+ * Removes the cells of a range, pulling the rest back over the hole from
561
+ * below (`"up"`) or from the right (`"left"`).
562
+ */
563
+ removeCells(sheet: number, range: string, shift: string): void;
564
+ /**
565
+ * Removes `count` columns from column `at`, 1-based.
566
+ */
567
+ removeColumns(sheet: number, at: number, count: number): void;
568
+ /**
569
+ * Takes a note off a cell. Answers whether there was one.
570
+ */
571
+ removeComment(sheet: number, address: string): boolean;
572
+ /**
573
+ * Removes a defined name. Answers whether there was one.
574
+ */
575
+ removeDefinedName(name: string, sheet?: number | null): boolean;
576
+ /**
577
+ * Takes the link off a range. Answers whether there was one.
578
+ */
579
+ removeHyperlink(sheet: number, range: string): boolean;
580
+ /**
581
+ * Removes `count` rows from row `at` down. A formula that read a removed
582
+ * cell reads `#REF!` afterwards.
583
+ */
584
+ removeRows(sheet: number, at: number, count: number): void;
585
+ /**
586
+ * Removes a sheet. References to it from anywhere in the workbook become
587
+ * `#REF!`, the way Excel writes them, and the sheets after it shift down
588
+ * by one index.
589
+ */
590
+ removeSheet(sheet: number): void;
591
+ /**
592
+ * Removes a table by name. Answers whether there was one.
593
+ */
594
+ removeTable(sheet: number, name: string): boolean;
275
595
  /**
276
596
  * Renames a sheet.
277
597
  */
278
598
  renameSheet(sheet: number, title: string): void;
599
+ /**
600
+ * The height of a row in points, or `undefined` when the sheet leaves it
601
+ * to the default. `row` is the number a user sees.
602
+ */
603
+ rowHeight(sheet: number, row: number): number | undefined;
279
604
  /**
280
605
  * Whether a row is hidden. `row` is the number a user sees.
281
606
  */
@@ -298,6 +623,58 @@ export class Book {
298
623
  * The same by 1-based row and column.
299
624
  */
300
625
  setAt(sheet: number, row: number, column: number, value: CellValue): void;
626
+ /**
627
+ * Paints a cell: a number format, a font, a fill, borders, alignment, or
628
+ * any part of those.
629
+ *
630
+ * The patch is laid over the style the cell has, so a field left out
631
+ * keeps what was there - `{ font: { bold: true } }` does not reset the
632
+ * number format. Equal styles share one entry in the workbook's table,
633
+ * so painting a column costs one style, not one per cell.
634
+ *
635
+ * ```js
636
+ * book.setCellStyle(0, "B2", {
637
+ * numberFormat: "#,##0.00",
638
+ * font: { bold: true, color: "#FF1F4E79" },
639
+ * fill: { pattern: "solid", foreground: "#FFFFE699" },
640
+ * alignment: { horizontal: "right" },
641
+ * });
642
+ * ```
643
+ */
644
+ setCellStyle(sheet: number, address: string, patch: CellStylePatch): void;
645
+ /**
646
+ * The same by 1-based row and column.
647
+ */
648
+ setCellStyleAt(sheet: number, row: number, column: number, patch: CellStylePatch): void;
649
+ /**
650
+ * Hides a column, or shows it again. `column` is 1-based.
651
+ */
652
+ setColumnHidden(sheet: number, column: number, hidden: boolean): void;
653
+ /**
654
+ * Sets the width of a column in characters of the default font, or gives
655
+ * it back to the sheet default with `undefined`. `column` is 1-based.
656
+ *
657
+ * A run of columns that covered this one is split around it, so the
658
+ * neighbours keep the width they had.
659
+ */
660
+ setColumnWidth(sheet: number, column: number, width?: number | null): void;
661
+ /**
662
+ * Puts a note on a cell, replacing any note already there.
663
+ */
664
+ setComment(sheet: number, address: string, author: string, text: string): void;
665
+ /**
666
+ * Defines a name, replacing one of the same name. `formula` is what it
667
+ * stands for - `Sheet1!$A$1:$A$9` or a constant - and `sheet` makes the
668
+ * name local to that sheet instead of the workbook.
669
+ */
670
+ setDefinedName(name: string, formula: string, sheet?: number | null): void;
671
+ /**
672
+ * Puts a link over a cell or a block of them.
673
+ *
674
+ * `target` is a URL or a file path unless `inside` is true, and then it
675
+ * is a place in this workbook: `'Sheet 2'!A1`.
676
+ */
677
+ setHyperlink(sheet: number, range: string, target: string, inside?: boolean | null, display?: string | null, tooltip?: string | null): void;
301
678
  /**
302
679
  * Writes a rectangle of values with `at` as its top-left corner. Rows may
303
680
  * differ in length; a `null` leaves its cell empty.
@@ -307,6 +684,44 @@ export class Book {
307
684
  * The same with the corner given as 1-based row and column.
308
685
  */
309
686
  setRangeAt(sheet: number, row: number, column: number, values: CellGrid): void;
687
+ /**
688
+ * The same over a rectangle: `setRangeStyle(0, "A1:D1", { font: { bold:
689
+ * true } })`. Cells the range covers but the sheet has no value for are
690
+ * created empty, which is what carries the style.
691
+ */
692
+ setRangeStyle(sheet: number, range: string, patch: CellStylePatch): void;
693
+ /**
694
+ * Sets the height of a row in points, or gives it back to the sheet
695
+ * default with `undefined`. `row` is the number a user sees.
696
+ */
697
+ setRowHeight(sheet: number, row: number, height?: number | null): void;
698
+ /**
699
+ * Hides a row, or shows it again.
700
+ */
701
+ setRowHidden(sheet: number, row: number, hidden: boolean): void;
702
+ /**
703
+ * Gives a sheet a tab or takes it away: `"visible"`, `"hidden"` or
704
+ * `"veryHidden"`.
705
+ *
706
+ * A very hidden sheet is not in the dialog Excel offers for unhiding one.
707
+ * Either way the sheet keeps its index, which is what every other call
708
+ * counts.
709
+ */
710
+ setSheetVisibility(sheet: number, state: string): void;
711
+ /**
712
+ * Shows or hides the grid lines, and the row and column headings with
713
+ * `headers`.
714
+ */
715
+ setShowGridLines(sheet: number, show: boolean, headers?: boolean | null): void;
716
+ /**
717
+ * The zoom a reader opens the sheet at, in percent; `undefined` gives it
718
+ * back to 100.
719
+ */
720
+ setZoom(sheet: number, percent?: number | null): void;
721
+ /**
722
+ * The drawn shapes of a sheet, text and all.
723
+ */
724
+ shapes(sheet: number): SheetShape[];
310
725
  /**
311
726
  * The tab index of a sheet by name, or `undefined` when there is none.
312
727
  * Names are compared the way Excel does, ignoring case.
@@ -316,6 +731,14 @@ export class Book {
316
731
  * Sheet titles, in tab order.
317
732
  */
318
733
  sheetNames(): string[];
734
+ /**
735
+ * Whether a sheet is locked, and whether the lock has a password.
736
+ */
737
+ sheetProtection(sheet: number): ProtectionInfo;
738
+ /**
739
+ * How the sheet is frozen and shown.
740
+ */
741
+ sheetView(sheet: number): SheetViewInfo;
319
742
  /**
320
743
  * Whether a sheet has a tab: `"visible"`, `"hidden"` or `"veryHidden"`.
321
744
  *
@@ -324,9 +747,19 @@ export class Book {
324
747
  */
325
748
  sheetVisibility(sheet: number): string;
326
749
  /**
327
- * One sheet as CSV.
750
+ * The tables of a sheet: what a structured reference like `Sales[Amount]`
751
+ * names.
752
+ */
753
+ tables(sheet: number): SheetTable[];
754
+ /**
755
+ * One sheet as CSV, comma-separated.
328
756
  */
329
757
  toCsv(sheet: number): string;
758
+ /**
759
+ * The same with the delimiter stated - a semicolon for a locale where the
760
+ * comma is the decimal mark.
761
+ */
762
+ toCsvWith(sheet: number, options: CsvOptions): string;
330
763
  /**
331
764
  * The workbook as an HTML page, or one sheet of it. `fragment` leaves out
332
765
  * the `<html>` wrapper, for embedding in a page that already has one.
@@ -347,6 +780,22 @@ export class Book {
347
780
  * The workbook as an xlsx package.
348
781
  */
349
782
  toXlsx(on_progress?: Function | null): Uint8Array;
783
+ /**
784
+ * Unfreezes the panes. The same as `freezePanes(sheet, 0, 0)`.
785
+ */
786
+ unfreezePanes(sheet: number): void;
787
+ /**
788
+ * Takes a merge back out. Answers whether there was one.
789
+ */
790
+ unmerge(sheet: number, range: string): boolean;
791
+ /**
792
+ * Unlocks a sheet, password and all.
793
+ */
794
+ unprotectSheet(sheet: number): void;
795
+ /**
796
+ * Unlocks the workbook.
797
+ */
798
+ unprotectWorkbook(): void;
350
799
  /**
351
800
  * Forgets a function registered earlier; answers whether there was one.
352
801
  */
@@ -356,4 +805,23 @@ export class Book {
356
805
  * nothing. This is the rectangle to walk; the sheet itself is sparse.
357
806
  */
358
807
  usedRange(sheet: number): string | undefined;
808
+ /**
809
+ * The used range of a sheet as `"A1:D20"`, taken from what the file says
810
+ * rather than from walking the cells; `undefined` when it says nothing.
811
+ *
812
+ * A reader that only needs the shape of a sheet pays nothing for it;
813
+ * `usedRange` walks every cell and answers for a sheet built in memory
814
+ * too, where the file has nothing to say.
815
+ */
816
+ usedRangeHint(sheet: number): string | undefined;
817
+ /**
818
+ * Whether that password unlocks the sheet. `false` for a sheet with no
819
+ * password on it, and for a hash this crate cannot check.
820
+ */
821
+ verifySheetPassword(sheet: number, password: string): boolean;
822
+ /**
823
+ * Whether the workbook's structure is locked, and whether behind a
824
+ * password.
825
+ */
826
+ workbookProtection(): ProtectionInfo;
359
827
  }