@beyondwork/xlsx-substrate-bindings 0.0.0-stage → 0.1.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.
Files changed (50) hide show
  1. package/LICENSE.md +31 -0
  2. package/dist/ai/index.d.ts +2 -0
  3. package/dist/ai/index.js +1 -0
  4. package/dist/ai/types.d.ts +320 -0
  5. package/dist/ai/types.js +23 -0
  6. package/dist/index.d.ts +46 -0
  7. package/dist/index.js +72 -0
  8. package/dist/runtime/index.d.ts +2 -0
  9. package/dist/runtime/index.js +1 -0
  10. package/dist/runtime/types.d.ts +1379 -0
  11. package/dist/runtime/types.js +15 -0
  12. package/dist/shared.d.ts +69 -0
  13. package/dist/shared.js +1 -0
  14. package/dist/ui/index.d.ts +2 -0
  15. package/dist/ui/index.js +1 -0
  16. package/dist/ui/types.d.ts +765 -0
  17. package/dist/ui/types.js +12 -0
  18. package/dist/wasm/bridge-contract.d.ts +541 -0
  19. package/dist/wasm/bridge-contract.js +862 -0
  20. package/dist/wasm/chart-test-fixture.d.ts +19 -0
  21. package/dist/wasm/chart-test-fixture.js +42 -0
  22. package/dist/wasm/index.d.ts +9 -0
  23. package/dist/wasm/index.js +67 -0
  24. package/dist/wasm/media-test-fixture.d.ts +44 -0
  25. package/dist/wasm/media-test-fixture.js +160 -0
  26. package/dist/wasm/session-router.d.ts +98 -0
  27. package/dist/wasm/session-router.js +184 -0
  28. package/dist/wasm/sheet-window-binary-reference.d.ts +9 -0
  29. package/dist/wasm/sheet-window-binary-reference.js +308 -0
  30. package/dist/wasm/sheet-window-binary.d.ts +279 -0
  31. package/dist/wasm/sheet-window-binary.js +636 -0
  32. package/dist/wasm/volatile-test-fixture.d.ts +7 -0
  33. package/dist/wasm/volatile-test-fixture.js +35 -0
  34. package/dist/wasm/web.d.ts +59 -0
  35. package/dist/wasm/web.js +60 -0
  36. package/generated/wasm/package.json +3 -0
  37. package/generated/wasm/sheet-window-binary.mjs +482 -0
  38. package/generated/wasm/snippets/ironcalc_base-89b4f49381e1e289/inline0.js +45 -0
  39. package/generated/wasm/xlsx_substrate_wasm.d.ts +336 -0
  40. package/generated/wasm/xlsx_substrate_wasm.js +2108 -0
  41. package/generated/wasm/xlsx_substrate_wasm_bg.wasm +0 -0
  42. package/generated/wasm/xlsx_substrate_wasm_bg.wasm.d.ts +105 -0
  43. package/generated/wasm-web/package.json +3 -0
  44. package/generated/wasm-web/snippets/ironcalc_base-89b4f49381e1e289/inline0.js +42 -0
  45. package/generated/wasm-web/xlsx_substrate_wasm.d.ts +466 -0
  46. package/generated/wasm-web/xlsx_substrate_wasm.js +2109 -0
  47. package/generated/wasm-web/xlsx_substrate_wasm_bg.wasm +0 -0
  48. package/generated/wasm-web/xlsx_substrate_wasm_bg.wasm.d.ts +105 -0
  49. package/package.json +41 -3
  50. package/README.md +0 -3
