@components-kit/open-workbook 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 (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +80 -0
  3. package/assets/backend/dist/addin-rpc-client.d.ts +17 -0
  4. package/assets/backend/dist/addin-rpc-client.d.ts.map +1 -0
  5. package/assets/backend/dist/addin-rpc-client.js +66 -0
  6. package/assets/backend/dist/addin-rpc-client.js.map +1 -0
  7. package/assets/backend/dist/addin-websocket-server.d.ts +13 -0
  8. package/assets/backend/dist/addin-websocket-server.d.ts.map +1 -0
  9. package/assets/backend/dist/addin-websocket-server.js +199 -0
  10. package/assets/backend/dist/addin-websocket-server.js.map +1 -0
  11. package/assets/backend/dist/file-bridge.d.ts +2 -0
  12. package/assets/backend/dist/file-bridge.d.ts.map +1 -0
  13. package/assets/backend/dist/file-bridge.js +15 -0
  14. package/assets/backend/dist/file-bridge.js.map +1 -0
  15. package/assets/backend/dist/index.d.ts +4 -0
  16. package/assets/backend/dist/index.d.ts.map +1 -0
  17. package/assets/backend/dist/index.js +17 -0
  18. package/assets/backend/dist/index.js.map +1 -0
  19. package/assets/backend/dist/native-file-bridge-server.d.ts +28 -0
  20. package/assets/backend/dist/native-file-bridge-server.d.ts.map +1 -0
  21. package/assets/backend/dist/native-file-bridge-server.js +496 -0
  22. package/assets/backend/dist/native-file-bridge-server.js.map +1 -0
  23. package/assets/backend/dist/native-file-bridge.d.ts +20 -0
  24. package/assets/backend/dist/native-file-bridge.d.ts.map +1 -0
  25. package/assets/backend/dist/native-file-bridge.js +140 -0
  26. package/assets/backend/dist/native-file-bridge.js.map +1 -0
  27. package/assets/backend/dist/runtime-service.d.ts +3167 -0
  28. package/assets/backend/dist/runtime-service.d.ts.map +1 -0
  29. package/assets/backend/dist/runtime-service.js +6003 -0
  30. package/assets/backend/dist/runtime-service.js.map +1 -0
  31. package/assets/backend/dist/session-registry.d.ts +20 -0
  32. package/assets/backend/dist/session-registry.d.ts.map +1 -0
  33. package/assets/backend/dist/session-registry.js +53 -0
  34. package/assets/backend/dist/session-registry.js.map +1 -0
  35. package/assets/backend/dist/state-store.d.ts +26 -0
  36. package/assets/backend/dist/state-store.d.ts.map +1 -0
  37. package/assets/backend/dist/state-store.js +44 -0
  38. package/assets/backend/dist/state-store.js.map +1 -0
  39. package/assets/excel-addin/dist/connection.d.ts +26 -0
  40. package/assets/excel-addin/dist/connection.d.ts.map +1 -0
  41. package/assets/excel-addin/dist/connection.js +320 -0
  42. package/assets/excel-addin/dist/connection.js.map +1 -0
  43. package/assets/excel-addin/dist/excel-executor.d.ts +225 -0
  44. package/assets/excel-addin/dist/excel-executor.d.ts.map +1 -0
  45. package/assets/excel-addin/dist/excel-executor.js +2487 -0
  46. package/assets/excel-addin/dist/excel-executor.js.map +1 -0
  47. package/assets/excel-addin/dist/taskpane.d.ts +2 -0
  48. package/assets/excel-addin/dist/taskpane.d.ts.map +1 -0
  49. package/assets/excel-addin/dist/taskpane.js +28 -0
  50. package/assets/excel-addin/dist/taskpane.js.map +1 -0
  51. package/assets/excel-addin/manifest.xml +93 -0
  52. package/assets/excel-addin/public/taskpane.css +47 -0
  53. package/assets/excel-addin/public/taskpane.html +35 -0
  54. package/assets/excel-addin/scripts/dev-server.mjs +128 -0
  55. package/assets/instructions/open-workbook-excel/SKILL.md +52 -0
  56. package/assets/instructions/open-workbook-excel/references/multi-agent.md +43 -0
  57. package/assets/instructions/open-workbook-excel/references/performance.md +41 -0
  58. package/assets/instructions/open-workbook-excel/references/reliability.md +76 -0
  59. package/assets/instructions/open-workbook-excel/references/tool-selection.md +82 -0
  60. package/assets/instructions/open-workbook-excel/references/workflows.md +93 -0
  61. package/assets/mcp-server/dist/catalog.d.ts +5 -0
  62. package/assets/mcp-server/dist/catalog.d.ts.map +1 -0
  63. package/assets/mcp-server/dist/catalog.js +8 -0
  64. package/assets/mcp-server/dist/catalog.js.map +1 -0
  65. package/assets/mcp-server/dist/index.d.ts +3 -0
  66. package/assets/mcp-server/dist/index.d.ts.map +1 -0
  67. package/assets/mcp-server/dist/index.js +3779 -0
  68. package/assets/mcp-server/dist/index.js.map +1 -0
  69. package/dist/index.d.ts +3 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.js +721 -0
  72. package/dist/index.js.map +1 -0
  73. package/package.json +56 -0
@@ -0,0 +1,3167 @@
1
+ import { BackupManager, BatchCompiler, LockManager, PlanManager, SnapshotManager, TaskRegistry, TemplateRegistry, TransactionManager } from "@components-kit/open-workbook-excel-core";
2
+ import type { BackupRecord } from "@components-kit/open-workbook-excel-core";
3
+ import type { TemplateRecord } from "@components-kit/open-workbook-excel-core";
4
+ import type { AddinTemplateRepairRequest, A1Range, AgentId, AgentRecord, BackupId, BatchRequest, ChartCreateRequest, ChartSelector, ChartUpdateDataSourceRequest, CleaningReport, CollaborationEvent, ConflictRecord, ConflictTelemetrySummary, ConnectionId, FormulaCompareResponse, FormulaDependencyGraph, FormulaTraceResponse, FormulaCopyPatternsRequest, ConflictGuidanceResponse, LockAcquireResponse, LockId, LockLeasePolicy, LockMode, LockRenewResponse, LockReleaseResponse, FormulaFillRequest, FormulaMutationResponse, FormulaPatternRequest, FormulaPatternResponse, NameCreateRequest, NameSelector, NameUpdateRequest, OperationResult, OperationWarning, PermissionState, PivotCopyFromTemplateRequest, PivotCompareFingerprintRequest, PivotCreateRequest, PivotDiff, PivotFingerprint, PivotOperationCapabilityStatus, PivotRebuildWithSourceRequest, PivotRepairFromTemplateRequest, PivotSelector, PivotTableInfo, PivotValidateSourceRequest, PlanCreateRequest, PlanId, PlanRefreshResult, RangeMetadataRequest, RangeSearchRequest, RepairReport, RegionRegisterRequest, RegionSelector, RuntimeCapabilities, RuntimeSelectionResponse, SnapshotId, TaskId, TaskBlocker, TaskScheduleResponse, TaskRecord, TableAppendRowsRequest, TableApplyFiltersRequest, TableCopyStructureRequest, TableCreateRequest, TableResizeRequest, TableSelector, TableSetStyleRequest, TableSetTotalRowRequest, TableSortRequest, TableUpdateRowsRequest, TemplateId, TemplateCaptureRequest, TransactionId, TransactionRecord, TransactionRollbackPreview, TransactionRollbackChainPreview, SheetTemplateFingerprintResponse, TemplateValidationResponse, StyleCompareResponse, StyleCopyRequest, StyleCopyResponse, StyleDimension, StyleFingerprintRequest, StyleFingerprintResponse, ValidationIssue, ValidationReport, WorkbookBackupRetentionRequest, WorkbookCreateFileBackupRequest, WorkbookFileBackupManifest, WorkbookRestoreFileBackupRequest, WorkbookScope, WorkbookRegion, WorkbookId, WorkbookEmbeddedLocalConfigResponse, WorkbookLocalConfig, WorkbookLocalConfigImportRequest, WorkbookLocalConfigImportResponse, WorkbookRef } from "@components-kit/open-workbook-protocol";
5
+ import { runtimeError } from "@components-kit/open-workbook-protocol";
6
+ import { SessionRegistry } from "./session-registry.js";
7
+ import type { AddinRpcClient } from "./addin-rpc-client.js";
8
+ import { NativeFileBridge } from "./native-file-bridge.js";
9
+ export interface RuntimeServiceOptions {
10
+ stateDir?: string;
11
+ persistState?: boolean;
12
+ fileBridge?: NativeFileBridge;
13
+ }
14
+ export declare class RuntimeService {
15
+ readonly sessions: SessionRegistry;
16
+ readonly backups: BackupManager;
17
+ readonly snapshots: SnapshotManager;
18
+ readonly templates: TemplateRegistry;
19
+ readonly compiler: BatchCompiler;
20
+ readonly plans: PlanManager;
21
+ readonly tasks: TaskRegistry;
22
+ readonly locks: LockManager;
23
+ readonly transactions: TransactionManager;
24
+ private readonly addinClients;
25
+ private readonly regions;
26
+ private readonly agents;
27
+ private readonly collabEvents;
28
+ private readonly conflicts;
29
+ private readonly conflictTelemetry;
30
+ private transactionQueue;
31
+ private readonly defaultAgentId;
32
+ private readonly stateStore;
33
+ private readonly fileBridge;
34
+ private lockLeasePolicy;
35
+ private permissionState;
36
+ private readonly events;
37
+ private eventSubscriptionEnabled;
38
+ private eventDebounceMs;
39
+ constructor(options?: RuntimeServiceOptions);
40
+ registerAgent(input?: {
41
+ agentId?: AgentId | undefined;
42
+ agentName?: string | undefined;
43
+ clientType?: AgentRecord["clientType"] | undefined;
44
+ pid?: number | undefined;
45
+ }): {
46
+ ok: boolean;
47
+ agent: AgentRecord;
48
+ };
49
+ createTask(input: {
50
+ workbookId: WorkbookId;
51
+ goal: string;
52
+ role?: string | undefined;
53
+ priority?: TaskRecord["priority"] | undefined;
54
+ assignedAgentId?: AgentId | undefined;
55
+ allowedScopes?: WorkbookScope[] | undefined;
56
+ dependencies?: TaskId[] | undefined;
57
+ }): {
58
+ ok: boolean;
59
+ task: TaskRecord;
60
+ };
61
+ claimTask(taskId: TaskId, agentId: AgentId): {
62
+ ok: boolean;
63
+ task: TaskRecord;
64
+ };
65
+ updateTask(taskId: TaskId, patch: Partial<Pick<TaskRecord, "goal" | "role" | "priority" | "status" | "progress" | "currentStep" | "blockers" | "assignedAgentId" | "allowedScopes" | "dependencies" | "errorMessage">>): {
66
+ ok: boolean;
67
+ task: TaskRecord;
68
+ };
69
+ setTaskProgress(taskId: TaskId, progress: number, currentStep?: string | undefined): {
70
+ ok: boolean;
71
+ task: TaskRecord;
72
+ };
73
+ addTaskBlocker(taskId: TaskId, input: Pick<TaskBlocker, "message" | "severity"> & {
74
+ scope?: WorkbookScope | undefined;
75
+ }): {
76
+ ok: boolean;
77
+ task: TaskRecord;
78
+ blocker: TaskBlocker | undefined;
79
+ };
80
+ resolveTaskBlocker(taskId: TaskId, blockerId: string): {
81
+ ok: boolean;
82
+ task: TaskRecord;
83
+ };
84
+ evaluateTaskSchedule(input?: {
85
+ workbookId?: WorkbookId | undefined;
86
+ apply?: boolean | undefined;
87
+ lockMode?: LockMode | undefined;
88
+ }): TaskScheduleResponse;
89
+ resumeReadyTasks(workbookId?: WorkbookId | undefined): TaskScheduleResponse;
90
+ getTask(taskId: TaskId): {
91
+ ok: boolean;
92
+ task: TaskRecord;
93
+ error?: never;
94
+ } | {
95
+ ok: boolean;
96
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
97
+ task?: never;
98
+ };
99
+ listTasks(workbookId?: WorkbookId): {
100
+ ok: boolean;
101
+ tasks: TaskRecord[];
102
+ };
103
+ getCollaborationStatus(workbookId?: WorkbookId): {
104
+ ok: boolean;
105
+ agents: AgentRecord[];
106
+ tasks: TaskRecord[];
107
+ locks: import("@components-kit/open-workbook-protocol").LockRecord[];
108
+ transactions: TransactionRecord[];
109
+ conflicts: ConflictRecord[];
110
+ events: CollaborationEvent[];
111
+ };
112
+ listAgents(): {
113
+ ok: boolean;
114
+ agents: AgentRecord[];
115
+ };
116
+ listLocks(workbookId?: WorkbookId): {
117
+ ok: boolean;
118
+ locks: import("@components-kit/open-workbook-protocol").LockRecord[];
119
+ };
120
+ getLockPolicy(): {
121
+ ok: boolean;
122
+ policy: LockLeasePolicy;
123
+ };
124
+ setLockPolicy(update: Partial<LockLeasePolicy>): {
125
+ ok: boolean;
126
+ policy: LockLeasePolicy;
127
+ };
128
+ acquireLocks(input: {
129
+ workbookId: WorkbookId;
130
+ scopes: WorkbookScope[];
131
+ mode: LockMode;
132
+ reason: string;
133
+ ownerAgentId?: AgentId | undefined;
134
+ taskId?: TaskId | undefined;
135
+ ttlMs?: number | undefined;
136
+ }): LockAcquireResponse;
137
+ renewLocks(lockIds: LockId[], ttlMs?: number | undefined): LockRenewResponse;
138
+ releaseLocks(lockIds: LockId[]): LockReleaseResponse;
139
+ listTransactions(workbookId?: WorkbookId): {
140
+ ok: boolean;
141
+ transactions: TransactionRecord[];
142
+ };
143
+ getTransaction(transactionId: TransactionId): {
144
+ ok: boolean;
145
+ transaction: TransactionRecord;
146
+ error?: never;
147
+ } | {
148
+ ok: boolean;
149
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
150
+ transaction?: never;
151
+ };
152
+ previewTransactionRollback(transactionId: TransactionId): TransactionRollbackPreview;
153
+ rollbackTransaction(transactionId: TransactionId, confirmationToken?: string): Promise<OperationResult>;
154
+ previewTransactionRollbackChain(transactionId: TransactionId): TransactionRollbackChainPreview;
155
+ rollbackTransactionChain(transactionId: TransactionId, confirmationToken?: string): Promise<OperationResult>;
156
+ private collectRollbackChain;
157
+ private rollbackChainConfirmationToken;
158
+ listConflicts(workbookId?: WorkbookId): {
159
+ ok: boolean;
160
+ conflicts: ConflictRecord[];
161
+ };
162
+ getConflictGuidance(workbookId?: WorkbookId): ConflictGuidanceResponse;
163
+ explainConflict(conflict: ConflictRecord): {
164
+ ok: boolean;
165
+ conflict: ConflictRecord;
166
+ guidance: import("@components-kit/open-workbook-protocol").ConflictResolutionGuidance | undefined;
167
+ };
168
+ getConflictTelemetry(workbookId?: WorkbookId, windowSize?: number): ConflictTelemetrySummary;
169
+ clearConflictTelemetry(workbookId?: WorkbookId): {
170
+ ok: boolean;
171
+ workbookId: WorkbookId | undefined;
172
+ cleared: number;
173
+ };
174
+ private restoreState;
175
+ private recoverRuntimeState;
176
+ private persistState;
177
+ attachAddinClient(connectionId: ConnectionId, client: AddinRpcClient): void;
178
+ detachAddinClient(connectionId: ConnectionId): void;
179
+ recordAddinEvent(connectionId: ConnectionId, method: string, params?: unknown): void;
180
+ private recordCollabEvent;
181
+ private recordConflictTelemetry;
182
+ private markConflictTelemetryClearedByLock;
183
+ getStatus(): {
184
+ ok: boolean;
185
+ activeAddinConnected: boolean;
186
+ fileBridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
187
+ sessions: import("./session-registry.js").AddinSession[];
188
+ activeWorkbook: WorkbookRef | undefined;
189
+ };
190
+ getStatusWithFileBridgeProbe(): Promise<{
191
+ fileBridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
192
+ ok: boolean;
193
+ activeAddinConnected: boolean;
194
+ sessions: import("./session-registry.js").AddinSession[];
195
+ activeWorkbook: WorkbookRef | undefined;
196
+ }>;
197
+ getCapabilities(options?: {
198
+ includePreview?: boolean;
199
+ }): {
200
+ runtime: {
201
+ ok: boolean;
202
+ activeAddinConnected: boolean;
203
+ fileBridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
204
+ sessions: import("./session-registry.js").AddinSession[];
205
+ activeWorkbook: WorkbookRef | undefined;
206
+ };
207
+ activeHostCapabilities: RuntimeCapabilities;
208
+ connectedHostCapabilities: {
209
+ connectionId: ConnectionId;
210
+ connectedAt: string;
211
+ lastSeenAt: string;
212
+ activeWorkbook: WorkbookRef | undefined;
213
+ capabilities: RuntimeCapabilities | undefined;
214
+ }[];
215
+ catalog: {
216
+ total: number;
217
+ exposed: number;
218
+ stable: number;
219
+ preview: number;
220
+ planned: number;
221
+ unsupported: number;
222
+ tools: import("@components-kit/open-workbook-protocol").ToolContract[];
223
+ };
224
+ fileBridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
225
+ resources: import("@components-kit/open-workbook-protocol").ResourceContract[];
226
+ prompts: import("@components-kit/open-workbook-protocol").PromptContract[];
227
+ };
228
+ subscribeEvents(): {
229
+ ok: boolean;
230
+ subscribed: boolean;
231
+ debounceMs: number;
232
+ };
233
+ unsubscribeEvents(): {
234
+ ok: boolean;
235
+ subscribed: boolean;
236
+ };
237
+ getRecentEvents(limit?: number): {
238
+ ok: boolean;
239
+ subscribed: boolean;
240
+ debounceMs: number;
241
+ events: {
242
+ eventId: string;
243
+ connectionId: ConnectionId;
244
+ method: string;
245
+ params?: unknown;
246
+ receivedAt: string;
247
+ }[];
248
+ };
249
+ clearEvents(): {
250
+ ok: boolean;
251
+ };
252
+ setEventDebounce(debounceMs: number): {
253
+ ok: boolean;
254
+ debounceMs: number;
255
+ };
256
+ getPermissions(): {
257
+ ok: boolean;
258
+ permissions: PermissionState;
259
+ };
260
+ setPermissions(update: Partial<PermissionState>): {
261
+ ok: boolean;
262
+ permissions: PermissionState;
263
+ };
264
+ requireConfirmation(levels: PermissionState["requireConfirmationFor"]): {
265
+ ok: boolean;
266
+ permissions: PermissionState;
267
+ };
268
+ setPermissionScope(scope: PermissionState["scope"]): {
269
+ ok: boolean;
270
+ permissions: PermissionState;
271
+ };
272
+ allowDestructiveActions(allow: boolean): {
273
+ ok: boolean;
274
+ permissions: PermissionState;
275
+ };
276
+ allowMacroExecution(allow: boolean): {
277
+ ok: boolean;
278
+ permissions: PermissionState;
279
+ };
280
+ lockRegions(input: {
281
+ workbookId: WorkbookId;
282
+ regions: Array<{
283
+ regionName: string;
284
+ reason?: string;
285
+ }>;
286
+ }): Promise<{
287
+ ok: boolean;
288
+ permissions: PermissionState;
289
+ } | {
290
+ ok: boolean;
291
+ region: WorkbookRegion;
292
+ error?: never;
293
+ } | {
294
+ ok: boolean;
295
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
296
+ region?: never;
297
+ }>;
298
+ unlockRegions(input: {
299
+ workbookId: WorkbookId;
300
+ regionNames?: string[];
301
+ }): {
302
+ ok: boolean;
303
+ permissions: PermissionState;
304
+ };
305
+ connectAddinInfo(): {
306
+ ok: boolean;
307
+ backendUrl: string;
308
+ activeAddinConnected: boolean;
309
+ };
310
+ disconnectActiveAddin(): {
311
+ ok: boolean;
312
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
313
+ } | {
314
+ ok: boolean;
315
+ error?: never;
316
+ };
317
+ pingAddin(): Promise<unknown>;
318
+ createPlan(request: PlanCreateRequest): import("@components-kit/open-workbook-excel-core").PlanRecord;
319
+ compileBatch(request: BatchRequest): import("@components-kit/open-workbook-protocol").CompiledBatch;
320
+ previewPlan(planId: PlanId): Promise<import("@components-kit/open-workbook-protocol").PlanPreview>;
321
+ refreshPlanPreview(planId: PlanId): Promise<PlanRefreshResult>;
322
+ rebasePlan(planId: PlanId): Promise<PlanRefreshResult>;
323
+ getPlanDiffResource(workbookId: WorkbookId, planId: PlanId): {
324
+ ok: boolean;
325
+ workbookId: WorkbookId;
326
+ planId: PlanId;
327
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
328
+ diffSummary?: never;
329
+ preview?: never;
330
+ plan?: never;
331
+ } | {
332
+ ok: boolean;
333
+ workbookId: WorkbookId;
334
+ planId: PlanId;
335
+ diffSummary: import("@components-kit/open-workbook-protocol").DiffSummary | undefined;
336
+ preview: import("@components-kit/open-workbook-protocol").PlanPreview | undefined;
337
+ plan: import("@components-kit/open-workbook-excel-core").PlanRecord;
338
+ error?: never;
339
+ };
340
+ getActiveContext(): Promise<{
341
+ ok: boolean;
342
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
343
+ activeWorkbook?: never;
344
+ } | {
345
+ ok: boolean;
346
+ activeWorkbook: WorkbookRef | undefined;
347
+ error?: never;
348
+ }>;
349
+ getSelection(): Promise<RuntimeSelectionResponse | {
350
+ ok: boolean;
351
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
352
+ }>;
353
+ getWorkbookInfo(): Promise<{
354
+ ok: boolean;
355
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
356
+ info?: never;
357
+ } | {
358
+ ok: boolean;
359
+ info: unknown;
360
+ error?: never;
361
+ }>;
362
+ getWorkbookMap(): Promise<{
363
+ ok: boolean;
364
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
365
+ map?: never;
366
+ } | {
367
+ ok: boolean;
368
+ map: unknown;
369
+ error?: never;
370
+ }>;
371
+ createWorkbookSnapshot(input: {
372
+ workbookId: WorkbookId;
373
+ reason?: string;
374
+ ranges?: A1Range[];
375
+ }): Promise<{
376
+ ok: boolean;
377
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
378
+ snapshot?: never;
379
+ } | {
380
+ ok: boolean;
381
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
382
+ error?: never;
383
+ }>;
384
+ getSnapshot(snapshotId: SnapshotId): {
385
+ ok: boolean;
386
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
387
+ snapshot?: never;
388
+ } | {
389
+ ok: boolean;
390
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
391
+ error?: never;
392
+ };
393
+ listSnapshots(workbookId: WorkbookId): {
394
+ ok: boolean;
395
+ snapshots: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord[];
396
+ };
397
+ invalidateSnapshot(snapshotId: SnapshotId): {
398
+ ok: boolean;
399
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
400
+ snapshot?: never;
401
+ } | {
402
+ ok: boolean;
403
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
404
+ error?: never;
405
+ };
406
+ deleteSnapshot(snapshotId: SnapshotId): {
407
+ ok: boolean;
408
+ };
409
+ compareSnapshots(leftSnapshotId: SnapshotId, rightSnapshotId: SnapshotId): {
410
+ ok: boolean;
411
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
412
+ diff?: never;
413
+ } | {
414
+ ok: boolean;
415
+ diff: import("@components-kit/open-workbook-protocol").DiffSummary;
416
+ error?: never;
417
+ };
418
+ detectExternalChanges(input: {
419
+ workbookId: WorkbookId;
420
+ snapshotId: SnapshotId;
421
+ }): Promise<{
422
+ ok: boolean;
423
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
424
+ snapshot?: never;
425
+ } | {
426
+ ok: boolean;
427
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
428
+ error?: never;
429
+ } | {
430
+ ok: boolean;
431
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
432
+ diff?: never;
433
+ } | {
434
+ ok: boolean;
435
+ diff: import("@components-kit/open-workbook-protocol").DiffSummary;
436
+ error?: never;
437
+ }>;
438
+ calculateWorkbook(workbookId: WorkbookId, calculationType?: "full" | "recalculate"): Promise<unknown>;
439
+ saveWorkbook(workbookId: WorkbookId): Promise<unknown>;
440
+ saveWorkbookAs(workbookId: WorkbookId, targetPath?: string): Promise<{
441
+ ok: boolean;
442
+ workbookId: WorkbookId;
443
+ targetPath: string | undefined;
444
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
445
+ error?: never;
446
+ bridgeStatus?: never;
447
+ } | {
448
+ ok: boolean;
449
+ workbookId: WorkbookId;
450
+ targetPath: string | undefined;
451
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
452
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
453
+ bridgeStatus?: never;
454
+ } | {
455
+ ok: boolean;
456
+ workbookId: WorkbookId;
457
+ targetPath: string | undefined;
458
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
459
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
460
+ bridge?: never;
461
+ }>;
462
+ exportWorkbookCopy(input: {
463
+ workbookId: WorkbookId;
464
+ reason?: string;
465
+ targetPath?: string;
466
+ ranges?: A1Range[];
467
+ }): Promise<{
468
+ ok: boolean;
469
+ workbookId: WorkbookId;
470
+ targetPath: string | undefined;
471
+ backup: {
472
+ ok: boolean;
473
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
474
+ snapshot?: never;
475
+ } | {
476
+ ok: boolean;
477
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
478
+ error?: never;
479
+ };
480
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
481
+ bridge?: never;
482
+ } | {
483
+ ok: boolean;
484
+ workbookId: WorkbookId;
485
+ targetPath: string | undefined;
486
+ backup: {
487
+ ok: boolean;
488
+ backup: BackupRecord;
489
+ };
490
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
491
+ error?: never;
492
+ } | {
493
+ file: {
494
+ path: string;
495
+ size: number;
496
+ sliceCount: number;
497
+ capturedAt: string;
498
+ method: string;
499
+ };
500
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
501
+ ok: boolean;
502
+ workbookId: WorkbookId;
503
+ targetPath: string;
504
+ backup: {
505
+ ok: boolean;
506
+ backup: BackupRecord;
507
+ };
508
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
509
+ error?: never;
510
+ } | {
511
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
512
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
513
+ ok: boolean;
514
+ workbookId: WorkbookId;
515
+ targetPath: string | undefined;
516
+ backup: {
517
+ ok: boolean;
518
+ backup: BackupRecord;
519
+ };
520
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
521
+ }>;
522
+ createFileBackup(input: WorkbookCreateFileBackupRequest): Promise<{
523
+ ok: boolean;
524
+ workbookId: WorkbookId;
525
+ targetPath: string | undefined;
526
+ backup: {
527
+ ok: boolean;
528
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
529
+ snapshot?: never;
530
+ } | {
531
+ ok: boolean;
532
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
533
+ error?: never;
534
+ };
535
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
536
+ bridge?: never;
537
+ } | {
538
+ ok: boolean;
539
+ workbookId: WorkbookId;
540
+ targetPath: string | undefined;
541
+ backup: {
542
+ ok: boolean;
543
+ backup: BackupRecord;
544
+ };
545
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
546
+ error?: never;
547
+ } | {
548
+ file: {
549
+ path: string;
550
+ size: number;
551
+ sliceCount: number;
552
+ capturedAt: string;
553
+ method: string;
554
+ };
555
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
556
+ ok: boolean;
557
+ workbookId: WorkbookId;
558
+ targetPath: string;
559
+ backup: {
560
+ ok: boolean;
561
+ backup: BackupRecord;
562
+ };
563
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
564
+ error?: never;
565
+ } | {
566
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
567
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
568
+ ok: boolean;
569
+ workbookId: WorkbookId;
570
+ targetPath: string | undefined;
571
+ backup: {
572
+ ok: boolean;
573
+ backup: BackupRecord;
574
+ };
575
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
576
+ } | {
577
+ ok: boolean;
578
+ backup: BackupRecord;
579
+ manifest: WorkbookFileBackupManifest;
580
+ export: {
581
+ ok: boolean;
582
+ workbookId: WorkbookId;
583
+ targetPath: string | undefined;
584
+ backup: {
585
+ ok: boolean;
586
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
587
+ snapshot?: never;
588
+ } | {
589
+ ok: boolean;
590
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
591
+ error?: never;
592
+ };
593
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
594
+ bridge?: never;
595
+ } | {
596
+ ok: boolean;
597
+ workbookId: WorkbookId;
598
+ targetPath: string | undefined;
599
+ backup: {
600
+ ok: boolean;
601
+ backup: BackupRecord;
602
+ };
603
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
604
+ error?: never;
605
+ } | {
606
+ file: {
607
+ path: string;
608
+ size: number;
609
+ sliceCount: number;
610
+ capturedAt: string;
611
+ method: string;
612
+ };
613
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
614
+ ok: boolean;
615
+ workbookId: WorkbookId;
616
+ targetPath: string;
617
+ backup: {
618
+ ok: boolean;
619
+ backup: BackupRecord;
620
+ };
621
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
622
+ error?: never;
623
+ } | {
624
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
625
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
626
+ ok: boolean;
627
+ workbookId: WorkbookId;
628
+ targetPath: string | undefined;
629
+ backup: {
630
+ ok: boolean;
631
+ backup: BackupRecord;
632
+ };
633
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
634
+ };
635
+ }>;
636
+ listFileBackups(workbookId?: WorkbookId): {
637
+ ok: boolean;
638
+ backups: {
639
+ backup: BackupRecord;
640
+ manifest: WorkbookFileBackupManifest | undefined;
641
+ }[];
642
+ };
643
+ getFileBackup(backupId: BackupId): {
644
+ ok: boolean;
645
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
646
+ backup?: never;
647
+ manifest?: never;
648
+ } | {
649
+ ok: boolean;
650
+ backup: BackupRecord;
651
+ manifest: WorkbookFileBackupManifest | undefined;
652
+ error?: never;
653
+ };
654
+ verifyFileBackup(backupId: BackupId): Promise<{
655
+ ok: boolean;
656
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
657
+ backup?: never;
658
+ manifest?: never;
659
+ } | {
660
+ ok: boolean;
661
+ backup: BackupRecord | undefined;
662
+ manifest: WorkbookFileBackupManifest;
663
+ error?: never;
664
+ }>;
665
+ restoreFileBackup(input: WorkbookRestoreFileBackupRequest): Promise<{
666
+ ok: boolean;
667
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
668
+ backup?: never;
669
+ manifest?: never;
670
+ } | {
671
+ ok: boolean;
672
+ backup: BackupRecord | undefined;
673
+ manifest: WorkbookFileBackupManifest;
674
+ error?: never;
675
+ } | {
676
+ ok: boolean;
677
+ warnings: OperationWarning[];
678
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
679
+ } | {
680
+ ok: boolean;
681
+ workbookId: WorkbookId;
682
+ backupId: BackupId;
683
+ mode: NonNullable<import("@components-kit/open-workbook-protocol").WorkbookFileRestoreMode | undefined>;
684
+ emergencyBackup: {
685
+ ok: boolean;
686
+ workbookId: WorkbookId;
687
+ targetPath: string | undefined;
688
+ backup: {
689
+ ok: boolean;
690
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
691
+ snapshot?: never;
692
+ } | {
693
+ ok: boolean;
694
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
695
+ error?: never;
696
+ };
697
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
698
+ bridge?: never;
699
+ } | {
700
+ ok: boolean;
701
+ workbookId: WorkbookId;
702
+ targetPath: string | undefined;
703
+ backup: {
704
+ ok: boolean;
705
+ backup: BackupRecord;
706
+ };
707
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
708
+ error?: never;
709
+ } | {
710
+ file: {
711
+ path: string;
712
+ size: number;
713
+ sliceCount: number;
714
+ capturedAt: string;
715
+ method: string;
716
+ };
717
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
718
+ ok: boolean;
719
+ workbookId: WorkbookId;
720
+ targetPath: string;
721
+ backup: {
722
+ ok: boolean;
723
+ backup: BackupRecord;
724
+ };
725
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
726
+ error?: never;
727
+ } | {
728
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
729
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
730
+ ok: boolean;
731
+ workbookId: WorkbookId;
732
+ targetPath: string | undefined;
733
+ backup: {
734
+ ok: boolean;
735
+ backup: BackupRecord;
736
+ };
737
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
738
+ } | {
739
+ ok: boolean;
740
+ backup: BackupRecord;
741
+ manifest: WorkbookFileBackupManifest;
742
+ export: {
743
+ ok: boolean;
744
+ workbookId: WorkbookId;
745
+ targetPath: string | undefined;
746
+ backup: {
747
+ ok: boolean;
748
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
749
+ snapshot?: never;
750
+ } | {
751
+ ok: boolean;
752
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
753
+ error?: never;
754
+ };
755
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
756
+ bridge?: never;
757
+ } | {
758
+ ok: boolean;
759
+ workbookId: WorkbookId;
760
+ targetPath: string | undefined;
761
+ backup: {
762
+ ok: boolean;
763
+ backup: BackupRecord;
764
+ };
765
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
766
+ error?: never;
767
+ } | {
768
+ file: {
769
+ path: string;
770
+ size: number;
771
+ sliceCount: number;
772
+ capturedAt: string;
773
+ method: string;
774
+ };
775
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
776
+ ok: boolean;
777
+ workbookId: WorkbookId;
778
+ targetPath: string;
779
+ backup: {
780
+ ok: boolean;
781
+ backup: BackupRecord;
782
+ };
783
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
784
+ error?: never;
785
+ } | {
786
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
787
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
788
+ ok: boolean;
789
+ workbookId: WorkbookId;
790
+ targetPath: string | undefined;
791
+ backup: {
792
+ ok: boolean;
793
+ backup: BackupRecord;
794
+ };
795
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
796
+ };
797
+ };
798
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
799
+ bridge?: never;
800
+ } | {
801
+ backup?: unknown;
802
+ ok: boolean;
803
+ workbookId: WorkbookId;
804
+ backupId: BackupId;
805
+ mode: NonNullable<import("@components-kit/open-workbook-protocol").WorkbookFileRestoreMode | undefined>;
806
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
807
+ emergencyBackup: {
808
+ ok: boolean;
809
+ workbookId: WorkbookId;
810
+ targetPath: string | undefined;
811
+ backup: {
812
+ ok: boolean;
813
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
814
+ snapshot?: never;
815
+ } | {
816
+ ok: boolean;
817
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
818
+ error?: never;
819
+ };
820
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
821
+ bridge?: never;
822
+ } | {
823
+ ok: boolean;
824
+ workbookId: WorkbookId;
825
+ targetPath: string | undefined;
826
+ backup: {
827
+ ok: boolean;
828
+ backup: BackupRecord;
829
+ };
830
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
831
+ error?: never;
832
+ } | {
833
+ file: {
834
+ path: string;
835
+ size: number;
836
+ sliceCount: number;
837
+ capturedAt: string;
838
+ method: string;
839
+ };
840
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
841
+ ok: boolean;
842
+ workbookId: WorkbookId;
843
+ targetPath: string;
844
+ backup: {
845
+ ok: boolean;
846
+ backup: BackupRecord;
847
+ };
848
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
849
+ error?: never;
850
+ } | {
851
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
852
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
853
+ ok: boolean;
854
+ workbookId: WorkbookId;
855
+ targetPath: string | undefined;
856
+ backup: {
857
+ ok: boolean;
858
+ backup: BackupRecord;
859
+ };
860
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
861
+ } | {
862
+ ok: boolean;
863
+ backup: BackupRecord;
864
+ manifest: WorkbookFileBackupManifest;
865
+ export: {
866
+ ok: boolean;
867
+ workbookId: WorkbookId;
868
+ targetPath: string | undefined;
869
+ backup: {
870
+ ok: boolean;
871
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
872
+ snapshot?: never;
873
+ } | {
874
+ ok: boolean;
875
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
876
+ error?: never;
877
+ };
878
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
879
+ bridge?: never;
880
+ } | {
881
+ ok: boolean;
882
+ workbookId: WorkbookId;
883
+ targetPath: string | undefined;
884
+ backup: {
885
+ ok: boolean;
886
+ backup: BackupRecord;
887
+ };
888
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
889
+ error?: never;
890
+ } | {
891
+ file: {
892
+ path: string;
893
+ size: number;
894
+ sliceCount: number;
895
+ capturedAt: string;
896
+ method: string;
897
+ };
898
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
899
+ ok: boolean;
900
+ workbookId: WorkbookId;
901
+ targetPath: string;
902
+ backup: {
903
+ ok: boolean;
904
+ backup: BackupRecord;
905
+ };
906
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
907
+ error?: never;
908
+ } | {
909
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
910
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
911
+ ok: boolean;
912
+ workbookId: WorkbookId;
913
+ targetPath: string | undefined;
914
+ backup: {
915
+ ok: boolean;
916
+ backup: BackupRecord;
917
+ };
918
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
919
+ };
920
+ };
921
+ error?: never;
922
+ } | {
923
+ ok: boolean;
924
+ workbookId: WorkbookId;
925
+ backupId: BackupId;
926
+ mode: NonNullable<import("@components-kit/open-workbook-protocol").WorkbookFileRestoreMode | undefined>;
927
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
928
+ emergencyBackup: {
929
+ ok: boolean;
930
+ workbookId: WorkbookId;
931
+ targetPath: string | undefined;
932
+ backup: {
933
+ ok: boolean;
934
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
935
+ snapshot?: never;
936
+ } | {
937
+ ok: boolean;
938
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
939
+ error?: never;
940
+ };
941
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
942
+ bridge?: never;
943
+ } | {
944
+ ok: boolean;
945
+ workbookId: WorkbookId;
946
+ targetPath: string | undefined;
947
+ backup: {
948
+ ok: boolean;
949
+ backup: BackupRecord;
950
+ };
951
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
952
+ error?: never;
953
+ } | {
954
+ file: {
955
+ path: string;
956
+ size: number;
957
+ sliceCount: number;
958
+ capturedAt: string;
959
+ method: string;
960
+ };
961
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
962
+ ok: boolean;
963
+ workbookId: WorkbookId;
964
+ targetPath: string;
965
+ backup: {
966
+ ok: boolean;
967
+ backup: BackupRecord;
968
+ };
969
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
970
+ error?: never;
971
+ } | {
972
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
973
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
974
+ ok: boolean;
975
+ workbookId: WorkbookId;
976
+ targetPath: string | undefined;
977
+ backup: {
978
+ ok: boolean;
979
+ backup: BackupRecord;
980
+ };
981
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
982
+ } | {
983
+ ok: boolean;
984
+ backup: BackupRecord;
985
+ manifest: WorkbookFileBackupManifest;
986
+ export: {
987
+ ok: boolean;
988
+ workbookId: WorkbookId;
989
+ targetPath: string | undefined;
990
+ backup: {
991
+ ok: boolean;
992
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
993
+ snapshot?: never;
994
+ } | {
995
+ ok: boolean;
996
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
997
+ error?: never;
998
+ };
999
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1000
+ bridge?: never;
1001
+ } | {
1002
+ ok: boolean;
1003
+ workbookId: WorkbookId;
1004
+ targetPath: string | undefined;
1005
+ backup: {
1006
+ ok: boolean;
1007
+ backup: BackupRecord;
1008
+ };
1009
+ bridge: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
1010
+ error?: never;
1011
+ } | {
1012
+ file: {
1013
+ path: string;
1014
+ size: number;
1015
+ sliceCount: number;
1016
+ capturedAt: string;
1017
+ method: string;
1018
+ };
1019
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
1020
+ ok: boolean;
1021
+ workbookId: WorkbookId;
1022
+ targetPath: string;
1023
+ backup: {
1024
+ ok: boolean;
1025
+ backup: BackupRecord;
1026
+ };
1027
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
1028
+ error?: never;
1029
+ } | {
1030
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1031
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
1032
+ ok: boolean;
1033
+ workbookId: WorkbookId;
1034
+ targetPath: string | undefined;
1035
+ backup: {
1036
+ ok: boolean;
1037
+ backup: BackupRecord;
1038
+ };
1039
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
1040
+ };
1041
+ };
1042
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1043
+ } | {
1044
+ ok: boolean;
1045
+ workbookId: WorkbookId;
1046
+ backupId: BackupId;
1047
+ mode: "open-as-new";
1048
+ filePath: string;
1049
+ note: string;
1050
+ error?: never;
1051
+ bridgeStatus?: never;
1052
+ } | {
1053
+ ok: boolean;
1054
+ workbookId: WorkbookId;
1055
+ backupId: BackupId;
1056
+ mode: "replace-open-workbook" | "restore-into-open-workbook";
1057
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1058
+ filePath?: never;
1059
+ note?: never;
1060
+ bridgeStatus?: never;
1061
+ } | {
1062
+ ok: boolean;
1063
+ workbookId: WorkbookId;
1064
+ backupId: BackupId;
1065
+ mode: "replace-open-workbook" | "restore-into-open-workbook";
1066
+ bridgeStatus: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeStatus;
1067
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1068
+ filePath?: never;
1069
+ note?: never;
1070
+ }>;
1071
+ private restoreFileBackupThroughBridge;
1072
+ deleteFileBackup(backupId: BackupId): {
1073
+ ok: boolean;
1074
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1075
+ backup?: never;
1076
+ backupId?: never;
1077
+ } | {
1078
+ ok: boolean;
1079
+ backup: BackupRecord;
1080
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1081
+ backupId?: never;
1082
+ } | {
1083
+ ok: boolean;
1084
+ backupId: BackupId;
1085
+ error?: never;
1086
+ backup?: never;
1087
+ };
1088
+ pruneFileBackups(input: WorkbookBackupRetentionRequest): {
1089
+ ok: boolean;
1090
+ dryRun: boolean;
1091
+ candidates: BackupRecord[];
1092
+ pruned?: never;
1093
+ } | {
1094
+ ok: boolean;
1095
+ pruned: BackupId[];
1096
+ dryRun?: never;
1097
+ candidates?: never;
1098
+ };
1099
+ pinFileBackup(backupId: BackupId, pinned: boolean): {
1100
+ ok: boolean;
1101
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1102
+ backup?: never;
1103
+ manifest?: never;
1104
+ } | {
1105
+ ok: boolean;
1106
+ backup: BackupRecord | undefined;
1107
+ manifest: {
1108
+ pinned: boolean;
1109
+ backupId: BackupId;
1110
+ workbookId: WorkbookId;
1111
+ createdAt: string;
1112
+ reason: string;
1113
+ filePath?: string;
1114
+ mode: import("@components-kit/open-workbook-protocol").WorkbookFileBackupMode;
1115
+ size?: number;
1116
+ checksum?: string;
1117
+ sourceSnapshotBackupId?: BackupId;
1118
+ verifiedAt?: string;
1119
+ transactionId?: TransactionId;
1120
+ taskId?: TaskId;
1121
+ agentId?: AgentId;
1122
+ restoreStatus?: "available" | "missing" | "checksum_mismatch" | "unsupported";
1123
+ bridge?: import("@components-kit/open-workbook-protocol").WorkbookFileBridgeResponse;
1124
+ metadata?: Record<string, unknown>;
1125
+ } | undefined;
1126
+ error?: never;
1127
+ };
1128
+ closeWorkbook(workbookId: WorkbookId, closeBehavior?: "Save" | "SkipSave"): Promise<unknown>;
1129
+ readRangeMetadata(method: string, request: RangeMetadataRequest | RangeSearchRequest): Promise<unknown>;
1130
+ listNames(workbookId: WorkbookId): Promise<unknown>;
1131
+ getName(request: NameSelector): Promise<unknown>;
1132
+ createName(request: NameCreateRequest): Promise<{
1133
+ ok: false;
1134
+ transactionId: TransactionId;
1135
+ rollbackAvailable: false;
1136
+ backups: [];
1137
+ warnings: OperationWarning[];
1138
+ telemetry: {
1139
+ warningCount: number;
1140
+ };
1141
+ error: ReturnType<typeof runtimeError>;
1142
+ } | {
1143
+ ok: boolean;
1144
+ backup: {
1145
+ ok: boolean;
1146
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1147
+ snapshot?: never;
1148
+ } | {
1149
+ ok: boolean;
1150
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1151
+ error?: never;
1152
+ } | {
1153
+ ok: boolean;
1154
+ backup: BackupRecord;
1155
+ };
1156
+ result: unknown;
1157
+ } | {
1158
+ ok: boolean;
1159
+ result: unknown;
1160
+ backup?: never;
1161
+ } | {
1162
+ ok: boolean;
1163
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1164
+ }>;
1165
+ updateName(request: NameUpdateRequest): Promise<{
1166
+ ok: false;
1167
+ transactionId: TransactionId;
1168
+ rollbackAvailable: false;
1169
+ backups: [];
1170
+ warnings: OperationWarning[];
1171
+ telemetry: {
1172
+ warningCount: number;
1173
+ };
1174
+ error: ReturnType<typeof runtimeError>;
1175
+ } | {
1176
+ ok: boolean;
1177
+ backup: {
1178
+ ok: boolean;
1179
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1180
+ snapshot?: never;
1181
+ } | {
1182
+ ok: boolean;
1183
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1184
+ error?: never;
1185
+ } | {
1186
+ ok: boolean;
1187
+ backup: BackupRecord;
1188
+ };
1189
+ result: unknown;
1190
+ } | {
1191
+ ok: boolean;
1192
+ result: unknown;
1193
+ backup?: never;
1194
+ } | {
1195
+ ok: boolean;
1196
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1197
+ }>;
1198
+ deleteName(request: NameSelector): Promise<{
1199
+ ok: false;
1200
+ transactionId: TransactionId;
1201
+ rollbackAvailable: false;
1202
+ backups: [];
1203
+ warnings: OperationWarning[];
1204
+ telemetry: {
1205
+ warningCount: number;
1206
+ };
1207
+ error: ReturnType<typeof runtimeError>;
1208
+ } | {
1209
+ ok: boolean;
1210
+ result: unknown;
1211
+ } | {
1212
+ ok: boolean;
1213
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1214
+ }>;
1215
+ listPivotTables(workbookId: WorkbookId): Promise<unknown>;
1216
+ getPivotTableInfo(request: PivotSelector): Promise<unknown>;
1217
+ createPivotTable(request: PivotCreateRequest): Promise<{
1218
+ ok: boolean;
1219
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1220
+ } | {
1221
+ ok: boolean;
1222
+ backup: {
1223
+ ok: boolean;
1224
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1225
+ snapshot?: never;
1226
+ } | {
1227
+ ok: boolean;
1228
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1229
+ error?: never;
1230
+ } | {
1231
+ ok: boolean;
1232
+ backup: BackupRecord;
1233
+ };
1234
+ result: unknown;
1235
+ }>;
1236
+ refreshPivotTable(request: PivotSelector): Promise<unknown>;
1237
+ refreshAllPivotTables(workbookId: WorkbookId): Promise<unknown>;
1238
+ updatePivotSource(request: PivotCreateRequest): {
1239
+ ok: boolean;
1240
+ request: PivotCreateRequest;
1241
+ warnings: OperationWarning[];
1242
+ capabilityStatus: PivotOperationCapabilityStatus;
1243
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1244
+ };
1245
+ copyPivotFromTemplate(request: PivotCopyFromTemplateRequest): Promise<{
1246
+ ok: boolean;
1247
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1248
+ error?: never;
1249
+ } | {
1250
+ ok: boolean;
1251
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1252
+ } | {
1253
+ ok: boolean;
1254
+ backup: BackupRecord;
1255
+ result: {
1256
+ warnings: OperationWarning[];
1257
+ capabilityStatus: PivotOperationCapabilityStatus;
1258
+ ok: boolean;
1259
+ copied?: string[];
1260
+ source?: PivotTableInfo;
1261
+ target?: PivotTableInfo;
1262
+ };
1263
+ warnings: OperationWarning[];
1264
+ capabilityStatus: PivotOperationCapabilityStatus;
1265
+ } | {
1266
+ ok: boolean;
1267
+ request: PivotCopyFromTemplateRequest;
1268
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1269
+ target?: never;
1270
+ source?: never;
1271
+ issues?: never;
1272
+ } | {
1273
+ ok: boolean;
1274
+ target: unknown;
1275
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1276
+ request?: never;
1277
+ source?: never;
1278
+ issues?: never;
1279
+ } | {
1280
+ ok: boolean;
1281
+ source: unknown;
1282
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1283
+ request?: never;
1284
+ target?: never;
1285
+ issues?: never;
1286
+ } | {
1287
+ ok: boolean;
1288
+ source: unknown;
1289
+ target: unknown;
1290
+ issues: ValidationIssue[];
1291
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1292
+ request?: never;
1293
+ }>;
1294
+ deletePivotTable(request: PivotSelector): Promise<{
1295
+ ok: boolean;
1296
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1297
+ error?: never;
1298
+ } | {
1299
+ ok: boolean;
1300
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1301
+ } | {
1302
+ ok: boolean;
1303
+ backup: BackupRecord;
1304
+ result: unknown;
1305
+ } | {
1306
+ ok: boolean;
1307
+ target: unknown;
1308
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1309
+ }>;
1310
+ validatePivotSource(request: PivotValidateSourceRequest): Promise<{
1311
+ ok: boolean;
1312
+ info: unknown;
1313
+ summary: {
1314
+ hasSource: boolean;
1315
+ sourceType: string | undefined;
1316
+ hasOutputRange: boolean;
1317
+ hierarchyCount: number;
1318
+ sourceFieldCount: number;
1319
+ sourceFields: string[];
1320
+ rowFields: string[];
1321
+ columnFields: string[];
1322
+ filterFields: string[];
1323
+ dataFields: string[];
1324
+ };
1325
+ issues: {
1326
+ code: string;
1327
+ severity: "info" | "warning" | "error";
1328
+ message: string;
1329
+ details?: Record<string, unknown>;
1330
+ }[];
1331
+ }>;
1332
+ getPivotCapabilityMatrix(workbookId?: WorkbookId): {
1333
+ ok: boolean;
1334
+ matrix: {
1335
+ workbookId: WorkbookId | undefined;
1336
+ hostPlatform: "unknown" | "mac" | "windows" | "web" | undefined;
1337
+ capabilities: ({
1338
+ capability: string;
1339
+ status: string;
1340
+ reason?: never;
1341
+ } | {
1342
+ capability: string;
1343
+ status: string;
1344
+ reason: string;
1345
+ })[];
1346
+ };
1347
+ };
1348
+ getPivotFingerprint(request: PivotSelector): Promise<{
1349
+ ok: boolean;
1350
+ info: unknown;
1351
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1352
+ fingerprint?: never;
1353
+ } | {
1354
+ ok: boolean;
1355
+ fingerprint: PivotFingerprint;
1356
+ info: PivotTableInfo;
1357
+ error?: never;
1358
+ }>;
1359
+ comparePivotFingerprint(request: PivotCompareFingerprintRequest): Promise<{
1360
+ ok: boolean;
1361
+ source: {
1362
+ ok: boolean;
1363
+ info: unknown;
1364
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1365
+ fingerprint?: never;
1366
+ } | {
1367
+ ok: boolean;
1368
+ fingerprint: PivotFingerprint;
1369
+ info: PivotTableInfo;
1370
+ error?: never;
1371
+ };
1372
+ target: {
1373
+ ok: boolean;
1374
+ info: unknown;
1375
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1376
+ fingerprint?: never;
1377
+ } | {
1378
+ ok: boolean;
1379
+ fingerprint: PivotFingerprint;
1380
+ info: PivotTableInfo;
1381
+ error?: never;
1382
+ };
1383
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1384
+ diff?: never;
1385
+ } | {
1386
+ ok: boolean;
1387
+ source: PivotFingerprint;
1388
+ target: PivotFingerprint;
1389
+ diff: PivotDiff;
1390
+ error?: never;
1391
+ }>;
1392
+ diffPivotTables(request: PivotCompareFingerprintRequest): Promise<PivotDiff>;
1393
+ repairPivotFromTemplate(request: PivotRepairFromTemplateRequest): Promise<{
1394
+ ok: boolean;
1395
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1396
+ error?: never;
1397
+ } | {
1398
+ ok: boolean;
1399
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1400
+ } | {
1401
+ ok: boolean;
1402
+ backup: BackupRecord;
1403
+ result: {
1404
+ warnings: OperationWarning[];
1405
+ capabilityStatus: PivotOperationCapabilityStatus;
1406
+ ok: boolean;
1407
+ copied?: string[];
1408
+ source?: PivotTableInfo;
1409
+ target?: PivotTableInfo;
1410
+ };
1411
+ warnings: OperationWarning[];
1412
+ capabilityStatus: PivotOperationCapabilityStatus;
1413
+ } | {
1414
+ ok: boolean;
1415
+ before: {
1416
+ ok: boolean;
1417
+ source: {
1418
+ ok: boolean;
1419
+ info: unknown;
1420
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1421
+ fingerprint?: never;
1422
+ } | {
1423
+ ok: boolean;
1424
+ fingerprint: PivotFingerprint;
1425
+ info: PivotTableInfo;
1426
+ error?: never;
1427
+ };
1428
+ target: {
1429
+ ok: boolean;
1430
+ info: unknown;
1431
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1432
+ fingerprint?: never;
1433
+ } | {
1434
+ ok: boolean;
1435
+ fingerprint: PivotFingerprint;
1436
+ info: PivotTableInfo;
1437
+ error?: never;
1438
+ };
1439
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1440
+ diff?: never;
1441
+ } | {
1442
+ ok: boolean;
1443
+ source: PivotFingerprint;
1444
+ target: PivotFingerprint;
1445
+ diff: PivotDiff;
1446
+ error?: never;
1447
+ };
1448
+ warnings: OperationWarning[];
1449
+ capabilityStatus: PivotOperationCapabilityStatus;
1450
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1451
+ copy?: never;
1452
+ after?: never;
1453
+ } | {
1454
+ ok: boolean;
1455
+ before: {
1456
+ ok: boolean;
1457
+ source: {
1458
+ ok: boolean;
1459
+ info: unknown;
1460
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1461
+ fingerprint?: never;
1462
+ } | {
1463
+ ok: boolean;
1464
+ fingerprint: PivotFingerprint;
1465
+ info: PivotTableInfo;
1466
+ error?: never;
1467
+ };
1468
+ target: {
1469
+ ok: boolean;
1470
+ info: unknown;
1471
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1472
+ fingerprint?: never;
1473
+ } | {
1474
+ ok: boolean;
1475
+ fingerprint: PivotFingerprint;
1476
+ info: PivotTableInfo;
1477
+ error?: never;
1478
+ };
1479
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1480
+ diff?: never;
1481
+ } | {
1482
+ ok: boolean;
1483
+ source: PivotFingerprint;
1484
+ target: PivotFingerprint;
1485
+ diff: PivotDiff;
1486
+ error?: never;
1487
+ };
1488
+ copy: {
1489
+ ok: boolean;
1490
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1491
+ error?: never;
1492
+ } | {
1493
+ ok: boolean;
1494
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1495
+ } | {
1496
+ ok: boolean;
1497
+ backup: BackupRecord;
1498
+ result: {
1499
+ warnings: OperationWarning[];
1500
+ capabilityStatus: PivotOperationCapabilityStatus;
1501
+ ok: boolean;
1502
+ copied?: string[];
1503
+ source?: PivotTableInfo;
1504
+ target?: PivotTableInfo;
1505
+ };
1506
+ warnings: OperationWarning[];
1507
+ capabilityStatus: PivotOperationCapabilityStatus;
1508
+ } | {
1509
+ ok: boolean;
1510
+ request: PivotCopyFromTemplateRequest;
1511
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1512
+ target?: never;
1513
+ source?: never;
1514
+ issues?: never;
1515
+ } | {
1516
+ ok: boolean;
1517
+ target: unknown;
1518
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1519
+ request?: never;
1520
+ source?: never;
1521
+ issues?: never;
1522
+ } | {
1523
+ ok: boolean;
1524
+ source: unknown;
1525
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1526
+ request?: never;
1527
+ target?: never;
1528
+ issues?: never;
1529
+ } | {
1530
+ ok: boolean;
1531
+ source: unknown;
1532
+ target: unknown;
1533
+ issues: ValidationIssue[];
1534
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1535
+ request?: never;
1536
+ };
1537
+ after: {
1538
+ ok: boolean;
1539
+ source: {
1540
+ ok: boolean;
1541
+ info: unknown;
1542
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1543
+ fingerprint?: never;
1544
+ } | {
1545
+ ok: boolean;
1546
+ fingerprint: PivotFingerprint;
1547
+ info: PivotTableInfo;
1548
+ error?: never;
1549
+ };
1550
+ target: {
1551
+ ok: boolean;
1552
+ info: unknown;
1553
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1554
+ fingerprint?: never;
1555
+ } | {
1556
+ ok: boolean;
1557
+ fingerprint: PivotFingerprint;
1558
+ info: PivotTableInfo;
1559
+ error?: never;
1560
+ };
1561
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1562
+ diff?: never;
1563
+ } | {
1564
+ ok: boolean;
1565
+ source: PivotFingerprint;
1566
+ target: PivotFingerprint;
1567
+ diff: PivotDiff;
1568
+ error?: never;
1569
+ };
1570
+ warnings: OperationWarning[];
1571
+ capabilityStatus: PivotOperationCapabilityStatus;
1572
+ error?: never;
1573
+ }>;
1574
+ rebuildPivotWithSource(request: PivotRebuildWithSourceRequest): Promise<{
1575
+ ok: boolean;
1576
+ request: PivotRebuildWithSourceRequest;
1577
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1578
+ deleted?: never;
1579
+ created?: never;
1580
+ warnings?: never;
1581
+ capabilityStatus?: never;
1582
+ repaired?: never;
1583
+ } | {
1584
+ ok: boolean;
1585
+ request: PivotRebuildWithSourceRequest;
1586
+ deleted: {
1587
+ ok: boolean;
1588
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1589
+ error?: never;
1590
+ } | {
1591
+ ok: boolean;
1592
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1593
+ } | {
1594
+ ok: boolean;
1595
+ backup: BackupRecord;
1596
+ result: unknown;
1597
+ } | {
1598
+ ok: boolean;
1599
+ target: unknown;
1600
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1601
+ };
1602
+ error?: never;
1603
+ created?: never;
1604
+ warnings?: never;
1605
+ capabilityStatus?: never;
1606
+ repaired?: never;
1607
+ } | {
1608
+ ok: boolean | undefined;
1609
+ deleted: {
1610
+ ok: boolean;
1611
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1612
+ error?: never;
1613
+ } | {
1614
+ ok: boolean;
1615
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1616
+ } | {
1617
+ ok: boolean;
1618
+ backup: BackupRecord;
1619
+ result: unknown;
1620
+ } | {
1621
+ ok: boolean;
1622
+ target: unknown;
1623
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1624
+ };
1625
+ created: {
1626
+ ok: boolean;
1627
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1628
+ } | {
1629
+ ok: boolean;
1630
+ backup: {
1631
+ ok: boolean;
1632
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1633
+ snapshot?: never;
1634
+ } | {
1635
+ ok: boolean;
1636
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1637
+ error?: never;
1638
+ } | {
1639
+ ok: boolean;
1640
+ backup: BackupRecord;
1641
+ };
1642
+ result: unknown;
1643
+ };
1644
+ warnings: OperationWarning[];
1645
+ capabilityStatus: PivotOperationCapabilityStatus;
1646
+ request?: never;
1647
+ error?: never;
1648
+ repaired?: never;
1649
+ } | {
1650
+ ok: boolean | undefined;
1651
+ deleted: {
1652
+ ok: boolean;
1653
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1654
+ error?: never;
1655
+ } | {
1656
+ ok: boolean;
1657
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1658
+ } | {
1659
+ ok: boolean;
1660
+ backup: BackupRecord;
1661
+ result: unknown;
1662
+ } | {
1663
+ ok: boolean;
1664
+ target: unknown;
1665
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1666
+ };
1667
+ created: {
1668
+ ok: boolean;
1669
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1670
+ } | {
1671
+ ok: boolean;
1672
+ backup: {
1673
+ ok: boolean;
1674
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1675
+ snapshot?: never;
1676
+ } | {
1677
+ ok: boolean;
1678
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1679
+ error?: never;
1680
+ } | {
1681
+ ok: boolean;
1682
+ backup: BackupRecord;
1683
+ };
1684
+ result: unknown;
1685
+ };
1686
+ repaired: {
1687
+ ok: boolean;
1688
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1689
+ error?: never;
1690
+ } | {
1691
+ ok: boolean;
1692
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1693
+ } | {
1694
+ ok: boolean;
1695
+ backup: BackupRecord;
1696
+ result: {
1697
+ warnings: OperationWarning[];
1698
+ capabilityStatus: PivotOperationCapabilityStatus;
1699
+ ok: boolean;
1700
+ copied?: string[];
1701
+ source?: PivotTableInfo;
1702
+ target?: PivotTableInfo;
1703
+ };
1704
+ warnings: OperationWarning[];
1705
+ capabilityStatus: PivotOperationCapabilityStatus;
1706
+ } | {
1707
+ ok: boolean;
1708
+ before: {
1709
+ ok: boolean;
1710
+ source: {
1711
+ ok: boolean;
1712
+ info: unknown;
1713
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1714
+ fingerprint?: never;
1715
+ } | {
1716
+ ok: boolean;
1717
+ fingerprint: PivotFingerprint;
1718
+ info: PivotTableInfo;
1719
+ error?: never;
1720
+ };
1721
+ target: {
1722
+ ok: boolean;
1723
+ info: unknown;
1724
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1725
+ fingerprint?: never;
1726
+ } | {
1727
+ ok: boolean;
1728
+ fingerprint: PivotFingerprint;
1729
+ info: PivotTableInfo;
1730
+ error?: never;
1731
+ };
1732
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1733
+ diff?: never;
1734
+ } | {
1735
+ ok: boolean;
1736
+ source: PivotFingerprint;
1737
+ target: PivotFingerprint;
1738
+ diff: PivotDiff;
1739
+ error?: never;
1740
+ };
1741
+ warnings: OperationWarning[];
1742
+ capabilityStatus: PivotOperationCapabilityStatus;
1743
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1744
+ copy?: never;
1745
+ after?: never;
1746
+ } | {
1747
+ ok: boolean;
1748
+ before: {
1749
+ ok: boolean;
1750
+ source: {
1751
+ ok: boolean;
1752
+ info: unknown;
1753
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1754
+ fingerprint?: never;
1755
+ } | {
1756
+ ok: boolean;
1757
+ fingerprint: PivotFingerprint;
1758
+ info: PivotTableInfo;
1759
+ error?: never;
1760
+ };
1761
+ target: {
1762
+ ok: boolean;
1763
+ info: unknown;
1764
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1765
+ fingerprint?: never;
1766
+ } | {
1767
+ ok: boolean;
1768
+ fingerprint: PivotFingerprint;
1769
+ info: PivotTableInfo;
1770
+ error?: never;
1771
+ };
1772
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1773
+ diff?: never;
1774
+ } | {
1775
+ ok: boolean;
1776
+ source: PivotFingerprint;
1777
+ target: PivotFingerprint;
1778
+ diff: PivotDiff;
1779
+ error?: never;
1780
+ };
1781
+ copy: {
1782
+ ok: boolean;
1783
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1784
+ error?: never;
1785
+ } | {
1786
+ ok: boolean;
1787
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1788
+ } | {
1789
+ ok: boolean;
1790
+ backup: BackupRecord;
1791
+ result: {
1792
+ warnings: OperationWarning[];
1793
+ capabilityStatus: PivotOperationCapabilityStatus;
1794
+ ok: boolean;
1795
+ copied?: string[];
1796
+ source?: PivotTableInfo;
1797
+ target?: PivotTableInfo;
1798
+ };
1799
+ warnings: OperationWarning[];
1800
+ capabilityStatus: PivotOperationCapabilityStatus;
1801
+ } | {
1802
+ ok: boolean;
1803
+ request: PivotCopyFromTemplateRequest;
1804
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1805
+ target?: never;
1806
+ source?: never;
1807
+ issues?: never;
1808
+ } | {
1809
+ ok: boolean;
1810
+ target: unknown;
1811
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1812
+ request?: never;
1813
+ source?: never;
1814
+ issues?: never;
1815
+ } | {
1816
+ ok: boolean;
1817
+ source: unknown;
1818
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1819
+ request?: never;
1820
+ target?: never;
1821
+ issues?: never;
1822
+ } | {
1823
+ ok: boolean;
1824
+ source: unknown;
1825
+ target: unknown;
1826
+ issues: ValidationIssue[];
1827
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1828
+ request?: never;
1829
+ };
1830
+ after: {
1831
+ ok: boolean;
1832
+ source: {
1833
+ ok: boolean;
1834
+ info: unknown;
1835
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1836
+ fingerprint?: never;
1837
+ } | {
1838
+ ok: boolean;
1839
+ fingerprint: PivotFingerprint;
1840
+ info: PivotTableInfo;
1841
+ error?: never;
1842
+ };
1843
+ target: {
1844
+ ok: boolean;
1845
+ info: unknown;
1846
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1847
+ fingerprint?: never;
1848
+ } | {
1849
+ ok: boolean;
1850
+ fingerprint: PivotFingerprint;
1851
+ info: PivotTableInfo;
1852
+ error?: never;
1853
+ };
1854
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1855
+ diff?: never;
1856
+ } | {
1857
+ ok: boolean;
1858
+ source: PivotFingerprint;
1859
+ target: PivotFingerprint;
1860
+ diff: PivotDiff;
1861
+ error?: never;
1862
+ };
1863
+ warnings: OperationWarning[];
1864
+ capabilityStatus: PivotOperationCapabilityStatus;
1865
+ error?: never;
1866
+ };
1867
+ warnings: OperationWarning[];
1868
+ capabilityStatus: PivotOperationCapabilityStatus;
1869
+ request?: never;
1870
+ error?: never;
1871
+ } | {
1872
+ warnings: OperationWarning[];
1873
+ capabilityStatus: PivotOperationCapabilityStatus;
1874
+ ok?: never;
1875
+ request?: never;
1876
+ error?: never;
1877
+ deleted?: never;
1878
+ created?: never;
1879
+ repaired?: never;
1880
+ } | {
1881
+ ok: boolean | undefined;
1882
+ created: {
1883
+ ok: boolean;
1884
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1885
+ } | {
1886
+ ok: boolean;
1887
+ backup: {
1888
+ ok: boolean;
1889
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1890
+ snapshot?: never;
1891
+ } | {
1892
+ ok: boolean;
1893
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1894
+ error?: never;
1895
+ } | {
1896
+ ok: boolean;
1897
+ backup: BackupRecord;
1898
+ };
1899
+ result: unknown;
1900
+ };
1901
+ repaired: {
1902
+ ok: boolean;
1903
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1904
+ error?: never;
1905
+ } | {
1906
+ ok: boolean;
1907
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1908
+ } | {
1909
+ ok: boolean;
1910
+ backup: BackupRecord;
1911
+ result: {
1912
+ warnings: OperationWarning[];
1913
+ capabilityStatus: PivotOperationCapabilityStatus;
1914
+ ok: boolean;
1915
+ copied?: string[];
1916
+ source?: PivotTableInfo;
1917
+ target?: PivotTableInfo;
1918
+ };
1919
+ warnings: OperationWarning[];
1920
+ capabilityStatus: PivotOperationCapabilityStatus;
1921
+ } | {
1922
+ ok: boolean;
1923
+ before: {
1924
+ ok: boolean;
1925
+ source: {
1926
+ ok: boolean;
1927
+ info: unknown;
1928
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1929
+ fingerprint?: never;
1930
+ } | {
1931
+ ok: boolean;
1932
+ fingerprint: PivotFingerprint;
1933
+ info: PivotTableInfo;
1934
+ error?: never;
1935
+ };
1936
+ target: {
1937
+ ok: boolean;
1938
+ info: unknown;
1939
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1940
+ fingerprint?: never;
1941
+ } | {
1942
+ ok: boolean;
1943
+ fingerprint: PivotFingerprint;
1944
+ info: PivotTableInfo;
1945
+ error?: never;
1946
+ };
1947
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1948
+ diff?: never;
1949
+ } | {
1950
+ ok: boolean;
1951
+ source: PivotFingerprint;
1952
+ target: PivotFingerprint;
1953
+ diff: PivotDiff;
1954
+ error?: never;
1955
+ };
1956
+ warnings: OperationWarning[];
1957
+ capabilityStatus: PivotOperationCapabilityStatus;
1958
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1959
+ copy?: never;
1960
+ after?: never;
1961
+ } | {
1962
+ ok: boolean;
1963
+ before: {
1964
+ ok: boolean;
1965
+ source: {
1966
+ ok: boolean;
1967
+ info: unknown;
1968
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1969
+ fingerprint?: never;
1970
+ } | {
1971
+ ok: boolean;
1972
+ fingerprint: PivotFingerprint;
1973
+ info: PivotTableInfo;
1974
+ error?: never;
1975
+ };
1976
+ target: {
1977
+ ok: boolean;
1978
+ info: unknown;
1979
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1980
+ fingerprint?: never;
1981
+ } | {
1982
+ ok: boolean;
1983
+ fingerprint: PivotFingerprint;
1984
+ info: PivotTableInfo;
1985
+ error?: never;
1986
+ };
1987
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
1988
+ diff?: never;
1989
+ } | {
1990
+ ok: boolean;
1991
+ source: PivotFingerprint;
1992
+ target: PivotFingerprint;
1993
+ diff: PivotDiff;
1994
+ error?: never;
1995
+ };
1996
+ copy: {
1997
+ ok: boolean;
1998
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
1999
+ error?: never;
2000
+ } | {
2001
+ ok: boolean;
2002
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2003
+ } | {
2004
+ ok: boolean;
2005
+ backup: BackupRecord;
2006
+ result: {
2007
+ warnings: OperationWarning[];
2008
+ capabilityStatus: PivotOperationCapabilityStatus;
2009
+ ok: boolean;
2010
+ copied?: string[];
2011
+ source?: PivotTableInfo;
2012
+ target?: PivotTableInfo;
2013
+ };
2014
+ warnings: OperationWarning[];
2015
+ capabilityStatus: PivotOperationCapabilityStatus;
2016
+ } | {
2017
+ ok: boolean;
2018
+ request: PivotCopyFromTemplateRequest;
2019
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2020
+ target?: never;
2021
+ source?: never;
2022
+ issues?: never;
2023
+ } | {
2024
+ ok: boolean;
2025
+ target: unknown;
2026
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2027
+ request?: never;
2028
+ source?: never;
2029
+ issues?: never;
2030
+ } | {
2031
+ ok: boolean;
2032
+ source: unknown;
2033
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2034
+ request?: never;
2035
+ target?: never;
2036
+ issues?: never;
2037
+ } | {
2038
+ ok: boolean;
2039
+ source: unknown;
2040
+ target: unknown;
2041
+ issues: ValidationIssue[];
2042
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2043
+ request?: never;
2044
+ };
2045
+ after: {
2046
+ ok: boolean;
2047
+ source: {
2048
+ ok: boolean;
2049
+ info: unknown;
2050
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2051
+ fingerprint?: never;
2052
+ } | {
2053
+ ok: boolean;
2054
+ fingerprint: PivotFingerprint;
2055
+ info: PivotTableInfo;
2056
+ error?: never;
2057
+ };
2058
+ target: {
2059
+ ok: boolean;
2060
+ info: unknown;
2061
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2062
+ fingerprint?: never;
2063
+ } | {
2064
+ ok: boolean;
2065
+ fingerprint: PivotFingerprint;
2066
+ info: PivotTableInfo;
2067
+ error?: never;
2068
+ };
2069
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2070
+ diff?: never;
2071
+ } | {
2072
+ ok: boolean;
2073
+ source: PivotFingerprint;
2074
+ target: PivotFingerprint;
2075
+ diff: PivotDiff;
2076
+ error?: never;
2077
+ };
2078
+ warnings: OperationWarning[];
2079
+ capabilityStatus: PivotOperationCapabilityStatus;
2080
+ error?: never;
2081
+ };
2082
+ warnings: OperationWarning[];
2083
+ capabilityStatus: PivotOperationCapabilityStatus;
2084
+ request?: never;
2085
+ error?: never;
2086
+ deleted?: never;
2087
+ }>;
2088
+ listCharts(workbookId: WorkbookId): Promise<unknown>;
2089
+ getChartInfo(request: ChartSelector): Promise<unknown>;
2090
+ createChart(request: ChartCreateRequest): Promise<{
2091
+ ok: boolean;
2092
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2093
+ } | {
2094
+ ok: boolean;
2095
+ backup: {
2096
+ ok: boolean;
2097
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2098
+ snapshot?: never;
2099
+ } | {
2100
+ ok: boolean;
2101
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2102
+ error?: never;
2103
+ } | {
2104
+ ok: boolean;
2105
+ backup: BackupRecord;
2106
+ };
2107
+ result: unknown;
2108
+ }>;
2109
+ updateChartDataSource(request: ChartUpdateDataSourceRequest): Promise<{
2110
+ ok: boolean;
2111
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2112
+ } | {
2113
+ ok: boolean;
2114
+ backup: {
2115
+ ok: boolean;
2116
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2117
+ snapshot?: never;
2118
+ } | {
2119
+ ok: boolean;
2120
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2121
+ error?: never;
2122
+ } | {
2123
+ ok: boolean;
2124
+ backup: BackupRecord;
2125
+ };
2126
+ result: unknown;
2127
+ }>;
2128
+ copyChartFromTemplate(request: ChartSelector & {
2129
+ templateChartName: string;
2130
+ templateSheetName: string;
2131
+ }): Promise<{
2132
+ ok: boolean;
2133
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2134
+ error?: never;
2135
+ } | {
2136
+ ok: boolean;
2137
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2138
+ } | {
2139
+ ok: boolean;
2140
+ backup: BackupRecord;
2141
+ result: unknown;
2142
+ }>;
2143
+ refreshChart(request: ChartSelector): Promise<unknown>;
2144
+ deleteChart(request: ChartSelector): Promise<unknown>;
2145
+ validateChartAgainstTemplate(request: ChartSelector & {
2146
+ templateChartName?: string;
2147
+ templateSheetName?: string;
2148
+ }): Promise<{
2149
+ ok: boolean;
2150
+ target: unknown;
2151
+ template: unknown;
2152
+ note: string;
2153
+ }>;
2154
+ detectRegions(workbookId: WorkbookId): Promise<{
2155
+ ok: boolean;
2156
+ registered: WorkbookRegion[];
2157
+ candidates: {
2158
+ workbookId: WorkbookId;
2159
+ name: string;
2160
+ sheetName: string | undefined;
2161
+ address: string;
2162
+ kind: string;
2163
+ source: string;
2164
+ }[];
2165
+ sources: {
2166
+ map: {
2167
+ ok: boolean;
2168
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2169
+ map?: never;
2170
+ } | {
2171
+ ok: boolean;
2172
+ map: unknown;
2173
+ error?: never;
2174
+ };
2175
+ names: unknown;
2176
+ };
2177
+ }>;
2178
+ registerRegion(request: RegionRegisterRequest): Promise<{
2179
+ ok: boolean;
2180
+ region: WorkbookRegion;
2181
+ }>;
2182
+ listRegions(workbookId: WorkbookId): {
2183
+ ok: boolean;
2184
+ regions: WorkbookRegion[];
2185
+ };
2186
+ getRegion(request: RegionSelector): Promise<{
2187
+ ok: boolean;
2188
+ region: WorkbookRegion;
2189
+ error?: never;
2190
+ } | {
2191
+ ok: boolean;
2192
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2193
+ region?: never;
2194
+ }>;
2195
+ clearRegionValues(request: RegionSelector): Promise<OperationResult | {
2196
+ ok: false;
2197
+ error: ReturnType<typeof runtimeError>;
2198
+ }>;
2199
+ writeRegionValues(request: RegionSelector & {
2200
+ values: unknown[][];
2201
+ }): Promise<OperationResult | {
2202
+ ok: false;
2203
+ error: ReturnType<typeof runtimeError>;
2204
+ }>;
2205
+ fillRegion(request: RegionSelector & {
2206
+ values: unknown[][];
2207
+ clearFirst?: boolean;
2208
+ }): Promise<OperationResult | {
2209
+ ok: false;
2210
+ error: ReturnType<typeof runtimeError>;
2211
+ }>;
2212
+ cleanDetectHeaderRow(input: CleanRangeInput & {
2213
+ maxRows?: number;
2214
+ }): Promise<CleaningReport>;
2215
+ cleanNormalizeHeaders(input: CleanRangeInput & {
2216
+ headerRowIndex?: number;
2217
+ }): Promise<CleaningReport>;
2218
+ cleanTrimWhitespace(input: CleanRangeInput): Promise<CleaningReport>;
2219
+ cleanRemoveDuplicates(input: CleanRangeInput & {
2220
+ hasHeader?: boolean;
2221
+ keyColumns?: number[];
2222
+ }): Promise<CleaningReport>;
2223
+ cleanParseDates(input: CleanRangeInput): Promise<CleaningReport>;
2224
+ cleanParseNumbers(input: CleanRangeInput): Promise<CleaningReport>;
2225
+ cleanStandardizeCurrency(input: CleanRangeInput): Promise<CleaningReport>;
2226
+ cleanFillMissingValues(input: CleanRangeInput & {
2227
+ strategy?: "value" | "zero" | "previous" | "next";
2228
+ value?: unknown;
2229
+ }): Promise<CleaningReport>;
2230
+ cleanSplitColumn(input: CleanRangeInput & {
2231
+ columnIndex: number;
2232
+ delimiter?: string;
2233
+ targetAddress: string;
2234
+ }): Promise<CleaningReport>;
2235
+ cleanMergeColumns(input: CleanRangeInput & {
2236
+ columnIndexes: number[];
2237
+ separator?: string;
2238
+ targetAddress: string;
2239
+ }): Promise<CleaningReport>;
2240
+ cleanDetectOutliers(input: CleanRangeInput & {
2241
+ columnIndex?: number;
2242
+ threshold?: number;
2243
+ }): Promise<CleaningReport>;
2244
+ cleanFuzzyMatch(input: CleanRangeInput & {
2245
+ lookupValues: string[];
2246
+ threshold?: number;
2247
+ }): Promise<CleaningReport>;
2248
+ validateWorkbook(input: {
2249
+ workbookId: WorkbookId;
2250
+ }): Promise<ValidationReport>;
2251
+ validateSheet(input: {
2252
+ workbookId: WorkbookId;
2253
+ sheetName: string;
2254
+ }): Promise<ValidationReport>;
2255
+ validateTemplateConsistency(input: {
2256
+ workbookId: WorkbookId;
2257
+ templateId: TemplateId;
2258
+ targetSheetName: string;
2259
+ }): Promise<ValidationReport>;
2260
+ validateFormulas(input: {
2261
+ workbookId: WorkbookId;
2262
+ sheetName?: string;
2263
+ address?: string;
2264
+ }): Promise<ValidationReport>;
2265
+ validateStyles(input: {
2266
+ workbookId: WorkbookId;
2267
+ templateId?: TemplateId;
2268
+ targetSheetName?: string;
2269
+ sheetName?: string;
2270
+ }): Promise<ValidationReport>;
2271
+ validateTables(input: {
2272
+ workbookId: WorkbookId;
2273
+ tableName?: string;
2274
+ templateId?: TemplateId;
2275
+ }): Promise<ValidationReport>;
2276
+ validateFilters(input: {
2277
+ workbookId: WorkbookId;
2278
+ tableName?: string;
2279
+ }): Promise<ValidationReport>;
2280
+ validatePrintLayout(input: {
2281
+ workbookId: WorkbookId;
2282
+ templateId?: TemplateId;
2283
+ targetSheetName?: string;
2284
+ }): ValidationReport;
2285
+ validateNoBrokenReferences(input: {
2286
+ workbookId: WorkbookId;
2287
+ sheetName?: string;
2288
+ address?: string;
2289
+ }): Promise<ValidationReport>;
2290
+ validateNoFormulaErrors(input: {
2291
+ workbookId: WorkbookId;
2292
+ sheetName?: string;
2293
+ address?: string;
2294
+ }): Promise<ValidationReport>;
2295
+ validateNoUnintendedChanges(input: {
2296
+ workbookId: WorkbookId;
2297
+ snapshotId?: SnapshotId;
2298
+ leftSnapshotId?: SnapshotId;
2299
+ rightSnapshotId?: SnapshotId;
2300
+ }): Promise<ValidationReport>;
2301
+ repairStyleFromTemplate(input: {
2302
+ workbookId: WorkbookId;
2303
+ templateId: TemplateId;
2304
+ targetSheetName: string;
2305
+ }): Promise<RepairReport>;
2306
+ repairFormulasFromTemplate(input: {
2307
+ workbookId: WorkbookId;
2308
+ templateId: TemplateId;
2309
+ targetSheetName: string;
2310
+ }): Promise<RepairReport>;
2311
+ repairFiltersFromTemplate(input: {
2312
+ workbookId: WorkbookId;
2313
+ templateId?: TemplateId;
2314
+ targetSheetName?: string;
2315
+ }): RepairReport;
2316
+ repairTableStructure(input: TableCopyStructureRequest): Promise<RepairReport>;
2317
+ repairPrintLayout(input: {
2318
+ workbookId: WorkbookId;
2319
+ }): RepairReport;
2320
+ repairNamedRanges(input: {
2321
+ workbookId: WorkbookId;
2322
+ }): RepairReport;
2323
+ repairFormulaErrors(input: {
2324
+ workbookId: WorkbookId;
2325
+ }): RepairReport;
2326
+ repairMergedCells(input: {
2327
+ workbookId: WorkbookId;
2328
+ }): RepairReport;
2329
+ listTables(workbookId: WorkbookId): Promise<unknown>;
2330
+ getTableInfo(request: TableSelector): Promise<unknown>;
2331
+ readTable(request: TableSelector): Promise<unknown>;
2332
+ createTable(request: TableCreateRequest): Promise<{
2333
+ ok: false;
2334
+ transactionId: TransactionId;
2335
+ rollbackAvailable: false;
2336
+ backups: [];
2337
+ warnings: OperationWarning[];
2338
+ telemetry: {
2339
+ warningCount: number;
2340
+ };
2341
+ error: ReturnType<typeof runtimeError>;
2342
+ } | {
2343
+ ok: boolean;
2344
+ backup: {
2345
+ ok: boolean;
2346
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2347
+ snapshot?: never;
2348
+ } | {
2349
+ ok: boolean;
2350
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2351
+ error?: never;
2352
+ } | {
2353
+ ok: boolean;
2354
+ backup: BackupRecord;
2355
+ };
2356
+ result: unknown;
2357
+ } | {
2358
+ ok: boolean;
2359
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2360
+ warnings?: never;
2361
+ } | {
2362
+ ok: boolean;
2363
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2364
+ warnings: OperationWarning[];
2365
+ }>;
2366
+ resizeTable(request: TableResizeRequest): Promise<{
2367
+ ok: false;
2368
+ transactionId: TransactionId;
2369
+ rollbackAvailable: false;
2370
+ backups: [];
2371
+ warnings: OperationWarning[];
2372
+ telemetry: {
2373
+ warningCount: number;
2374
+ };
2375
+ error: ReturnType<typeof runtimeError>;
2376
+ } | {
2377
+ ok: boolean;
2378
+ backup: {
2379
+ ok: boolean;
2380
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2381
+ snapshot?: never;
2382
+ } | {
2383
+ ok: boolean;
2384
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2385
+ error?: never;
2386
+ } | {
2387
+ ok: boolean;
2388
+ backup: BackupRecord;
2389
+ };
2390
+ result: unknown;
2391
+ } | {
2392
+ ok: boolean;
2393
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2394
+ warnings?: never;
2395
+ } | {
2396
+ ok: boolean;
2397
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2398
+ warnings: OperationWarning[];
2399
+ }>;
2400
+ appendTableRows(request: TableAppendRowsRequest): Promise<{
2401
+ ok: false;
2402
+ transactionId: TransactionId;
2403
+ rollbackAvailable: false;
2404
+ backups: [];
2405
+ warnings: OperationWarning[];
2406
+ telemetry: {
2407
+ warningCount: number;
2408
+ };
2409
+ error: ReturnType<typeof runtimeError>;
2410
+ } | {
2411
+ ok: boolean;
2412
+ backup: {
2413
+ ok: boolean;
2414
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2415
+ snapshot?: never;
2416
+ } | {
2417
+ ok: boolean;
2418
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2419
+ error?: never;
2420
+ } | {
2421
+ ok: boolean;
2422
+ backup: BackupRecord;
2423
+ };
2424
+ result: unknown;
2425
+ } | {
2426
+ ok: boolean;
2427
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2428
+ warnings?: never;
2429
+ } | {
2430
+ ok: boolean;
2431
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2432
+ warnings: OperationWarning[];
2433
+ }>;
2434
+ updateTableRows(request: TableUpdateRowsRequest): Promise<{
2435
+ ok: false;
2436
+ transactionId: TransactionId;
2437
+ rollbackAvailable: false;
2438
+ backups: [];
2439
+ warnings: OperationWarning[];
2440
+ telemetry: {
2441
+ warningCount: number;
2442
+ };
2443
+ error: ReturnType<typeof runtimeError>;
2444
+ } | {
2445
+ ok: boolean;
2446
+ backup: {
2447
+ ok: boolean;
2448
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2449
+ snapshot?: never;
2450
+ } | {
2451
+ ok: boolean;
2452
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2453
+ error?: never;
2454
+ } | {
2455
+ ok: boolean;
2456
+ backup: BackupRecord;
2457
+ };
2458
+ result: unknown;
2459
+ } | {
2460
+ ok: boolean;
2461
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2462
+ warnings?: never;
2463
+ } | {
2464
+ ok: boolean;
2465
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2466
+ warnings: OperationWarning[];
2467
+ }>;
2468
+ clearTableDataKeepFormulas(request: TableSelector): Promise<{
2469
+ ok: false;
2470
+ transactionId: TransactionId;
2471
+ rollbackAvailable: false;
2472
+ backups: [];
2473
+ warnings: OperationWarning[];
2474
+ telemetry: {
2475
+ warningCount: number;
2476
+ };
2477
+ error: ReturnType<typeof runtimeError>;
2478
+ } | {
2479
+ ok: boolean;
2480
+ backup: {
2481
+ ok: boolean;
2482
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2483
+ snapshot?: never;
2484
+ } | {
2485
+ ok: boolean;
2486
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2487
+ error?: never;
2488
+ } | {
2489
+ ok: boolean;
2490
+ backup: BackupRecord;
2491
+ };
2492
+ result: unknown;
2493
+ } | {
2494
+ ok: boolean;
2495
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2496
+ warnings?: never;
2497
+ } | {
2498
+ ok: boolean;
2499
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2500
+ warnings: OperationWarning[];
2501
+ }>;
2502
+ clearTableFilters(request: TableSelector): Promise<{
2503
+ ok: false;
2504
+ transactionId: TransactionId;
2505
+ rollbackAvailable: false;
2506
+ backups: [];
2507
+ warnings: OperationWarning[];
2508
+ telemetry: {
2509
+ warningCount: number;
2510
+ };
2511
+ error: ReturnType<typeof runtimeError>;
2512
+ } | {
2513
+ ok: boolean;
2514
+ backup: {
2515
+ ok: boolean;
2516
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2517
+ snapshot?: never;
2518
+ } | {
2519
+ ok: boolean;
2520
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2521
+ error?: never;
2522
+ } | {
2523
+ ok: boolean;
2524
+ backup: BackupRecord;
2525
+ };
2526
+ result: unknown;
2527
+ } | {
2528
+ ok: boolean;
2529
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2530
+ warnings?: never;
2531
+ } | {
2532
+ ok: boolean;
2533
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2534
+ warnings: OperationWarning[];
2535
+ }>;
2536
+ applyTableFilters(request: TableApplyFiltersRequest): Promise<{
2537
+ ok: false;
2538
+ transactionId: TransactionId;
2539
+ rollbackAvailable: false;
2540
+ backups: [];
2541
+ warnings: OperationWarning[];
2542
+ telemetry: {
2543
+ warningCount: number;
2544
+ };
2545
+ error: ReturnType<typeof runtimeError>;
2546
+ } | {
2547
+ ok: boolean;
2548
+ backup: {
2549
+ ok: boolean;
2550
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2551
+ snapshot?: never;
2552
+ } | {
2553
+ ok: boolean;
2554
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2555
+ error?: never;
2556
+ } | {
2557
+ ok: boolean;
2558
+ backup: BackupRecord;
2559
+ };
2560
+ result: unknown;
2561
+ } | {
2562
+ ok: boolean;
2563
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2564
+ warnings?: never;
2565
+ } | {
2566
+ ok: boolean;
2567
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2568
+ warnings: OperationWarning[];
2569
+ }>;
2570
+ sortTable(request: TableSortRequest): Promise<{
2571
+ ok: false;
2572
+ transactionId: TransactionId;
2573
+ rollbackAvailable: false;
2574
+ backups: [];
2575
+ warnings: OperationWarning[];
2576
+ telemetry: {
2577
+ warningCount: number;
2578
+ };
2579
+ error: ReturnType<typeof runtimeError>;
2580
+ } | {
2581
+ ok: boolean;
2582
+ backup: {
2583
+ ok: boolean;
2584
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2585
+ snapshot?: never;
2586
+ } | {
2587
+ ok: boolean;
2588
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2589
+ error?: never;
2590
+ } | {
2591
+ ok: boolean;
2592
+ backup: BackupRecord;
2593
+ };
2594
+ result: unknown;
2595
+ } | {
2596
+ ok: boolean;
2597
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2598
+ warnings?: never;
2599
+ } | {
2600
+ ok: boolean;
2601
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2602
+ warnings: OperationWarning[];
2603
+ }>;
2604
+ clearTableSort(request: TableSelector): Promise<{
2605
+ ok: false;
2606
+ transactionId: TransactionId;
2607
+ rollbackAvailable: false;
2608
+ backups: [];
2609
+ warnings: OperationWarning[];
2610
+ telemetry: {
2611
+ warningCount: number;
2612
+ };
2613
+ error: ReturnType<typeof runtimeError>;
2614
+ } | {
2615
+ ok: boolean;
2616
+ backup: {
2617
+ ok: boolean;
2618
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2619
+ snapshot?: never;
2620
+ } | {
2621
+ ok: boolean;
2622
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2623
+ error?: never;
2624
+ } | {
2625
+ ok: boolean;
2626
+ backup: BackupRecord;
2627
+ };
2628
+ result: unknown;
2629
+ } | {
2630
+ ok: boolean;
2631
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2632
+ warnings?: never;
2633
+ } | {
2634
+ ok: boolean;
2635
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2636
+ warnings: OperationWarning[];
2637
+ }>;
2638
+ setTableTotalRow(request: TableSetTotalRowRequest): Promise<{
2639
+ ok: false;
2640
+ transactionId: TransactionId;
2641
+ rollbackAvailable: false;
2642
+ backups: [];
2643
+ warnings: OperationWarning[];
2644
+ telemetry: {
2645
+ warningCount: number;
2646
+ };
2647
+ error: ReturnType<typeof runtimeError>;
2648
+ } | {
2649
+ ok: boolean;
2650
+ backup: {
2651
+ ok: boolean;
2652
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2653
+ snapshot?: never;
2654
+ } | {
2655
+ ok: boolean;
2656
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2657
+ error?: never;
2658
+ } | {
2659
+ ok: boolean;
2660
+ backup: BackupRecord;
2661
+ };
2662
+ result: unknown;
2663
+ } | {
2664
+ ok: boolean;
2665
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2666
+ warnings?: never;
2667
+ } | {
2668
+ ok: boolean;
2669
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2670
+ warnings: OperationWarning[];
2671
+ }>;
2672
+ setTableStyle(request: TableSetStyleRequest): Promise<{
2673
+ ok: false;
2674
+ transactionId: TransactionId;
2675
+ rollbackAvailable: false;
2676
+ backups: [];
2677
+ warnings: OperationWarning[];
2678
+ telemetry: {
2679
+ warningCount: number;
2680
+ };
2681
+ error: ReturnType<typeof runtimeError>;
2682
+ } | {
2683
+ ok: boolean;
2684
+ backup: {
2685
+ ok: boolean;
2686
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2687
+ snapshot?: never;
2688
+ } | {
2689
+ ok: boolean;
2690
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2691
+ error?: never;
2692
+ } | {
2693
+ ok: boolean;
2694
+ backup: BackupRecord;
2695
+ };
2696
+ result: unknown;
2697
+ } | {
2698
+ ok: boolean;
2699
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2700
+ warnings?: never;
2701
+ } | {
2702
+ ok: boolean;
2703
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2704
+ warnings: OperationWarning[];
2705
+ }>;
2706
+ copyTableStructure(request: TableCopyStructureRequest): Promise<{
2707
+ ok: false;
2708
+ transactionId: TransactionId;
2709
+ rollbackAvailable: false;
2710
+ backups: [];
2711
+ warnings: OperationWarning[];
2712
+ telemetry: {
2713
+ warningCount: number;
2714
+ };
2715
+ error: ReturnType<typeof runtimeError>;
2716
+ } | {
2717
+ ok: boolean;
2718
+ backup: {
2719
+ ok: boolean;
2720
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2721
+ snapshot?: never;
2722
+ } | {
2723
+ ok: boolean;
2724
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2725
+ error?: never;
2726
+ } | {
2727
+ ok: boolean;
2728
+ backup: BackupRecord;
2729
+ };
2730
+ result: unknown;
2731
+ } | {
2732
+ ok: boolean;
2733
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2734
+ warnings?: never;
2735
+ } | {
2736
+ ok: boolean;
2737
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2738
+ warnings: OperationWarning[];
2739
+ }>;
2740
+ validateTableAgainstTemplate(request: TableSelector & {
2741
+ templateId: TemplateId;
2742
+ }): Promise<{
2743
+ ok: boolean;
2744
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2745
+ table?: never;
2746
+ templateTables?: never;
2747
+ note?: never;
2748
+ } | {
2749
+ ok: boolean;
2750
+ table: unknown;
2751
+ templateTables: unknown;
2752
+ note: string;
2753
+ error?: never;
2754
+ }>;
2755
+ createWorkbookBackup(input: {
2756
+ workbookId: WorkbookId;
2757
+ reason?: string;
2758
+ ranges?: A1Range[];
2759
+ }): Promise<{
2760
+ ok: boolean;
2761
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2762
+ snapshot?: never;
2763
+ } | {
2764
+ ok: boolean;
2765
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2766
+ error?: never;
2767
+ } | {
2768
+ ok: boolean;
2769
+ backup: BackupRecord;
2770
+ }>;
2771
+ restoreBackup(backupId: BackupId, confirmationToken?: string): Promise<OperationResult>;
2772
+ private mutateTable;
2773
+ private mutateFormulas;
2774
+ private getTableBackupRanges;
2775
+ setActiveWorkbook(workbookIdOrName: string): {
2776
+ ok: boolean;
2777
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2778
+ activeWorkbook?: never;
2779
+ } | {
2780
+ ok: boolean;
2781
+ activeWorkbook: WorkbookRef | undefined;
2782
+ error?: never;
2783
+ };
2784
+ setActiveSheet(sheetName: string): Promise<unknown>;
2785
+ registerTemplate(request: TemplateCaptureRequest): Promise<TemplateRecord>;
2786
+ listTemplates(workbookId?: WorkbookId): TemplateRecord[];
2787
+ getTemplate(templateId: TemplateId): {
2788
+ ok: boolean;
2789
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2790
+ template?: never;
2791
+ } | {
2792
+ ok: boolean;
2793
+ template: TemplateRecord;
2794
+ error?: never;
2795
+ };
2796
+ unregisterTemplate(templateId: TemplateId): {
2797
+ ok: boolean;
2798
+ };
2799
+ exportWorkbookLocalConfig(workbookId: WorkbookId, options?: {
2800
+ includePermissions?: boolean;
2801
+ }): {
2802
+ ok: boolean;
2803
+ workbookId: WorkbookId;
2804
+ config: WorkbookLocalConfig;
2805
+ counts: {
2806
+ templates: number;
2807
+ regions: number;
2808
+ permissions: boolean;
2809
+ };
2810
+ };
2811
+ importWorkbookLocalConfig(request: WorkbookLocalConfigImportRequest): WorkbookLocalConfigImportResponse;
2812
+ embedWorkbookLocalConfig(workbookId: WorkbookId, options?: {
2813
+ includePermissions?: boolean;
2814
+ }): Promise<{
2815
+ ok: boolean;
2816
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2817
+ } | {
2818
+ config: WorkbookLocalConfig;
2819
+ ok: boolean;
2820
+ workbookId: WorkbookId;
2821
+ embedded: boolean;
2822
+ partCount?: number;
2823
+ warnings?: OperationWarning[];
2824
+ error?: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2825
+ }>;
2826
+ readWorkbookEmbeddedLocalConfig(workbookId: WorkbookId): Promise<WorkbookEmbeddedLocalConfigResponse>;
2827
+ importWorkbookEmbeddedLocalConfig(input: {
2828
+ workbookId: WorkbookId;
2829
+ includeTemplates?: boolean;
2830
+ includeRegions?: boolean;
2831
+ includePermissions?: boolean;
2832
+ overwrite?: boolean;
2833
+ }): Promise<WorkbookLocalConfigImportResponse | WorkbookEmbeddedLocalConfigResponse>;
2834
+ detectTemplates(workbookId: WorkbookId): Promise<{
2835
+ ok: boolean;
2836
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2837
+ map?: never;
2838
+ } | {
2839
+ ok: boolean;
2840
+ map: unknown;
2841
+ error?: never;
2842
+ } | {
2843
+ ok: boolean;
2844
+ candidates: {
2845
+ workbookId: WorkbookId;
2846
+ sheetName: string;
2847
+ usedRange: {
2848
+ address: string;
2849
+ rowCount: number;
2850
+ columnCount: number;
2851
+ } | undefined;
2852
+ score: number;
2853
+ reason: string;
2854
+ }[];
2855
+ }>;
2856
+ inferTemplateRegions(templateId: TemplateId): {
2857
+ ok: boolean;
2858
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2859
+ templateId?: never;
2860
+ dataRegions?: never;
2861
+ inferredRegions?: never;
2862
+ } | {
2863
+ ok: boolean;
2864
+ templateId: TemplateId;
2865
+ dataRegions: string[];
2866
+ inferredRegions: {
2867
+ address: string;
2868
+ kind: string;
2869
+ }[];
2870
+ error?: never;
2871
+ };
2872
+ validateSheetAgainstTemplate(input: {
2873
+ workbookId: WorkbookId;
2874
+ templateId: TemplateId;
2875
+ targetSheetName: string;
2876
+ }): Promise<TemplateValidationResponse | {
2877
+ ok: false;
2878
+ error: ReturnType<typeof runtimeError>;
2879
+ }>;
2880
+ getSheetTemplateFingerprint(input: {
2881
+ workbookId: WorkbookId;
2882
+ sheetName: string;
2883
+ dataRegions?: string[];
2884
+ }): Promise<{
2885
+ ok: boolean;
2886
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2887
+ fingerprint?: never;
2888
+ } | {
2889
+ ok: boolean;
2890
+ fingerprint: SheetTemplateFingerprintResponse;
2891
+ error?: never;
2892
+ }>;
2893
+ getStyleFingerprint(input: StyleFingerprintRequest): Promise<{
2894
+ ok: true;
2895
+ fingerprint: StyleFingerprintResponse;
2896
+ } | {
2897
+ ok: false;
2898
+ error: ReturnType<typeof runtimeError>;
2899
+ }>;
2900
+ compareStyleFingerprints(input: {
2901
+ workbookId: WorkbookId;
2902
+ sourceSheetName: string;
2903
+ targetSheetName: string;
2904
+ sourceAddress?: string;
2905
+ targetAddress?: string;
2906
+ dimensions?: StyleDimension[];
2907
+ maxCellSamples?: number;
2908
+ }): Promise<StyleCompareResponse | {
2909
+ ok: false;
2910
+ error: ReturnType<typeof runtimeError>;
2911
+ }>;
2912
+ copyStyleDimensions(input: StyleCopyRequest): Promise<{
2913
+ ok: boolean;
2914
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2915
+ warnings?: never;
2916
+ backup?: never;
2917
+ result?: never;
2918
+ validation?: never;
2919
+ } | {
2920
+ ok: boolean;
2921
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2922
+ warnings: OperationWarning[];
2923
+ backup?: never;
2924
+ result?: never;
2925
+ validation?: never;
2926
+ } | {
2927
+ ok: boolean;
2928
+ backup: {
2929
+ ok: boolean;
2930
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2931
+ snapshot?: never;
2932
+ } | {
2933
+ ok: boolean;
2934
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
2935
+ error?: never;
2936
+ } | {
2937
+ ok: boolean;
2938
+ backup: BackupRecord;
2939
+ };
2940
+ result: StyleCopyResponse;
2941
+ validation: StyleCompareResponse | {
2942
+ ok: false;
2943
+ error: ReturnType<typeof runtimeError>;
2944
+ };
2945
+ error?: never;
2946
+ warnings?: never;
2947
+ }>;
2948
+ readFormulaPatterns(input: FormulaPatternRequest): Promise<{
2949
+ ok: true;
2950
+ patterns: FormulaPatternResponse;
2951
+ } | {
2952
+ ok: false;
2953
+ error: ReturnType<typeof runtimeError>;
2954
+ }>;
2955
+ getFormulaDependencyGraph(input: FormulaPatternRequest): Promise<{
2956
+ ok: true;
2957
+ graph: FormulaDependencyGraph;
2958
+ } | {
2959
+ ok: false;
2960
+ error: ReturnType<typeof runtimeError>;
2961
+ }>;
2962
+ traceFormulaPrecedents(input: FormulaPatternRequest): Promise<FormulaTraceResponse | {
2963
+ ok: false;
2964
+ error: ReturnType<typeof runtimeError>;
2965
+ }>;
2966
+ traceFormulaDependents(input: FormulaPatternRequest): Promise<FormulaTraceResponse | {
2967
+ ok: false;
2968
+ error: ReturnType<typeof runtimeError>;
2969
+ }>;
2970
+ private getFormulaGraphTables;
2971
+ compareFormulaPatterns(input: {
2972
+ workbookId: WorkbookId;
2973
+ sourceSheetName: string;
2974
+ targetSheetName: string;
2975
+ sourceAddress?: string;
2976
+ targetAddress?: string;
2977
+ }): Promise<FormulaCompareResponse | {
2978
+ ok: false;
2979
+ error: ReturnType<typeof runtimeError>;
2980
+ }>;
2981
+ copyFormulaPatterns(input: FormulaCopyPatternsRequest): Promise<{
2982
+ ok: false;
2983
+ transactionId: TransactionId;
2984
+ rollbackAvailable: false;
2985
+ backups: [];
2986
+ warnings: OperationWarning[];
2987
+ telemetry: {
2988
+ warningCount: number;
2989
+ };
2990
+ error: ReturnType<typeof runtimeError>;
2991
+ } | {
2992
+ ok: boolean;
2993
+ backup: {
2994
+ ok: boolean;
2995
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
2996
+ snapshot?: never;
2997
+ } | {
2998
+ ok: boolean;
2999
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
3000
+ error?: never;
3001
+ } | {
3002
+ ok: boolean;
3003
+ backup: BackupRecord;
3004
+ };
3005
+ result: FormulaMutationResponse;
3006
+ validation: FormulaCompareResponse | {
3007
+ ok: false;
3008
+ error: ReturnType<typeof runtimeError>;
3009
+ } | undefined;
3010
+ } | {
3011
+ ok: boolean;
3012
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3013
+ warnings?: never;
3014
+ } | {
3015
+ ok: boolean;
3016
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3017
+ warnings: OperationWarning[];
3018
+ }>;
3019
+ fillFormulaPattern(input: FormulaFillRequest): Promise<{
3020
+ ok: false;
3021
+ transactionId: TransactionId;
3022
+ rollbackAvailable: false;
3023
+ backups: [];
3024
+ warnings: OperationWarning[];
3025
+ telemetry: {
3026
+ warningCount: number;
3027
+ };
3028
+ error: ReturnType<typeof runtimeError>;
3029
+ } | {
3030
+ ok: boolean;
3031
+ backup: {
3032
+ ok: boolean;
3033
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3034
+ snapshot?: never;
3035
+ } | {
3036
+ ok: boolean;
3037
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
3038
+ error?: never;
3039
+ } | {
3040
+ ok: boolean;
3041
+ backup: BackupRecord;
3042
+ };
3043
+ result: FormulaMutationResponse;
3044
+ validation: FormulaCompareResponse | {
3045
+ ok: false;
3046
+ error: ReturnType<typeof runtimeError>;
3047
+ } | undefined;
3048
+ } | {
3049
+ ok: boolean;
3050
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3051
+ warnings?: never;
3052
+ } | {
3053
+ ok: boolean;
3054
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3055
+ warnings: OperationWarning[];
3056
+ }>;
3057
+ convertFormulasToValues(input: FormulaPatternRequest): Promise<{
3058
+ ok: false;
3059
+ transactionId: TransactionId;
3060
+ rollbackAvailable: false;
3061
+ backups: [];
3062
+ warnings: OperationWarning[];
3063
+ telemetry: {
3064
+ warningCount: number;
3065
+ };
3066
+ error: ReturnType<typeof runtimeError>;
3067
+ } | {
3068
+ ok: boolean;
3069
+ backup: {
3070
+ ok: boolean;
3071
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3072
+ snapshot?: never;
3073
+ } | {
3074
+ ok: boolean;
3075
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
3076
+ error?: never;
3077
+ } | {
3078
+ ok: boolean;
3079
+ backup: BackupRecord;
3080
+ };
3081
+ result: FormulaMutationResponse;
3082
+ validation: FormulaCompareResponse | {
3083
+ ok: false;
3084
+ error: ReturnType<typeof runtimeError>;
3085
+ } | undefined;
3086
+ } | {
3087
+ ok: boolean;
3088
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3089
+ warnings?: never;
3090
+ } | {
3091
+ ok: boolean;
3092
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3093
+ warnings: OperationWarning[];
3094
+ }>;
3095
+ repairSheetFromTemplate(input: {
3096
+ workbookId: WorkbookId;
3097
+ templateId: TemplateId;
3098
+ targetSheetName: string;
3099
+ repair?: AddinTemplateRepairRequest["repair"];
3100
+ }): Promise<{
3101
+ ok: boolean;
3102
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3103
+ backup?: never;
3104
+ result?: never;
3105
+ validation?: never;
3106
+ } | {
3107
+ ok: boolean;
3108
+ backup: {
3109
+ ok: boolean;
3110
+ error: import("@components-kit/open-workbook-protocol").ExcelRuntimeError;
3111
+ snapshot?: never;
3112
+ } | {
3113
+ ok: boolean;
3114
+ snapshot: import("@components-kit/open-workbook-excel-core").WorkbookSnapshotRecord;
3115
+ error?: never;
3116
+ } | {
3117
+ ok: boolean;
3118
+ backup: BackupRecord;
3119
+ };
3120
+ result: unknown;
3121
+ validation: TemplateValidationResponse | {
3122
+ ok: false;
3123
+ error: ReturnType<typeof runtimeError>;
3124
+ };
3125
+ error?: never;
3126
+ }>;
3127
+ applyPlan(planId: PlanId, confirmationToken?: string): Promise<OperationResult>;
3128
+ rollbackPlan(planId: PlanId, confirmationToken?: string): Promise<OperationResult>;
3129
+ applyBatch(request: BatchRequest): Promise<OperationResult>;
3130
+ private enqueueTransaction;
3131
+ private enqueueRuntimeMutation;
3132
+ private applyDirectTransaction;
3133
+ private applyBatchDirect;
3134
+ private cleanTransform;
3135
+ private readRangeValues;
3136
+ private writeCleanValues;
3137
+ private validateBatchPermissions;
3138
+ private validatePermissionScope;
3139
+ private validateLockedRegions;
3140
+ private validateDirectMutation;
3141
+ private templateRepairReport;
3142
+ private getActiveAddinClient;
3143
+ private resolveTemplateSources;
3144
+ private createRollbackOperations;
3145
+ private getUsedRangesForSnapshot;
3146
+ private getSheetUsedRange;
3147
+ private getPivotTemplateCopyRanges;
3148
+ private getFormulaMutationRanges;
3149
+ private getValidationRanges;
3150
+ private resolveRegion;
3151
+ private persistBackupPayload;
3152
+ private loadBackupPayload;
3153
+ private getBackupDirectory;
3154
+ private getExportDirectory;
3155
+ private defaultWorkbookExportPath;
3156
+ private defaultWorkbookFileBackupPath;
3157
+ private writeWorkbookFileContent;
3158
+ private hashFile;
3159
+ private unlinkBackupPayloadIfSafe;
3160
+ }
3161
+ interface CleanRangeInput {
3162
+ workbookId: WorkbookId;
3163
+ sheetName: string;
3164
+ address: string;
3165
+ }
3166
+ export {};
3167
+ //# sourceMappingURL=runtime-service.d.ts.map