@@ -0,0 +1,105 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const bindUiRuntimeSession: (a: number, b: number, c: number, d: number) => [number, number, number];
5
+ export const bindUiSession: (a: number, b: number, c: number, d: number) => [number, number, number];
6
+ export const cancelKernelRun: (a: number, b: number, c: any) => [number, number, number];
7
+ export const classifyUiState: (a: number, b: number) => [number, number, number];
8
+ export const commitApplyFilter: (a: number, b: number, c: any) => [number, number, number];
9
+ export const commitApplySort: (a: number, b: number, c: any) => [number, number, number];
10
+ export const commitCellFormula: (a: number, b: number, c: any) => [number, number, number];
11
+ export const commitCellFormulaInSession: (a: number, b: number, c: any) => [number, number, number];
12
+ export const commitClearFilter: (a: number, b: number, c: any) => [number, number, number];
13
+ export const commitRangeClear: (a: number, b: number, c: any) => [number, number, number];
14
+ export const commitRangeClearInSession: (a: number, b: number, c: any) => [number, number, number];
15
+ export const commitRangeDataValidation: (a: number, b: number, c: any) => [number, number, number];
16
+ export const commitRangeFill: (a: number, b: number, c: any) => [number, number, number];
17
+ export const commitRangeFillInSession: (a: number, b: number, c: any) => [number, number, number];
18
+ export const commitRangeFormat: (a: number, b: number, c: any) => [number, number, number];
19
+ export const commitRangeFormatInSession: (a: number, b: number, c: any) => [number, number, number];
20
+ export const commitRangeHyperlink: (a: number, b: number, c: any) => [number, number, number];
21
+ export const commitRangePaste: (a: number, b: number, c: any) => [number, number, number];
22
+ export const commitRangePasteInSession: (a: number, b: number, c: any) => [number, number, number];
23
+ export const commitRangeTransfer: (a: number, b: number, c: any) => [number, number, number];
24
+ export const commitRangeTransferInSession: (a: number, b: number, c: any) => [number, number, number];
25
+ export const commitReviewComment: (a: number, b: number, c: any) => [number, number, number];
26
+ export const commitSelectionSetClear: (a: number, b: number, c: any) => [number, number, number];
27
+ export const commitSelectionSetFormat: (a: number, b: number, c: any) => [number, number, number];
28
+ export const commitSelectionSetPaste: (a: number, b: number, c: any) => [number, number, number];
29
+ export const commitShiftCells: (a: number, b: number, c: any) => [number, number, number];
30
+ export const commitShiftCellsInSession: (a: number, b: number, c: any) => [number, number, number];
31
+ export const commitTableAppendRow: (a: number, b: number, c: any) => [number, number, number];
32
+ export const commitTableAppendRowInSession: (a: number, b: number, c: any) => [number, number, number];
33
+ export const completeKernelRun: (a: number, b: number, c: any) => [number, number, number];
34
+ export const createKernelBinding: (a: number, b: number, c: any) => [number, number, number];
35
+ export const dataRegionInRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
36
+ export const deleteKernelBinding: (a: number, b: number, c: any) => [number, number, number];
37
+ export const detachKernelOutput: (a: number, b: number, c: any) => [number, number, number];
38
+ export const disposeWorkbookRuntimeSession: (a: number, b: number) => [number, number, number];
39
+ export const explainFormula: (a: number, b: number, c: any) => [number, number, number];
40
+ export const explainRuntimeSessionFormula: (a: number, b: number, c: any) => [number, number, number];
41
+ export const exportRuntimeSessionBytes: (a: number, b: number, c: any) => [number, number, number];
42
+ export const exportRuntimeSessionDelimitedText: (a: number, b: number, c: any) => [number, number, number];
43
+ export const findInRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
44
+ export const getWasmStatus: () => [number, number, number];
45
+ export const goToInRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
46
+ export const inspectWorkbook: (a: number, b: number, c: number, d: number) => [number, number, number];
47
+ export const inspectWorkbookRuntimeSession: (a: number, b: number) => [number, number, number];
48
+ export const listRuntimeSessionScopes: (a: number, b: number, c: any) => [number, number, number];
49
+ export const listScopes: (a: number, b: number, c: any) => [number, number, number];
50
+ export const mergeCells: (a: number, b: number, c: any) => [number, number, number];
51
+ export const mergeCellsInSession: (a: number, b: number, c: any) => [number, number, number];
52
+ export const mutateSheetStructure: (a: number, b: number, c: any) => [number, number, number];
53
+ export const mutateSheetStructureInSession: (a: number, b: number, c: any) => [number, number, number];
54
+ export const mutateSheetTabs: (a: number, b: number, c: any) => [number, number, number];
55
+ export const mutateSheetTabsInSession: (a: number, b: number, c: any) => [number, number, number];
56
+ export const openWorkbookRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
57
+ export const projectViewportHint: (a: number, b: number, c: any) => [number, number, number];
58
+ export const readCompressedContext: (a: number, b: number, c: any) => [number, number, number];
59
+ export const readCompressedDrilldown: (a: number, b: number, c: any) => [number, number, number];
60
+ export const readKernelPanel: (a: number, b: number, c: any) => [number, number, number];
61
+ export const readPreserveOnlyEntities: (a: number, b: number, c: number, d: number) => [number, number, number];
62
+ export const readRuntimeSessionChartBytes: (a: number, b: number, c: number, d: number) => [number, number, number];
63
+ export const readRuntimeSessionCompressedContext: (a: number, b: number, c: any) => [number, number, number];
64
+ export const readRuntimeSessionCompressedDrilldown: (a: number, b: number, c: any) => [number, number, number];
65
+ export const readRuntimeSessionIntegrity: (a: number, b: number) => [number, number, number];
66
+ export const readRuntimeSessionKernelPanel: (a: number, b: number, c: any) => [number, number, number];
67
+ export const readRuntimeSessionMediaBytes: (a: number, b: number, c: number, d: number) => [number, number, number];
68
+ export const readRuntimeSessionOverlayLanes: (a: number, b: number, c: any) => [number, number, number];
69
+ export const readRuntimeSessionPreserveOnlyEntities: (a: number, b: number) => [number, number, number];
70
+ export const readRuntimeSessionSelection: (a: number, b: number, c: any, d: any, e: any, f: any) => [number, number, number];
71
+ export const readRuntimeSessionSelectionSet: (a: number, b: number, c: any) => [number, number, number];
72
+ export const readRuntimeSessionSheetWindow: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
73
+ export const readRuntimeSessionSheetWindowBinary: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
74
+ export const readSelection: (a: number, b: number, c: any, d: any, e: any, f: any) => [number, number, number];
75
+ export const readSelectionSet: (a: number, b: number, c: any) => [number, number, number];
76
+ export const readSheetWindow: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
77
+ export const readWorkflowOverlayLanes: (a: number, b: number, c: any) => [number, number, number];
78
+ export const recalculateFormulas: (a: number, b: number, c: any) => [number, number, number];
79
+ export const recalculateInSession: (a: number, b: number, c: any) => [number, number, number];
80
+ export const resizeColumnWidth: (a: number, b: number, c: any) => [number, number, number];
81
+ export const resizeColumnWidthInSession: (a: number, b: number, c: any) => [number, number, number];
82
+ export const resizeRowHeight: (a: number, b: number, c: any) => [number, number, number];
83
+ export const resizeRowHeightInSession: (a: number, b: number, c: any) => [number, number, number];
84
+ export const resolveReference: (a: number, b: number, c: any) => [number, number, number];
85
+ export const setColumnHidden: (a: number, b: number, c: any) => [number, number, number];
86
+ export const setColumnHiddenInSession: (a: number, b: number, c: any) => [number, number, number];
87
+ export const setColumnOutlineGroupHidden: (a: number, b: number, c: any) => [number, number, number];
88
+ export const setFrozenPane: (a: number, b: number, c: any) => [number, number, number];
89
+ export const setFrozenPaneInSession: (a: number, b: number, c: any) => [number, number, number];
90
+ export const setRowHidden: (a: number, b: number, c: any) => [number, number, number];
91
+ export const setRowHiddenInSession: (a: number, b: number, c: any) => [number, number, number];
92
+ export const setRowOutlineGroupHidden: (a: number, b: number, c: any) => [number, number, number];
93
+ export const setSheetOutlineLevel: (a: number, b: number, c: any) => [number, number, number];
94
+ export const startKernelRun: (a: number, b: number, c: any) => [number, number, number];
95
+ export const summarizeAccessibility: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
96
+ export const summarizeRuntimeSessionAccessibility: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
97
+ export const updateKernelSource: (a: number, b: number, c: any) => [number, number, number];
98
+ export const validateKernelAction: (a: number, b: number, c: any) => [number, number, number];
99
+ export const __wbindgen_malloc: (a: number, b: number) => number;
100
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
101
+ export const __wbindgen_exn_store: (a: number) => void;
102
+ export const __externref_table_alloc: () => number;
103
+ export const __wbindgen_externrefs: WebAssembly.Table;
104
+ export const __externref_table_dealloc: (a: number) => void;
105
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,42 @@
1
+
2
+ const _fmtCache = new Map();
3
+ function getFormatter(tz) {
4
+ let f = _fmtCache.get(tz);
5
+ if (!f) {
6
+ f = new Intl.DateTimeFormat('en-US', {
7
+ timeZone: tz, year: 'numeric', month: '2-digit', day: '2-digit',
8
+ hour: '2-digit', minute: '2-digit', second: '2-digit', hourCycle: 'h23'
9
+ });
10
+ _fmtCache.set(tz, f);
11
+ }
12
+ return f;
13
+ }
14
+ export function ic_tz_validate(name) {
15
+ try { getFormatter(name); return true; }
16
+ catch(_) { return false; }
17
+ }
18
+ export function ic_tz_all() {
19
+ try {
20
+ const list = Intl.supportedValuesOf('timeZone');
21
+
22
+ const zones = new Set(list);
23
+
24
+ const extras = [ 'UTC', 'GMT' ];
25
+
26
+ for (const tz of extras) {
27
+ zones.add(tz);
28
+ }
29
+
30
+ return Array.from(zones);
31
+ } catch(e) {
32
+ // no support
33
+ console.log(e);
34
+ return [ ];
35
+ }
36
+ }
37
+ export function ic_tz_parts(ms, tz) {
38
+ const p = {};
39
+ for (const x of getFormatter(tz).formatToParts(new Date(ms))) p[x.type] = x.value | 0;
40
+ return [p.year, p.month, p.day, p.hour, p.minute, p.second];
41
+ }
42
+
@@ -0,0 +1,466 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ export function bindUiRuntimeSession(handle_id: string, requested_active_sheet_id?: string | null): any;
5
+
6
+ export function bindUiSession(bytes: Uint8Array, requested_active_sheet_id?: string | null): any;
7
+
8
+ export function cancelKernelRun(bytes: Uint8Array, request: any): any;
9
+
10
+ export function classifyUiState(namespace: string): any;
11
+
12
+ export function commitApplyFilter(bytes: Uint8Array, request: any): any;
13
+
14
+ export function commitApplySort(bytes: Uint8Array, request: any): any;
15
+
16
+ export function commitCellFormula(bytes: Uint8Array, request: any): any;
17
+
18
+ export function commitCellFormulaInSession(handle_id: string, request: any): any;
19
+
20
+ export function commitClearFilter(bytes: Uint8Array, request: any): any;
21
+
22
+ export function commitRangeClear(bytes: Uint8Array, request: any): any;
23
+
24
+ export function commitRangeClearInSession(handle_id: string, request: any): any;
25
+
26
+ /**
27
+ * X5-U-011 data-validation authoring (byte path). Sets or clears a rule
28
+ * over the target range (a scope handle, a single address, or an explicit
29
+ * `targetRange`), then re-exports the mutated package. Rule shape is
30
+ * validated runtime-side, so a caller that skips the dialog is refused here.
31
+ */
32
+ export function commitRangeDataValidation(bytes: Uint8Array, request: any): any;
33
+
34
+ export function commitRangeFill(bytes: Uint8Array, request: any): any;
35
+
36
+ export function commitRangeFillInSession(handle_id: string, request: any): any;
37
+
38
+ export function commitRangeFormat(bytes: Uint8Array, request: any): any;
39
+
40
+ export function commitRangeFormatInSession(handle_id: string, request: any): any;
41
+
42
+ /**
43
+ * X5-U-009 hyperlink authoring (byte path). Attaches, replaces or removes a
44
+ * cell hyperlink over the target range, then re-exports the mutated package.
45
+ * Destination policy is enforced runtime-side, so a caller that skips the
46
+ * product surface is refused here, not silently allowed.
47
+ */
48
+ export function commitRangeHyperlink(bytes: Uint8Array, request: any): any;
49
+
50
+ export function commitRangePaste(bytes: Uint8Array, request: any): any;
51
+
52
+ export function commitRangePasteInSession(handle_id: string, request: any): any;
53
+
54
+ export function commitRangeTransfer(bytes: Uint8Array, request: any): any;
55
+
56
+ export function commitRangeTransferInSession(handle_id: string, request: any): any;
57
+
58
+ /**
59
+ * X5-U-010b `review.comment` (byte path). Creates, edits, replies to,
60
+ * resolves, reopens or deletes the comment thread on ONE cell (a scope
61
+ * handle or a single address), then re-exports the mutated package. Verb
62
+ * and text shape are validated runtime-side.
63
+ */
64
+ export function commitReviewComment(bytes: Uint8Array, request: any): any;
65
+
66
+ export function commitSelectionSetClear(bytes: Uint8Array, request: any): any;
67
+
68
+ export function commitSelectionSetFormat(bytes: Uint8Array, request: any): any;
69
+
70
+ export function commitSelectionSetPaste(bytes: Uint8Array, request: any): any;
71
+
72
+ /**
73
+ * X5-U-006 insert/delete cells with shift (byte path). Applies
74
+ * `runtime_sheet_shift_cells` over one rectangle and a shift direction, then
75
+ * exports the mutated workbook. Refusals come back typed with no bytes.
76
+ */
77
+ export function commitShiftCells(bytes: Uint8Array, request: any): any;
78
+
79
+ /**
80
+ * X5-U-006 insert/delete cells with shift (session path). A cell shift
81
+ * re-addresses every cell in the moved band and rewrites the formulas that
82
+ * follow them, which incremental graph maintenance cannot see — so, like a
83
+ * row/column structure mutation, it forces the full-recalc fallback.
84
+ */
85
+ export function commitShiftCellsInSession(handle_id: string, request: any): any;
86
+
87
+ export function commitTableAppendRow(bytes: Uint8Array, request: any): any;
88
+
89
+ export function commitTableAppendRowInSession(handle_id: string, request: any): any;
90
+
91
+ export function completeKernelRun(bytes: Uint8Array, request: any): any;
92
+
93
+ export function createKernelBinding(bytes: Uint8Array, request: any): any;
94
+
95
+ /**
96
+ * X3-R-012 (v40): data-region navigation over the session workbook.
97
+ * Read-only: the session is untouched. `query: "edge"` answers Ctrl+Arrow
98
+ * (`Range.End(direction)` of `active`), `query: "extend"` answers
99
+ * Ctrl+Shift+Arrow (the same edge as the head of a selection kept on
100
+ * `anchor`), `query: "current-region"` answers Ctrl+A
101
+ * (`Range.CurrentRegion` of `active`, or the whole sheet when `selection`
102
+ * already covers it). The answer carries the target's sheet, range, label
103
+ * and the selection handle the selection command takes, so the grid
104
+ * readback and the name box follow from the runtime's answer — never from
105
+ * a walk over the loaded window.
106
+ */
107
+ export function dataRegionInRuntimeSession(handle_id: string, request: any): any;
108
+
109
+ export function deleteKernelBinding(bytes: Uint8Array, request: any): any;
110
+
111
+ export function detachKernelOutput(bytes: Uint8Array, request: any): any;
112
+
113
+ export function disposeWorkbookRuntimeSession(handle_id: string): any;
114
+
115
+ export function explainFormula(bytes: Uint8Array, target: any): any;
116
+
117
+ export function explainRuntimeSessionFormula(handle_id: string, target: any): any;
118
+
119
+ export function exportRuntimeSessionBytes(handle_id: string, request: any): any;
120
+
121
+ /**
122
+ * X5-U-012: the product's delimited-text (CSV/TSV) export.
123
+ *
124
+ * Read-only, like `exportRuntimeSessionBytes`: no revision bump, no
125
+ * invalidation, no identity advancement. The whole sheet is walked engine
126
+ * side rather than the materialized window the clipboard serializer sees, so
127
+ * what the user downloads is the sheet and not the part of it that happens to
128
+ * be on screen.
129
+ *
130
+ * A refusal comes back as `blockers`, not as an exception: the export is
131
+ * bounded on the range it would emit (a two-cell workbook whose used range
132
+ * spans the grid is `delimited-export-too-many-cells`), and what CSV cannot
133
+ * carry — other sheets, formulas as their last calculated value, formatting —
134
+ * comes back on `refusals` so the surface can tell the user before they open
135
+ * the file somewhere else.
136
+ */
137
+ export function exportRuntimeSessionDelimitedText(handle_id: string, request: any): any;
138
+
139
+ /**
140
+ * X5-U-038 (v34): Excel's Find over the session workbook. Read-only: the
141
+ * session is untouched, so the answer is the match list (with the cell
142
+ * handle the selection command takes for each) or a typed refusal of the
143
+ * query itself. Never a window scan — the runtime walks the canonical cell
144
+ * store, so off-window and off-sheet cells are found.
145
+ */
146
+ export function findInRuntimeSession(handle_id: string, request: any): any;
147
+
148
+ export function getWasmStatus(): any;
149
+
150
+ /**
151
+ * X5-U-023 (v35): name-box / Go To resolution over the session workbook.
152
+ * Read-only: the session is untouched. The answer names the target sheet
153
+ * and range, the label the name box shows, and the selection handle the
154
+ * selection command (`interact` / `readRuntimeSessionSelection`) takes —
155
+ * so the grid readback and the formula bar follow from the runtime's
156
+ * answer, never from a client parse of the typed text. Defined names are
157
+ * resolved here with Excel's scope precedence; the client never scans.
158
+ */
159
+ export function goToInRuntimeSession(handle_id: string, request: any): any;
160
+
161
+ export function inspectWorkbook(bytes: Uint8Array, source_label?: string | null): any;
162
+
163
+ export function inspectWorkbookRuntimeSession(handle_id: string): any;
164
+
165
+ export function listRuntimeSessionScopes(handle_id: string, request: any): any;
166
+
167
+ export function listScopes(bytes: Uint8Array, request: any): any;
168
+
169
+ /**
170
+ * X5-U-037 merge/unmerge cells (byte path). Applies the runtime merge
171
+ * command and, on an applied verdict, exports the mutated workbook so the
172
+ * caller can thread the bytes forward. The result carries the discarded
173
+ * covered cells so the host can confirm the loss with the user.
174
+ */
175
+ export function mergeCells(bytes: Uint8Array, request: any): any;
176
+
177
+ /**
178
+ * X5-U-037 merge/unmerge cells (session path). A merge that discards
179
+ * covered content is a range clear for the keep-alive graph (dirty seeds =
180
+ * the discarded cells' ids); a merge with nothing to discard and every
181
+ * unmerge is value-neutral.
182
+ */
183
+ export function mergeCellsInSession(handle_id: string, request: any): any;
184
+
185
+ export function mutateSheetStructure(bytes: Uint8Array, request: any): any;
186
+
187
+ export function mutateSheetStructureInSession(handle_id: string, request: any): any;
188
+
189
+ export function mutateSheetTabs(bytes: Uint8Array, request: any): any;
190
+
191
+ export function mutateSheetTabsInSession(handle_id: string, request: any): any;
192
+
193
+ export function openWorkbookRuntimeSession(bytes: Uint8Array, request: any): any;
194
+
195
+ export function projectViewportHint(bytes: Uint8Array, hint: any): any;
196
+
197
+ export function readCompressedContext(bytes: Uint8Array, request: any): any;
198
+
199
+ export function readCompressedDrilldown(bytes: Uint8Array, request: any): any;
200
+
201
+ export function readKernelPanel(bytes: Uint8Array, workflow_context: any): any;
202
+
203
+ /**
204
+ * X4-CL-002 readable posture: enumerate preserve-only entities so hosts
205
+ * and agents can show typed preserved-object affordances instead of opaque
206
+ * refusals. Metadata-only: keys, kinds, source labels, digest prefixes, and
207
+ * provenance classes — never payload content.
208
+ */
209
+ export function readPreserveOnlyEntities(bytes: Uint8Array, source_label?: string | null): any;
210
+
211
+ /**
212
+ * D4-R2b (v20): digest-addressed chart XML for a `DrawingChartHandle`
213
+ * chart id (`chart:sha256:<64-hex>`). One-shot, uncached on the wasm side —
214
+ * the package seam recomputes the SHA-256 per call, so callers must not
215
+ * invoke this per paint frame (the client chart-preview store is the
216
+ * consumer guard). The workbook theme XML rides along when present so the
217
+ * host-side synthesizer needs no second readback. Refusals are typed
218
+ * kebab-case `ChartAccessError` codes.
219
+ */
220
+ export function readRuntimeSessionChartBytes(handle_id: string, chart_id: string): any;
221
+
222
+ export function readRuntimeSessionCompressedContext(handle_id: string, request: any): any;
223
+
224
+ export function readRuntimeSessionCompressedDrilldown(handle_id: string, request: any): any;
225
+
226
+ /**
227
+ * W-A §5: the explicit integrity readback — the ONLY session read that
228
+ * materializes the full state SHA on demand (memoized until the next
229
+ * mutation). Read-only: no revision bump, no identity advancement. Hosts
230
+ * use it for export-independent integrity verification and idle checks;
231
+ * every routine surface carries the O(1) chain identity instead.
232
+ */
233
+ export function readRuntimeSessionIntegrity(handle_id: string): any;
234
+
235
+ export function readRuntimeSessionKernelPanel(handle_id: string, workflow_context: any): any;
236
+
237
+ /**
238
+ * BR-3 (v18): digest-addressed media bytes for a `DrawingMediaHandle`
239
+ * media id (`media:sha256:<64-hex>`). One-shot, uncached on the wasm side —
240
+ * the package seam recomputes the SHA-256 per call, so callers must not
241
+ * invoke this per paint frame (the client decode cache is the consumer
242
+ * guard). Refusals are typed kebab-case `MediaAccessError` codes.
243
+ */
244
+ export function readRuntimeSessionMediaBytes(handle_id: string, media_id: string): any;
245
+
246
+ export function readRuntimeSessionOverlayLanes(handle_id: string, request: any): any;
247
+
248
+ export function readRuntimeSessionPreserveOnlyEntities(handle_id: string): any;
249
+
250
+ /**
251
+ * X5-U-028 (v24): `selection_cursor` is an optional `{anchor, head}`; when
252
+ * present it is validated against the selected range and echoed on the
253
+ * readback, so a backwards drag keeps its corners across a refresh.
254
+ */
255
+ export function readRuntimeSessionSelection(handle_id: string, handle: any, viewport_hint: any, workflow_context: any, selection_cursor: any): any;
256
+
257
+ export function readRuntimeSessionSelectionSet(handle_id: string, request: any): any;
258
+
259
+ export function readRuntimeSessionSheetWindow(handle_id: string, viewport_hint: any, active_handle: any, workflow_context: any): any;
260
+
261
+ /**
262
+ * T5 hybrid binary sheet-window export (`xlsx-sheet-window-binary/1`).
263
+ *
264
+ * Same parameters and window semantics as `readRuntimeSessionSheetWindow`;
265
+ * returns `{ schemaId, bytes, rest }` where `bytes` carries the four bulk
266
+ * arrays in the flat layout owned by `sheet_window_binary` and `rest` is a
267
+ * small JSON DTO (envelope/cache/merges/rare payloads). Cache-warm hits
268
+ * return the cached bytes verbatim — the serde-per-hit cost of the JSON
269
+ * export (bench BR-6) is skipped entirely.
270
+ */
271
+ export function readRuntimeSessionSheetWindowBinary(handle_id: string, viewport_hint: any, active_handle: any, workflow_context: any): any;
272
+
273
+ export function readSelection(bytes: Uint8Array, handle: any, viewport_hint: any, workflow_context: any, selection_cursor: any): any;
274
+
275
+ export function readSelectionSet(bytes: Uint8Array, request: any): any;
276
+
277
+ export function readSheetWindow(bytes: Uint8Array, viewport_hint: any, active_handle: any, workflow_context: any): any;
278
+
279
+ export function readWorkflowOverlayLanes(bytes: Uint8Array, request: any): any;
280
+
281
+ export function recalculateFormulas(bytes: Uint8Array, request: any): any;
282
+
283
+ export function recalculateInSession(handle_id: string, request: any): any;
284
+
285
+ export function resizeColumnWidth(bytes: Uint8Array, request: any): any;
286
+
287
+ export function resizeColumnWidthInSession(handle_id: string, request: any): any;
288
+
289
+ export function resizeRowHeight(bytes: Uint8Array, request: any): any;
290
+
291
+ export function resizeRowHeightInSession(handle_id: string, request: any): any;
292
+
293
+ export function resolveReference(bytes: Uint8Array, query: any): any;
294
+
295
+ export function setColumnHidden(bytes: Uint8Array, request: any): any;
296
+
297
+ export function setColumnHiddenInSession(handle_id: string, request: any): any;
298
+
299
+ export function setColumnOutlineGroupHidden(bytes: Uint8Array, request: any): any;
300
+
301
+ /**
302
+ * X5-U-004: freeze/unfreeze panes (byte path). Applies the runtime frozen
303
+ * pane command and, on an applied verdict, exports the mutated workbook so
304
+ * the caller can thread the bytes forward.
305
+ */
306
+ export function setFrozenPane(bytes: Uint8Array, request: any): any;
307
+
308
+ /**
309
+ * X5-U-004: freeze/unfreeze panes (session path). Adopts the mutated
310
+ * workbook in place with the same value-neutral session bookkeeping as the
311
+ * layout-metric commits (pane state changes no cell values, so the
312
+ * keep-alive calc graph stays valid).
313
+ */
314
+ export function setFrozenPaneInSession(handle_id: string, request: any): any;
315
+
316
+ export function setRowHidden(bytes: Uint8Array, request: any): any;
317
+
318
+ export function setRowHiddenInSession(handle_id: string, request: any): any;
319
+
320
+ export function setRowOutlineGroupHidden(bytes: Uint8Array, request: any): any;
321
+
322
+ /**
323
+ * X5-U-005 outline authoring (byte path). Raises/lowers the outline level of
324
+ * a row/column span, then re-exports the mutated package.
325
+ */
326
+ export function setSheetOutlineLevel(bytes: Uint8Array, request: any): any;
327
+
328
+ export function startKernelRun(bytes: Uint8Array, request: any): any;
329
+
330
+ export function summarizeAccessibility(bytes: Uint8Array, handle: any, viewport_hint: any, workflow_context: any): any;
331
+
332
+ export function summarizeRuntimeSessionAccessibility(handle_id: string, handle: any, viewport_hint: any, workflow_context: any): any;
333
+
334
+ export function updateKernelSource(bytes: Uint8Array, request: any): any;
335
+
336
+ export function validateKernelAction(bytes: Uint8Array, request: any): any;
337
+
338
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
339
+
340
+ export interface InitOutput {
341
+ readonly memory: WebAssembly.Memory;
342
+ readonly bindUiRuntimeSession: (a: number, b: number, c: number, d: number) => [number, number, number];
343
+ readonly bindUiSession: (a: number, b: number, c: number, d: number) => [number, number, number];
344
+ readonly cancelKernelRun: (a: number, b: number, c: any) => [number, number, number];
345
+ readonly classifyUiState: (a: number, b: number) => [number, number, number];
346
+ readonly commitApplyFilter: (a: number, b: number, c: any) => [number, number, number];
347
+ readonly commitApplySort: (a: number, b: number, c: any) => [number, number, number];
348
+ readonly commitCellFormula: (a: number, b: number, c: any) => [number, number, number];
349
+ readonly commitCellFormulaInSession: (a: number, b: number, c: any) => [number, number, number];
350
+ readonly commitClearFilter: (a: number, b: number, c: any) => [number, number, number];
351
+ readonly commitRangeClear: (a: number, b: number, c: any) => [number, number, number];
352
+ readonly commitRangeClearInSession: (a: number, b: number, c: any) => [number, number, number];
353
+ readonly commitRangeDataValidation: (a: number, b: number, c: any) => [number, number, number];
354
+ readonly commitRangeFill: (a: number, b: number, c: any) => [number, number, number];
355
+ readonly commitRangeFillInSession: (a: number, b: number, c: any) => [number, number, number];
356
+ readonly commitRangeFormat: (a: number, b: number, c: any) => [number, number, number];
357
+ readonly commitRangeFormatInSession: (a: number, b: number, c: any) => [number, number, number];
358
+ readonly commitRangeHyperlink: (a: number, b: number, c: any) => [number, number, number];
359
+ readonly commitRangePaste: (a: number, b: number, c: any) => [number, number, number];
360
+ readonly commitRangePasteInSession: (a: number, b: number, c: any) => [number, number, number];
361
+ readonly commitRangeTransfer: (a: number, b: number, c: any) => [number, number, number];
362
+ readonly commitRangeTransferInSession: (a: number, b: number, c: any) => [number, number, number];
363
+ readonly commitReviewComment: (a: number, b: number, c: any) => [number, number, number];
364
+ readonly commitSelectionSetClear: (a: number, b: number, c: any) => [number, number, number];
365
+ readonly commitSelectionSetFormat: (a: number, b: number, c: any) => [number, number, number];
366
+ readonly commitSelectionSetPaste: (a: number, b: number, c: any) => [number, number, number];
367
+ readonly commitShiftCells: (a: number, b: number, c: any) => [number, number, number];
368
+ readonly commitShiftCellsInSession: (a: number, b: number, c: any) => [number, number, number];
369
+ readonly commitTableAppendRow: (a: number, b: number, c: any) => [number, number, number];
370
+ readonly commitTableAppendRowInSession: (a: number, b: number, c: any) => [number, number, number];
371
+ readonly completeKernelRun: (a: number, b: number, c: any) => [number, number, number];
372
+ readonly createKernelBinding: (a: number, b: number, c: any) => [number, number, number];
373
+ readonly dataRegionInRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
374
+ readonly deleteKernelBinding: (a: number, b: number, c: any) => [number, number, number];
375
+ readonly detachKernelOutput: (a: number, b: number, c: any) => [number, number, number];
376
+ readonly disposeWorkbookRuntimeSession: (a: number, b: number) => [number, number, number];
377
+ readonly explainFormula: (a: number, b: number, c: any) => [number, number, number];
378
+ readonly explainRuntimeSessionFormula: (a: number, b: number, c: any) => [number, number, number];
379
+ readonly exportRuntimeSessionBytes: (a: number, b: number, c: any) => [number, number, number];
380
+ readonly exportRuntimeSessionDelimitedText: (a: number, b: number, c: any) => [number, number, number];
381
+ readonly findInRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
382
+ readonly getWasmStatus: () => [number, number, number];
383
+ readonly goToInRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
384
+ readonly inspectWorkbook: (a: number, b: number, c: number, d: number) => [number, number, number];
385
+ readonly inspectWorkbookRuntimeSession: (a: number, b: number) => [number, number, number];
386
+ readonly listRuntimeSessionScopes: (a: number, b: number, c: any) => [number, number, number];
387
+ readonly listScopes: (a: number, b: number, c: any) => [number, number, number];
388
+ readonly mergeCells: (a: number, b: number, c: any) => [number, number, number];
389
+ readonly mergeCellsInSession: (a: number, b: number, c: any) => [number, number, number];
390
+ readonly mutateSheetStructure: (a: number, b: number, c: any) => [number, number, number];
391
+ readonly mutateSheetStructureInSession: (a: number, b: number, c: any) => [number, number, number];
392
+ readonly mutateSheetTabs: (a: number, b: number, c: any) => [number, number, number];
393
+ readonly mutateSheetTabsInSession: (a: number, b: number, c: any) => [number, number, number];
394
+ readonly openWorkbookRuntimeSession: (a: number, b: number, c: any) => [number, number, number];
395
+ readonly projectViewportHint: (a: number, b: number, c: any) => [number, number, number];
396
+ readonly readCompressedContext: (a: number, b: number, c: any) => [number, number, number];
397
+ readonly readCompressedDrilldown: (a: number, b: number, c: any) => [number, number, number];
398
+ readonly readKernelPanel: (a: number, b: number, c: any) => [number, number, number];
399
+ readonly readPreserveOnlyEntities: (a: number, b: number, c: number, d: number) => [number, number, number];
400
+ readonly readRuntimeSessionChartBytes: (a: number, b: number, c: number, d: number) => [number, number, number];
401
+ readonly readRuntimeSessionCompressedContext: (a: number, b: number, c: any) => [number, number, number];
402
+ readonly readRuntimeSessionCompressedDrilldown: (a: number, b: number, c: any) => [number, number, number];
403
+ readonly readRuntimeSessionIntegrity: (a: number, b: number) => [number, number, number];
404
+ readonly readRuntimeSessionKernelPanel: (a: number, b: number, c: any) => [number, number, number];
405
+ readonly readRuntimeSessionMediaBytes: (a: number, b: number, c: number, d: number) => [number, number, number];
406
+ readonly readRuntimeSessionOverlayLanes: (a: number, b: number, c: any) => [number, number, number];
407
+ readonly readRuntimeSessionPreserveOnlyEntities: (a: number, b: number) => [number, number, number];
408
+ readonly readRuntimeSessionSelection: (a: number, b: number, c: any, d: any, e: any, f: any) => [number, number, number];
409
+ readonly readRuntimeSessionSelectionSet: (a: number, b: number, c: any) => [number, number, number];
410
+ readonly readRuntimeSessionSheetWindow: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
411
+ readonly readRuntimeSessionSheetWindowBinary: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
412
+ readonly readSelection: (a: number, b: number, c: any, d: any, e: any, f: any) => [number, number, number];
413
+ readonly readSelectionSet: (a: number, b: number, c: any) => [number, number, number];
414
+ readonly readSheetWindow: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
415
+ readonly readWorkflowOverlayLanes: (a: number, b: number, c: any) => [number, number, number];
416
+ readonly recalculateFormulas: (a: number, b: number, c: any) => [number, number, number];
417
+ readonly recalculateInSession: (a: number, b: number, c: any) => [number, number, number];
418
+ readonly resizeColumnWidth: (a: number, b: number, c: any) => [number, number, number];
419
+ readonly resizeColumnWidthInSession: (a: number, b: number, c: any) => [number, number, number];
420
+ readonly resizeRowHeight: (a: number, b: number, c: any) => [number, number, number];
421
+ readonly resizeRowHeightInSession: (a: number, b: number, c: any) => [number, number, number];
422
+ readonly resolveReference: (a: number, b: number, c: any) => [number, number, number];
423
+ readonly setColumnHidden: (a: number, b: number, c: any) => [number, number, number];
424
+ readonly setColumnHiddenInSession: (a: number, b: number, c: any) => [number, number, number];
425
+ readonly setColumnOutlineGroupHidden: (a: number, b: number, c: any) => [number, number, number];
426
+ readonly setFrozenPane: (a: number, b: number, c: any) => [number, number, number];
427
+ readonly setFrozenPaneInSession: (a: number, b: number, c: any) => [number, number, number];
428
+ readonly setRowHidden: (a: number, b: number, c: any) => [number, number, number];
429
+ readonly setRowHiddenInSession: (a: number, b: number, c: any) => [number, number, number];
430
+ readonly setRowOutlineGroupHidden: (a: number, b: number, c: any) => [number, number, number];
431
+ readonly setSheetOutlineLevel: (a: number, b: number, c: any) => [number, number, number];
432
+ readonly startKernelRun: (a: number, b: number, c: any) => [number, number, number];
433
+ readonly summarizeAccessibility: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
434
+ readonly summarizeRuntimeSessionAccessibility: (a: number, b: number, c: any, d: any, e: any) => [number, number, number];
435
+ readonly updateKernelSource: (a: number, b: number, c: any) => [number, number, number];
436
+ readonly validateKernelAction: (a: number, b: number, c: any) => [number, number, number];
437
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
438
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
439
+ readonly __wbindgen_exn_store: (a: number) => void;
440
+ readonly __externref_table_alloc: () => number;
441
+ readonly __wbindgen_externrefs: WebAssembly.Table;
442
+ readonly __externref_table_dealloc: (a: number) => void;
443
+ readonly __wbindgen_start: () => void;
444
+ }
445
+
446
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
447
+
448
+ /**
449
+ * Instantiates the given `module`, which can either be bytes or
450
+ * a precompiled `WebAssembly.Module`.
451
+ *
452
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
453
+ *
454
+ * @returns {InitOutput}
455
+ */
456
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
457
+
458
+ /**
459
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
460
+ * for everything else, calls `WebAssembly.instantiate` directly.
461
+ *
462
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
463
+ *
464
+ * @returns {Promise<InitOutput>}
465
+ */
466
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;