@fluidframework/runtime-definitions 2.0.0-internal.7.2.2 → 2.0.0-internal.7.4.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 (79) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -2
  3. package/api-extractor-lint.json +13 -0
  4. package/api-extractor.json +3 -3
  5. package/api-report/runtime-definitions.api.md +75 -113
  6. package/dist/attribution.d.ts +1 -4
  7. package/dist/attribution.d.ts.map +1 -1
  8. package/dist/attribution.js.map +1 -1
  9. package/dist/dataStoreContext.d.ts +26 -2
  10. package/dist/dataStoreContext.d.ts.map +1 -1
  11. package/dist/dataStoreContext.js +5 -0
  12. package/dist/dataStoreContext.js.map +1 -1
  13. package/dist/dataStoreFactory.d.ts +7 -0
  14. package/dist/dataStoreFactory.d.ts.map +1 -1
  15. package/dist/dataStoreFactory.js +3 -0
  16. package/dist/dataStoreFactory.js.map +1 -1
  17. package/dist/dataStoreRegistry.d.ts +10 -0
  18. package/dist/dataStoreRegistry.d.ts.map +1 -1
  19. package/dist/dataStoreRegistry.js +3 -0
  20. package/dist/dataStoreRegistry.js.map +1 -1
  21. package/dist/garbageCollection.d.ts +22 -4
  22. package/dist/garbageCollection.d.ts.map +1 -1
  23. package/dist/garbageCollection.js +20 -4
  24. package/dist/garbageCollection.js.map +1 -1
  25. package/dist/index.d.ts +49 -1
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +11 -2
  28. package/dist/index.js.map +1 -1
  29. package/dist/protocol.d.ts +7 -0
  30. package/dist/protocol.d.ts.map +1 -1
  31. package/dist/protocol.js.map +1 -1
  32. package/dist/runtime-definitions-alpha.d.ts +1002 -0
  33. package/dist/runtime-definitions-beta.d.ts +201 -0
  34. package/dist/runtime-definitions-public.d.ts +201 -0
  35. package/dist/runtime-definitions-untrimmed.d.ts +1117 -0
  36. package/dist/summary.d.ts +34 -0
  37. package/dist/summary.d.ts.map +1 -1
  38. package/dist/summary.js +12 -0
  39. package/dist/summary.js.map +1 -1
  40. package/dist/tsdoc-metadata.json +1 -1
  41. package/lib/runtime-definitions-alpha.d.ts +1002 -0
  42. package/lib/runtime-definitions-beta.d.ts +201 -0
  43. package/lib/runtime-definitions-public.d.ts +201 -0
  44. package/lib/runtime-definitions-untrimmed.d.ts +1117 -0
  45. package/package.json +44 -15
  46. package/src/attribution.ts +1 -4
  47. package/src/dataStoreContext.ts +26 -2
  48. package/src/dataStoreFactory.ts +7 -0
  49. package/src/dataStoreRegistry.ts +10 -0
  50. package/src/garbageCollection.ts +22 -4
  51. package/src/index.ts +46 -7
  52. package/src/protocol.ts +7 -0
  53. package/src/summary.ts +34 -0
  54. package/dist/id-compressor/idCompressor.d.ts +0 -136
  55. package/dist/id-compressor/idCompressor.d.ts.map +0 -1
  56. package/dist/id-compressor/idCompressor.js +0 -7
  57. package/dist/id-compressor/idCompressor.js.map +0 -1
  58. package/dist/id-compressor/identifiers.d.ts +0 -36
  59. package/dist/id-compressor/identifiers.d.ts.map +0 -1
  60. package/dist/id-compressor/identifiers.js +0 -7
  61. package/dist/id-compressor/identifiers.js.map +0 -1
  62. package/dist/id-compressor/index.d.ts +0 -8
  63. package/dist/id-compressor/index.d.ts.map +0 -1
  64. package/dist/id-compressor/index.js +0 -10
  65. package/dist/id-compressor/index.js.map +0 -1
  66. package/dist/id-compressor/persisted-types/0.0.1.d.ts +0 -44
  67. package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +0 -1
  68. package/dist/id-compressor/persisted-types/0.0.1.js +0 -13
  69. package/dist/id-compressor/persisted-types/0.0.1.js.map +0 -1
  70. package/dist/id-compressor/persisted-types/index.d.ts +0 -6
  71. package/dist/id-compressor/persisted-types/index.d.ts.map +0 -1
  72. package/dist/id-compressor/persisted-types/index.js +0 -10
  73. package/dist/id-compressor/persisted-types/index.js.map +0 -1
  74. package/src/id-compressor/idCompressor.ts +0 -152
  75. package/src/id-compressor/identifiers.ts +0 -35
  76. package/src/id-compressor/index.ts +0 -17
  77. package/src/id-compressor/persisted-types/0.0.1.ts +0 -50
  78. package/src/id-compressor/persisted-types/README.md +0 -3
  79. package/src/id-compressor/persisted-types/index.ts +0 -13
@@ -0,0 +1,1117 @@
1
+ import { AttachState } from '@fluidframework/container-definitions';
2
+ import { FluidObject } from '@fluidframework/core-interfaces';
3
+ import { IAudience } from '@fluidframework/container-definitions';
4
+ import { IClientDetails } from '@fluidframework/protocol-definitions';
5
+ import { IdCompressor } from '@fluidframework/id-compressor';
6
+ import { IdCreationRange } from '@fluidframework/id-compressor';
7
+ import { IDeltaManager } from '@fluidframework/container-definitions';
8
+ import { IDisposable } from '@fluidframework/core-interfaces';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
11
+ import { IEvent } from '@fluidframework/core-interfaces';
12
+ import { IEventProvider } from '@fluidframework/core-interfaces';
13
+ import { IFluidHandle } from '@fluidframework/core-interfaces';
14
+ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
15
+ import { IFluidRouter } from '@fluidframework/core-interfaces';
16
+ import { IIdCompressor } from '@fluidframework/id-compressor';
17
+ import { IIdCompressorCore } from '@fluidframework/id-compressor';
18
+ import { ILoaderOptions } from '@fluidframework/container-definitions';
19
+ import { initialClusterCapacity } from '@fluidframework/id-compressor';
20
+ import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
21
+ import { IQuorumClients } from '@fluidframework/protocol-definitions';
22
+ import { IRequest } from '@fluidframework/core-interfaces';
23
+ import { IResponse } from '@fluidframework/core-interfaces';
24
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
25
+ import { ISignalMessage } from '@fluidframework/protocol-definitions';
26
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
27
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
28
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
29
+ import { ITree } from '@fluidframework/protocol-definitions';
30
+ import type { IUser } from '@fluidframework/protocol-definitions';
31
+ import { OpSpaceCompressedId } from '@fluidframework/id-compressor';
32
+ import { SerializedIdCompressor } from '@fluidframework/id-compressor';
33
+ import { SerializedIdCompressorWithNoSession } from '@fluidframework/id-compressor';
34
+ import { SerializedIdCompressorWithOngoingSession } from '@fluidframework/id-compressor';
35
+ import { SessionId } from '@fluidframework/id-compressor';
36
+ import { SessionSpaceCompressedId } from '@fluidframework/id-compressor';
37
+ import { StableId } from '@fluidframework/id-compressor';
38
+ import { SummaryTree } from '@fluidframework/protocol-definitions';
39
+ import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
40
+
41
+ /**
42
+ * Encapsulates the return codes of the aliasing API.
43
+ *
44
+ * 'Success' - the datastore has been successfully aliased. It can now be used.
45
+ * 'Conflict' - there is already a datastore bound to the provided alias. To acquire it's entry point, use
46
+ * the `IContainerRuntime.getAliasedDataStoreEntryPoint` function. The current datastore should be discarded
47
+ * and will be garbage collected. The current datastore cannot be aliased to a different value.
48
+ * 'AlreadyAliased' - the datastore has already been previously bound to another alias name.
49
+ * @alpha
50
+ */
51
+ export declare type AliasResult = "Success" | "Conflict" | "AlreadyAliased";
52
+
53
+ /**
54
+ * Attribution information associated with a change.
55
+ * @internal
56
+ */
57
+ export declare interface AttributionInfo {
58
+ /**
59
+ * The user that performed the change.
60
+ */
61
+ user: IUser;
62
+ /**
63
+ * When the change happened.
64
+ */
65
+ timestamp: number;
66
+ }
67
+
68
+ /**
69
+ * Can be indexed into the ContainerRuntime in order to retrieve {@link AttributionInfo}.
70
+ * @alpha
71
+ */
72
+ export declare type AttributionKey = OpAttributionKey | DetachedAttributionKey | LocalAttributionKey;
73
+
74
+ /**
75
+ * @internal
76
+ */
77
+ export declare const blobCountPropertyName = "BlobCount";
78
+
79
+ /**
80
+ * @internal
81
+ */
82
+ export declare const channelsTreeName = ".channels";
83
+
84
+ /**
85
+ * @alpha
86
+ */
87
+ export declare type CreateChildSummarizerNodeFn = (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>,
88
+ /**
89
+ * @deprecated The functionality to get base GC details has been moved to summarizer node.
90
+ */
91
+ getBaseGCDetailsFn?: () => Promise<IGarbageCollectionDetailsBase>) => ISummarizerNodeWithGC;
92
+
93
+ /**
94
+ * @alpha
95
+ */
96
+ export declare type CreateChildSummarizerNodeParam = {
97
+ type: CreateSummarizerNodeSource.FromSummary;
98
+ } | {
99
+ type: CreateSummarizerNodeSource.FromAttach;
100
+ sequenceNumber: number;
101
+ snapshot: ITree;
102
+ } | {
103
+ type: CreateSummarizerNodeSource.Local;
104
+ };
105
+
106
+ /**
107
+ * @alpha
108
+ */
109
+ export declare enum CreateSummarizerNodeSource {
110
+ FromSummary = 0,
111
+ FromAttach = 1,
112
+ Local = 2
113
+ }
114
+
115
+ /**
116
+ * AttributionKey associated with content that was inserted while the container was in a detached state.
117
+ *
118
+ * @remarks Retrieving an {@link AttributionInfo} from content associated with detached attribution keys
119
+ * is currently unsupported, as applications can effectively modify content anonymously while detached.
120
+ * The runtime has no mechanism for reliably obtaining the user. It would be reasonable to start supporting
121
+ * this functionality if the host provided additional context to their attributor or attach calls.
122
+ * @alpha
123
+ */
124
+ export declare interface DetachedAttributionKey {
125
+ type: "detached";
126
+ /**
127
+ * Arbitrary discriminator associated with content inserted while detached.
128
+ *
129
+ * @remarks For now, the runtime assumes all content created while detached is associated
130
+ * with the same user/timestamp.
131
+ * We could weaken this assumption in the future with further API support and
132
+ * allow arbitrary strings or numbers as part of this key.
133
+ */
134
+ id: 0;
135
+ }
136
+
137
+ /**
138
+ * A single registry entry that may be used to create data stores
139
+ * It has to have either factory or registry, or both.
140
+ * @alpha
141
+ */
142
+ export declare type FluidDataStoreRegistryEntry = Readonly<Partial<IProvideFluidDataStoreRegistry & IProvideFluidDataStoreFactory>>;
143
+
144
+ /**
145
+ * Runtime flush mode handling
146
+ * @alpha
147
+ */
148
+ export declare enum FlushMode {
149
+ /**
150
+ * In Immediate flush mode the runtime will immediately send all operations to the driver layer.
151
+ */
152
+ Immediate = 0,
153
+ /**
154
+ * When in TurnBased flush mode the runtime will buffer operations in the current turn and send them as a single
155
+ * batch at the end of the turn. The flush call on the runtime can be used to force send the current batch.
156
+ */
157
+ TurnBased = 1
158
+ }
159
+
160
+ /**
161
+ * @internal
162
+ */
163
+ export declare enum FlushModeExperimental {
164
+ /**
165
+ * When in Async flush mode, the runtime will accumulate all operations across JS turns and send them as a single
166
+ * batch when all micro-tasks are complete.
167
+ *
168
+ * This feature requires a version of the loader which supports reference sequence numbers. If an older version of
169
+ * the loader is used, the runtime will fall back on FlushMode.TurnBased.
170
+ *
171
+ * @experimental - Not ready for use
172
+ */
173
+ Async = 2
174
+ }
175
+
176
+ /**
177
+ * They prefix for GC blobs in the GC tree in summary.
178
+ *
179
+ * @internal
180
+ */
181
+ export declare const gcBlobPrefix = "__gc";
182
+
183
+ /**
184
+ * The key for deleted nodes blob in the GC tree in summary.
185
+ *
186
+ * @internal
187
+ */
188
+ export declare const gcDeletedBlobKey = "__deletedNodes";
189
+
190
+ /**
191
+ * The key for tombstone blob in the GC tree in summary.
192
+ *
193
+ * @internal
194
+ */
195
+ export declare const gcTombstoneBlobKey = "__tombstones";
196
+
197
+ /**
198
+ * The key for the GC tree in summary.
199
+ *
200
+ * @internal
201
+ */
202
+ export declare const gcTreeKey = "gc";
203
+
204
+ /**
205
+ * Message send by client attaching local data structure.
206
+ * Contains snapshot of data structure which is the current state of this data structure.
207
+ * @internal
208
+ */
209
+ export declare interface IAttachMessage {
210
+ /**
211
+ * The identifier for the object
212
+ */
213
+ id: string;
214
+ /**
215
+ * The type of object
216
+ */
217
+ type: string;
218
+ /**
219
+ * Initial snapshot of the document (contains ownership)
220
+ */
221
+ snapshot: ITree;
222
+ }
223
+
224
+ /**
225
+ * A reduced set of functionality of IContainerRuntime that a data store context/data store runtime will need
226
+ * TODO: this should be merged into IFluidDataStoreContext
227
+ * @alpha
228
+ */
229
+ export declare interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeBaseEvents> {
230
+ readonly logger: ITelemetryBaseLogger;
231
+ readonly clientDetails: IClientDetails;
232
+ /**
233
+ * Invokes the given callback and guarantees that all operations generated within the callback will be ordered
234
+ * sequentially. Total size of all messages must be less than maxOpSize.
235
+ */
236
+ orderSequentially(callback: () => void): void;
237
+ /**
238
+ * Executes a request against the container runtime
239
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
240
+ */
241
+ request(request: IRequest): Promise<IResponse>;
242
+ /**
243
+ * Submits a container runtime level signal to be sent to other clients.
244
+ * @param type - Type of the signal.
245
+ * @param content - Content of the signal.
246
+ */
247
+ submitSignal(type: string, content: any): void;
248
+ /**
249
+ * @deprecated 0.16 Issue #1537, #3631
250
+ */
251
+ _createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
252
+ /**
253
+ * Creates a data store and returns an object that exposes a handle to the data store's entryPoint, and also serves
254
+ * as the data store's router. The data store is not bound to a container, and in such state is not persisted to
255
+ * storage (file). Storing the entryPoint handle (or any other handle inside the data store, e.g. for DDS) into an
256
+ * already attached DDS (or non-attached DDS that will eventually get attached to storage) will result in this
257
+ * store being attached to storage.
258
+ * @param pkg - Package name of the data store factory
259
+ */
260
+ createDataStore(pkg: string | string[]): Promise<IDataStore>;
261
+ /**
262
+ * Creates detached data store context. Only after context.attachRuntime() is called,
263
+ * data store initialization is considered complete.
264
+ */
265
+ createDetachedDataStore(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
266
+ /**
267
+ * Get an absolute url for a provided container-relative request.
268
+ * Returns undefined if the container or data store isn't attached to storage.
269
+ * @param relativeUrl - A relative request within the container
270
+ */
271
+ getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
272
+ uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
273
+ /**
274
+ * Returns the current quorum.
275
+ */
276
+ getQuorum(): IQuorumClients;
277
+ /**
278
+ * Returns the current audience.
279
+ */
280
+ getAudience(): IAudience;
281
+ /**
282
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
283
+ */
284
+ readonly IFluidHandleContext: IFluidHandleContext;
285
+ }
286
+
287
+ /**
288
+ * @alpha
289
+ */
290
+ export declare interface IContainerRuntimeBaseEvents extends IEvent {
291
+ (event: "batchBegin", listener: (op: ISequencedDocumentMessage) => void): any;
292
+ /**
293
+ * @param runtimeMessage - tells if op is runtime op. If it is, it was unpacked, i.e. it's type and content
294
+ * represent internal container runtime type / content.
295
+ */
296
+ (event: "op", listener: (op: ISequencedDocumentMessage, runtimeMessage?: boolean) => void): any;
297
+ (event: "batchEnd", listener: (error: any, op: ISequencedDocumentMessage) => void): any;
298
+ (event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): any;
299
+ }
300
+
301
+ /**
302
+ * Exposes some functionality/features of a data store:
303
+ * - Handle to the data store's entryPoint
304
+ * - Fluid router for the data store
305
+ * - Can be assigned an alias
306
+ * @alpha
307
+ */
308
+ export declare interface IDataStore {
309
+ /**
310
+ * Attempt to assign an alias to the datastore.
311
+ * If the operation succeeds, the datastore can be referenced
312
+ * by the supplied alias and will not be garbage collected.
313
+ *
314
+ * @param alias - Given alias for this datastore.
315
+ * @returns A promise with the {@link AliasResult}
316
+ */
317
+ trySetAlias(alias: string): Promise<AliasResult>;
318
+ /**
319
+ * Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting
320
+ * with it.
321
+ */
322
+ readonly entryPoint: IFluidHandle<FluidObject>;
323
+ /**
324
+ * @deprecated Requesting will not be supported in a future major release.
325
+ * Instead, access the objects within the DataStore using entryPoint, and then navigate from there using
326
+ * app-specific logic (e.g. retrieving a handle from a DDS, or the entryPoint object could implement a request paradigm itself)
327
+ *
328
+ * IMPORTANT: This overload is provided for back-compat where IDataStore.request(\{ url: "/" \}) is already implemented and used.
329
+ * The functionality it can provide (if the DataStore implementation is built for it) is redundant with @see {@link IDataStore.entryPoint}.
330
+ *
331
+ * Refer to Removing-IFluidRouter.md for details on migrating from the request pattern to using entryPoint.
332
+ *
333
+ * @param request - Only requesting \{ url: "/" \} is supported, requesting arbitrary URLs is deprecated.
334
+ */
335
+ request(request: {
336
+ url: "/";
337
+ headers?: undefined;
338
+ }): Promise<IResponse>;
339
+ /**
340
+ * Issue a request against the DataStore for a resource within it.
341
+ * @param request - The request to be issued against the DataStore
342
+ *
343
+ * @deprecated Requesting an arbitrary URL with headers will not be supported in a future major release.
344
+ * Instead, access the objects within the DataStore using entryPoint, and then navigate from there using
345
+ * app-specific logic (e.g. retrieving a handle from a DDS, or the entryPoint object could implement a request paradigm itself)
346
+ *
347
+ * Refer to Removing-IFluidRouter.md for details on migrating from the request pattern to using entryPoint.
348
+ */
349
+ request(request: IRequest): Promise<IResponse>;
350
+ /**
351
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
352
+ */
353
+ readonly IFluidRouter: IFluidRouter;
354
+ }
355
+
356
+ export { IdCompressor }
357
+
358
+ export { IdCreationRange }
359
+
360
+ /**
361
+ * An envelope wraps the contents with the intended target
362
+ * @internal
363
+ */
364
+ export declare interface IEnvelope {
365
+ /**
366
+ * The target for the envelope
367
+ */
368
+ address: string;
369
+ /**
370
+ * The contents of the envelope
371
+ */
372
+ contents: any;
373
+ }
374
+
375
+ /**
376
+ * @experimental - Can be deleted/changed at any time
377
+ * Contains the necessary information to allow DDSes to do incremental summaries
378
+ * @alpha
379
+ */
380
+ export declare interface IExperimentalIncrementalSummaryContext {
381
+ /**
382
+ * The sequence number of the summary generated that will be sent to the server.
383
+ */
384
+ summarySequenceNumber: number;
385
+ /**
386
+ * The sequence number of the most recent summary that was acknowledged by the server.
387
+ */
388
+ latestSummarySequenceNumber: number;
389
+ /**
390
+ * The path to the runtime/datastore/dds that is used to generate summary handles
391
+ * Note: Summary handles are nodes of the summary tree that point to previous parts of the last successful summary
392
+ * instead of being a blob or tree node
393
+ *
394
+ * This path contains the id of the data store and dds which should not be leaked to layers below them. Ideally,
395
+ * a layer should not know its own id. This is important for channel unification work and there has been a lot of
396
+ * work to remove these kinds of leakages. Some still exist, which have to be fixed but we should not be adding
397
+ * more dependencies.
398
+ */
399
+ summaryPath: string;
400
+ }
401
+
402
+ /**
403
+ * Minimal interface a data store runtime needs to provide for IFluidDataStoreContext to bind to control.
404
+ *
405
+ * Functionality include attach, snapshot, op/signal processing, request routes, expose an entryPoint,
406
+ * and connection state notifications
407
+ * @alpha
408
+ */
409
+ export declare interface IFluidDataStoreChannel extends IDisposable {
410
+ readonly id: string;
411
+ /**
412
+ * Indicates the attachment state of the channel to a host service.
413
+ */
414
+ readonly attachState: AttachState;
415
+ readonly visibilityState: VisibilityState;
416
+ /**
417
+ * Runs through the graph and attaches the bound handles. Then binds this runtime to the container.
418
+ * @deprecated This will be removed in favor of {@link IFluidDataStoreChannel.makeVisibleAndAttachGraph}.
419
+ */
420
+ attachGraph(): void;
421
+ /**
422
+ * Makes the data store channel visible in the container. Also, runs through its graph and attaches all
423
+ * bound handles that represent its dependencies in the container's graph.
424
+ */
425
+ makeVisibleAndAttachGraph(): void;
426
+ /**
427
+ * Retrieves the summary used as part of the initial summary message
428
+ */
429
+ getAttachSummary(telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
430
+ /**
431
+ * Processes the op.
432
+ */
433
+ process(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
434
+ /**
435
+ * Processes the signal.
436
+ */
437
+ processSignal(message: any, local: boolean): void;
438
+ /**
439
+ * Generates a summary for the channel.
440
+ * Introduced with summarizerNode - will be required in a future release.
441
+ * @param fullTree - true to bypass optimizations and force a full summary tree.
442
+ * @param trackState - This tells whether we should track state from this summary.
443
+ * @param telemetryContext - summary data passed through the layers for telemetry purposes
444
+ */
445
+ summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): Promise<ISummaryTreeWithStats>;
446
+ /**
447
+ * Returns the data used for garbage collection. This includes a list of GC nodes that represent this context
448
+ * including any of its children. Each node has a list of outbound routes to other GC nodes in the document.
449
+ * @param fullGC - true to bypass optimizations and force full generation of GC data.
450
+ */
451
+ getGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;
452
+ /**
453
+ * After GC has run, called to notify this channel of routes that are used in it.
454
+ * @param usedRoutes - The routes that are used in this channel.
455
+ */
456
+ updateUsedRoutes(usedRoutes: string[]): void;
457
+ /**
458
+ * Notifies this object about changes in the connection state.
459
+ * @param value - New connection state.
460
+ * @param clientId - ID of the client. It's old ID when in disconnected state and
461
+ * it's new client ID when we are connecting or connected.
462
+ */
463
+ setConnectionState(connected: boolean, clientId?: string): any;
464
+ /**
465
+ * Ask the DDS to resubmit a message. This could be because we reconnected and this message was not acked.
466
+ * @param type - The type of the original message.
467
+ * @param content - The content of the original message.
468
+ * @param localOpMetadata - The local metadata associated with the original message.
469
+ */
470
+ reSubmit(type: string, content: any, localOpMetadata: unknown): any;
471
+ applyStashedOp(content: any): Promise<unknown>;
472
+ /**
473
+ * Revert a local message.
474
+ * @param type - The type of the original message.
475
+ * @param content - The content of the original message.
476
+ * @param localOpMetadata - The local metadata associated with the original message.
477
+ */
478
+ rollback?(type: string, content: any, localOpMetadata: unknown): void;
479
+ /**
480
+ * Exposes a handle to the root object / entryPoint of the component. Use this as the primary way of interacting
481
+ * with the component.
482
+ */
483
+ readonly entryPoint: IFluidHandle<FluidObject>;
484
+ request(request: IRequest): Promise<IResponse>;
485
+ /**
486
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
487
+ */
488
+ readonly IFluidRouter: IFluidRouter;
489
+ }
490
+
491
+ /**
492
+ * Represents the context for the data store. It is used by the data store runtime to
493
+ * get information and call functionality to the container.
494
+ * @alpha
495
+ */
496
+ export declare interface IFluidDataStoreContext extends IEventProvider<IFluidDataStoreContextEvents>, Partial<IProvideFluidDataStoreRegistry>, IProvideFluidHandleContext {
497
+ readonly id: string;
498
+ /**
499
+ * A data store created by a client, is a local data store for that client. Also, when a detached container loads
500
+ * from a snapshot, all the data stores are treated as local data stores because at that stage the container
501
+ * still doesn't exists in storage and so the data store couldn't have been created by any other client.
502
+ * Value of this never changes even after the data store is attached.
503
+ * As implementer of data store runtime, you can use this property to check that this data store belongs to this
504
+ * client and hence implement any scenario based on that.
505
+ */
506
+ readonly isLocalDataStore: boolean;
507
+ /**
508
+ * The package path of the data store as per the package factory.
509
+ */
510
+ readonly packagePath: readonly string[];
511
+ readonly options: ILoaderOptions;
512
+ readonly clientId: string | undefined;
513
+ readonly connected: boolean;
514
+ readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
515
+ readonly storage: IDocumentStorageService;
516
+ readonly baseSnapshot: ISnapshotTree | undefined;
517
+ readonly logger: ITelemetryBaseLogger;
518
+ readonly clientDetails: IClientDetails;
519
+ readonly idCompressor?: IIdCompressor;
520
+ /**
521
+ * Indicates the attachment state of the data store to a host service.
522
+ */
523
+ readonly attachState: AttachState;
524
+ readonly containerRuntime: IContainerRuntimeBase;
525
+ /**
526
+ * @deprecated 0.16 Issue #1635, #3631
527
+ */
528
+ readonly createProps?: any;
529
+ /**
530
+ * Ambient services provided with the context
531
+ */
532
+ readonly scope: FluidObject;
533
+ /**
534
+ * Returns the current quorum.
535
+ */
536
+ getQuorum(): IQuorumClients;
537
+ /**
538
+ * Returns the current audience.
539
+ */
540
+ getAudience(): IAudience;
541
+ /**
542
+ * Invokes the given callback and expects that no ops are submitted
543
+ * until execution finishes. If an op is submitted, an error will be raised.
544
+ *
545
+ * Can be disabled by feature gate `Fluid.ContainerRuntime.DisableOpReentryCheck`
546
+ *
547
+ * @param callback - the callback to be invoked
548
+ */
549
+ ensureNoDataModelChanges<T>(callback: () => T): T;
550
+ /**
551
+ * Submits the message to be sent to other clients.
552
+ * @param type - Type of the message.
553
+ * @param content - Content of the message.
554
+ * @param localOpMetadata - The local metadata associated with the message. This is kept locally and not sent to
555
+ * the server. This will be sent back when this message is received back from the server. This is also sent if
556
+ * we are asked to resubmit the message.
557
+ */
558
+ submitMessage(type: string, content: any, localOpMetadata: unknown): void;
559
+ /**
560
+ * Submits the signal to be sent to other clients.
561
+ * @param type - Type of the signal.
562
+ * @param content - Content of the signal.
563
+ * @param targetClientId - When specified, the signal is only sent to the provided client id.
564
+ */
565
+ submitSignal(type: string, content: any, targetClientId?: string): void;
566
+ /**
567
+ * Called to make the data store locally visible in the container. This happens automatically for root data stores
568
+ * when they are marked as root. For non-root data stores, this happens when their handle is added to a visible DDS.
569
+ */
570
+ makeLocallyVisible(): void;
571
+ /**
572
+ * Call by IFluidDataStoreChannel, indicates that a channel is dirty and needs to be part of the summary.
573
+ * @param address - The address of the channel that is dirty.
574
+ */
575
+ setChannelDirty(address: string): void;
576
+ /**
577
+ * Get an absolute url to the container based on the provided relativeUrl.
578
+ * Returns undefined if the container or data store isn't attached to storage.
579
+ * @param relativeUrl - A relative request within the container
580
+ */
581
+ getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
582
+ getCreateChildSummarizerNodeFn(
583
+ /**
584
+ * Initial id or path part of this node
585
+ */
586
+ id: string,
587
+ /**
588
+ * Information needed to create the node.
589
+ * If it is from a base summary, it will assert that a summary has been seen.
590
+ * Attach information if it is created from an attach op.
591
+ * If it is local, it will throw unsupported errors on calls to summarize.
592
+ */
593
+ createParam: CreateChildSummarizerNodeParam): CreateChildSummarizerNodeFn;
594
+ uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
595
+ /**
596
+ * @deprecated The functionality to get base GC details has been moved to summarizer node.
597
+ *
598
+ * Returns the GC details in the initial summary of this data store. This is used to initialize the data store
599
+ * and its children with the GC details from the previous summary.
600
+ */
601
+ getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
602
+ /**
603
+ * Called when a new outbound reference is added to another node. This is used by garbage collection to identify
604
+ * all references added in the system.
605
+ * @param srcHandle - The handle of the node that added the reference.
606
+ * @param outboundHandle - The handle of the outbound node that is referenced.
607
+ */
608
+ addedGCOutboundReference?(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
609
+ }
610
+
611
+ /**
612
+ * @alpha
613
+ */
614
+ export declare interface IFluidDataStoreContextDetached extends IFluidDataStoreContext {
615
+ /**
616
+ * Binds a runtime to the context.
617
+ */
618
+ attachRuntime(factory: IProvideFluidDataStoreFactory, dataStoreRuntime: IFluidDataStoreChannel): Promise<void>;
619
+ }
620
+
621
+ /**
622
+ * @alpha
623
+ */
624
+ export declare interface IFluidDataStoreContextEvents extends IEvent {
625
+ (event: "attaching" | "attached", listener: () => void): any;
626
+ }
627
+
628
+ /**
629
+ * @alpha
630
+ */
631
+ export declare const IFluidDataStoreFactory: keyof IProvideFluidDataStoreFactory;
632
+
633
+ /**
634
+ * IFluidDataStoreFactory create data stores. It is associated with an identifier (its `type` member)
635
+ * and usually provided to consumers using this mapping through a data store registry.
636
+ * @alpha
637
+ */
638
+ export declare interface IFluidDataStoreFactory extends IProvideFluidDataStoreFactory {
639
+ /**
640
+ * String that uniquely identifies the type of data store created by this factory.
641
+ */
642
+ type: string;
643
+ /**
644
+ * Generates runtime for the data store from the data store context. Once created should be bound to the context.
645
+ * @param context - Context for the data store.
646
+ * @param existing - If instantiating from an existing file.
647
+ */
648
+ instantiateDataStore(context: IFluidDataStoreContext, existing: boolean): Promise<IFluidDataStoreChannel>;
649
+ }
650
+
651
+ /**
652
+ * @alpha
653
+ */
654
+ export declare const IFluidDataStoreRegistry: keyof IProvideFluidDataStoreRegistry;
655
+
656
+ /**
657
+ * An association of identifiers to data store registry entries, where the
658
+ * entries can be used to create data stores.
659
+ * @alpha
660
+ */
661
+ export declare interface IFluidDataStoreRegistry extends IProvideFluidDataStoreRegistry {
662
+ get(name: string): Promise<FluidDataStoreRegistryEntry | undefined>;
663
+ }
664
+
665
+ /**
666
+ * Garbage collection data returned by nodes in a Container.
667
+ * Used for running GC in the Container.
668
+ * @alpha
669
+ */
670
+ export declare interface IGarbageCollectionData {
671
+ /**
672
+ * The GC nodes of a Fluid object in the Container. Each node has an id and a set of routes to other GC nodes.
673
+ */
674
+ gcNodes: {
675
+ [id: string]: string[];
676
+ };
677
+ }
678
+
679
+ /**
680
+ * GC details provided to each node during creation.
681
+ * @alpha
682
+ */
683
+ export declare interface IGarbageCollectionDetailsBase {
684
+ /**
685
+ * A list of routes to Fluid objects that are used in this node.
686
+ */
687
+ usedRoutes?: string[];
688
+ /**
689
+ * The GC data of this node.
690
+ */
691
+ gcData?: IGarbageCollectionData;
692
+ }
693
+
694
+ export { IIdCompressor }
695
+
696
+ export { IIdCompressorCore }
697
+
698
+ /**
699
+ * Represents ISignalMessage with its type.
700
+ * @alpha
701
+ */
702
+ export declare interface IInboundSignalMessage extends ISignalMessage {
703
+ type: string;
704
+ }
705
+
706
+ /**
707
+ * This type should be used when reading an incoming attach op,
708
+ * but it should not be used when creating a new attach op.
709
+ * Older versions of attach messages could have null snapshots,
710
+ * so this gives correct typings for writing backward compatible code.
711
+ * @internal
712
+ */
713
+ export declare type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
714
+ snapshot: IAttachMessage["snapshot"] | null;
715
+ };
716
+
717
+ export { initialClusterCapacity }
718
+
719
+ /**
720
+ * @alpha
721
+ */
722
+ export declare interface IProvideFluidDataStoreFactory {
723
+ readonly IFluidDataStoreFactory: IFluidDataStoreFactory;
724
+ }
725
+
726
+ /**
727
+ * @alpha
728
+ */
729
+ export declare interface IProvideFluidDataStoreRegistry {
730
+ readonly IFluidDataStoreRegistry: IFluidDataStoreRegistry;
731
+ }
732
+
733
+ /**
734
+ * @internal
735
+ */
736
+ export declare interface ISignalEnvelope {
737
+ /**
738
+ * The target for the envelope, undefined for the container
739
+ */
740
+ address?: string;
741
+ /**
742
+ * Identifier for the signal being submitted.
743
+ */
744
+ clientSignalSequenceNumber: number;
745
+ /**
746
+ * The contents of the envelope
747
+ */
748
+ contents: {
749
+ type: string;
750
+ content: any;
751
+ };
752
+ }
753
+
754
+ /**
755
+ * Contains the same data as ISummaryResult but in order to avoid naming collisions,
756
+ * the data store summaries are wrapped around an array of labels identified by pathPartsForChildren.
757
+ *
758
+ * @example
759
+ *
760
+ * ```typescript
761
+ * id:""
762
+ * pathPartsForChildren: ["path1"]
763
+ * stats: ...
764
+ * summary:
765
+ * ...
766
+ * "path1":
767
+ * ```
768
+ * @alpha
769
+ */
770
+ export declare interface ISummarizeInternalResult extends ISummarizeResult {
771
+ id: string;
772
+ /**
773
+ * Additional path parts between this node's ID and its children's IDs.
774
+ */
775
+ pathPartsForChildren?: string[];
776
+ }
777
+
778
+ /**
779
+ * Represents a summary at a current sequence number.
780
+ * @alpha
781
+ */
782
+ export declare interface ISummarizeResult {
783
+ stats: ISummaryStats;
784
+ summary: SummaryTree;
785
+ }
786
+
787
+ /**
788
+ * @alpha
789
+ */
790
+ export declare interface ISummarizerNode {
791
+ /**
792
+ * Latest successfully acked summary reference sequence number
793
+ */
794
+ readonly referenceSequenceNumber: number;
795
+ /**
796
+ * Marks the node as having a change with the given sequence number.
797
+ * @param sequenceNumber - sequence number of change
798
+ */
799
+ invalidate(sequenceNumber: number): void;
800
+ /**
801
+ * Calls the internal summarize function and handles internal state tracking.
802
+ * If unchanged and fullTree is false, it will reuse previous summary subtree.
803
+ * If an error is encountered and throwOnFailure is false, it will try to make
804
+ * a summary with a pointer to the previous summary + a blob of outstanding ops.
805
+ * @param fullTree - true to skip optimizations and always generate the full tree
806
+ * @param trackState - indicates whether the summarizer node should track the state of the summary or not
807
+ * @param telemetryContext - summary data passed through the layers for telemetry purposes
808
+ */
809
+ summarize(fullTree: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): Promise<ISummarizeResult>;
810
+ /**
811
+ * Checks if there are any additional path parts for children that need to
812
+ * be loaded from the base summary. Additional path parts represent parts
813
+ * of the path between this SummarizerNode and any child SummarizerNodes
814
+ * that it might have. For example: if datastore "a" contains dds "b", but the
815
+ * path is "/a/.channels/b", then the additional path part is ".channels".
816
+ * @param snapshot - the base summary to parse
817
+ */
818
+ updateBaseSummaryState(snapshot: ISnapshotTree): void;
819
+ /**
820
+ * Records an op representing a change to this node/subtree.
821
+ * @param op - op of change to record
822
+ */
823
+ recordChange(op: ISequencedDocumentMessage): void;
824
+ createChild(
825
+ /**
826
+ * Summarize function
827
+ */
828
+ summarizeInternalFn: SummarizeInternalFn,
829
+ /**
830
+ * Initial id or path part of this node
831
+ */
832
+ id: string,
833
+ /**
834
+ * Information needed to create the node.
835
+ * If it is from a base summary, it will assert that a summary has been seen.
836
+ * Attach information if it is created from an attach op.
837
+ * If it is local, it will throw unsupported errors on calls to summarize.
838
+ */
839
+ createParam: CreateChildSummarizerNodeParam,
840
+ /**
841
+ * Optional configuration affecting summarize behavior
842
+ */
843
+ config?: ISummarizerNodeConfig): ISummarizerNode;
844
+ getChild(id: string): ISummarizerNode | undefined;
845
+ /** True if a summary is currently in progress */
846
+ isSummaryInProgress?(): boolean;
847
+ }
848
+
849
+ /**
850
+ * @alpha
851
+ */
852
+ export declare interface ISummarizerNodeConfig {
853
+ /**
854
+ * True to reuse previous handle when unchanged since last acked summary.
855
+ * Defaults to true.
856
+ */
857
+ readonly canReuseHandle?: boolean;
858
+ /**
859
+ * True to always stop execution on error during summarize, or false to
860
+ * attempt creating a summary that is a pointer ot the last acked summary
861
+ * plus outstanding ops in case of internal summarize failure.
862
+ * Defaults to false.
863
+ *
864
+ * BUG BUG: Default to true while we investigate problem
865
+ * with differential summaries
866
+ */
867
+ readonly throwOnFailure?: true;
868
+ }
869
+
870
+ /**
871
+ * @alpha
872
+ */
873
+ export declare interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConfig {
874
+ /**
875
+ * True if GC is disabled. If so, don't track GC related state for a summary.
876
+ * This is propagated to all child nodes.
877
+ */
878
+ readonly gcDisabled?: boolean;
879
+ }
880
+
881
+ /**
882
+ * Extends the functionality of ISummarizerNode to support garbage collection. It adds / updates the following APIs:
883
+ *
884
+ * `usedRoutes`: The routes in this node that are currently in use.
885
+ *
886
+ * `getGCData`: A new API that can be used to get the garbage collection data for this node.
887
+ *
888
+ * `summarize`: Added a trackState flag which indicates whether the summarizer node should track the state of the
889
+ * summary or not.
890
+ *
891
+ * `createChild`: Added the following params:
892
+ *
893
+ * - `getGCDataFn`: This gets the GC data from the caller. This must be provided in order for getGCData to work.
894
+ *
895
+ * - `getInitialGCDetailsFn`: This gets the initial GC details from the caller.
896
+ *
897
+ * `deleteChild`: Deletes a child node.
898
+ *
899
+ * `isReferenced`: This tells whether this node is referenced in the document or not.
900
+ *
901
+ * `updateUsedRoutes`: Used to notify this node of routes that are currently in use in it.
902
+ * @alpha
903
+ */
904
+ export declare interface ISummarizerNodeWithGC extends ISummarizerNode {
905
+ createChild(
906
+ /**
907
+ * Summarize function
908
+ */
909
+ summarizeInternalFn: SummarizeInternalFn,
910
+ /**
911
+ * Initial id or path part of this node
912
+ */
913
+ id: string,
914
+ /**
915
+ * Information needed to create the node.
916
+ * If it is from a base summary, it will assert that a summary has been seen.
917
+ * Attach information if it is created from an attach op.
918
+ * If it is local, it will throw unsupported errors on calls to summarize.
919
+ */
920
+ createParam: CreateChildSummarizerNodeParam,
921
+ /**
922
+ * Optional configuration affecting summarize behavior
923
+ */
924
+ config?: ISummarizerNodeConfigWithGC, getGCDataFn?: (fullGC?: boolean) => Promise<IGarbageCollectionData>,
925
+ /**
926
+ * @deprecated The functionality to update child's base GC details is incorporated in the summarizer node.
927
+ */
928
+ getBaseGCDetailsFn?: () => Promise<IGarbageCollectionDetailsBase>): ISummarizerNodeWithGC;
929
+ /**
930
+ * Delete the child with the given id..
931
+ */
932
+ deleteChild(id: string): void;
933
+ getChild(id: string): ISummarizerNodeWithGC | undefined;
934
+ /**
935
+ * Returns this node's data that is used for garbage collection. This includes a list of GC nodes that represent
936
+ * this node. Each node has a set of outbound routes to other GC nodes in the document.
937
+ * @param fullGC - true to bypass optimizations and force full generation of GC data.
938
+ */
939
+ getGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;
940
+ /**
941
+ * Tells whether this node is being referenced in this document or not. Unreferenced node will get GC'd
942
+ */
943
+ isReferenced(): boolean;
944
+ /**
945
+ * After GC has run, called to notify this node of routes that are used in it. These are used for the following:
946
+ * 1. To identify if this node is being referenced in the document or not.
947
+ * 2. To identify if this node or any of its children's used routes changed since last summary.
948
+ *
949
+ * @param usedRoutes - The routes that are used in this node.
950
+ */
951
+ updateUsedRoutes(usedRoutes: string[]): void;
952
+ }
953
+
954
+ /**
955
+ * Contains the aggregation data from a Tree/Subtree.
956
+ * @alpha
957
+ */
958
+ export declare interface ISummaryStats {
959
+ treeNodeCount: number;
960
+ blobNodeCount: number;
961
+ handleNodeCount: number;
962
+ totalBlobSize: number;
963
+ unreferencedBlobSize: number;
964
+ }
965
+
966
+ /**
967
+ * Represents the summary tree for a node along with the statistics for that tree.
968
+ * For example, for a given data store, it contains the data for data store along with a subtree for
969
+ * each of its DDS.
970
+ * Any component that implements IChannelContext, IFluidDataStoreChannel or extends SharedObject
971
+ * will be taking part of the summarization process.
972
+ * @alpha
973
+ */
974
+ export declare interface ISummaryTreeWithStats {
975
+ /**
976
+ * Represents an aggregation of node counts and blob sizes associated to the current summary information
977
+ */
978
+ stats: ISummaryStats;
979
+ /**
980
+ * A recursive data structure that will be converted to a snapshot tree and uploaded
981
+ * to the backend.
982
+ */
983
+ summary: ISummaryTree;
984
+ }
985
+
986
+ /**
987
+ * Contains telemetry data relevant to summarization workflows.
988
+ * This object is expected to be modified directly by various summarize methods.
989
+ * @alpha
990
+ */
991
+ export declare interface ITelemetryContext {
992
+ /**
993
+ * Sets value for telemetry data being tracked.
994
+ * @param prefix - unique prefix to tag this data with (ex: "fluid:map:")
995
+ * @param property - property name of the telemetry data being tracked (ex: "DirectoryCount")
996
+ * @param value - value to attribute to this summary telemetry data
997
+ */
998
+ set(prefix: string, property: string, value: TelemetryEventPropertyType): void;
999
+ /**
1000
+ * Sets multiple values for telemetry data being tracked.
1001
+ * @param prefix - unique prefix to tag this data with (ex: "fluid:summarize:")
1002
+ * @param property - property name of the telemetry data being tracked (ex: "Options")
1003
+ * @param values - A set of values to attribute to this summary telemetry data.
1004
+ */
1005
+ setMultiple(prefix: string, property: string, values: Record<string, TelemetryEventPropertyType>): void;
1006
+ /**
1007
+ * Get the telemetry data being tracked
1008
+ * @param prefix - unique prefix for this data (ex: "fluid:map:")
1009
+ * @param property - property name of the telemetry data being tracked (ex: "DirectoryCount")
1010
+ * @returns undefined if item not found
1011
+ */
1012
+ get(prefix: string, property: string): TelemetryEventPropertyType;
1013
+ /**
1014
+ * Returns a serialized version of all the telemetry data.
1015
+ * Should be used when logging in telemetry events.
1016
+ */
1017
+ serialize(): string;
1018
+ }
1019
+
1020
+ /**
1021
+ * AttributionKey associated with content that has been made locally but not yet acked by the server.
1022
+ * @alpha
1023
+ */
1024
+ export declare interface LocalAttributionKey {
1025
+ type: "local";
1026
+ }
1027
+
1028
+ /**
1029
+ * An iterable identifier/registry entry pair list
1030
+ * @alpha
1031
+ */
1032
+ export declare type NamedFluidDataStoreRegistryEntries = Iterable<NamedFluidDataStoreRegistryEntry>;
1033
+
1034
+ /**
1035
+ * An associated pair of an identifier and registry entry. Registry entries
1036
+ * may be dynamically loaded.
1037
+ * @alpha
1038
+ */
1039
+ export declare type NamedFluidDataStoreRegistryEntry = [string, Promise<FluidDataStoreRegistryEntry>];
1040
+
1041
+ /**
1042
+ * AttributionKey representing a reference to some op in the op stream.
1043
+ * Content associated with this key aligns with content modified by that op.
1044
+ * @alpha
1045
+ */
1046
+ export declare interface OpAttributionKey {
1047
+ /**
1048
+ * The type of attribution this key corresponds to.
1049
+ *
1050
+ * Keys currently all represent op-based attribution, so have the form `{ type: "op", key: sequenceNumber }`.
1051
+ * Thus, they can be used with an `OpStreamAttributor` to recover timestamp/user information.
1052
+ */
1053
+ type: "op";
1054
+ /**
1055
+ * The sequenceNumber of the op this attribution key is for.
1056
+ */
1057
+ seq: number;
1058
+ }
1059
+
1060
+ export { OpSpaceCompressedId }
1061
+
1062
+ export { SerializedIdCompressor }
1063
+
1064
+ export { SerializedIdCompressorWithNoSession }
1065
+
1066
+ export { SerializedIdCompressorWithOngoingSession }
1067
+
1068
+ export { SessionId }
1069
+
1070
+ export { SessionSpaceCompressedId }
1071
+
1072
+ export { StableId }
1073
+
1074
+ /**
1075
+ * @alpha
1076
+ */
1077
+ export declare type SummarizeInternalFn = (fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext) => Promise<ISummarizeInternalResult>;
1078
+
1079
+ /**
1080
+ * @internal
1081
+ */
1082
+ export declare const totalBlobSizePropertyName = "TotalBlobSize";
1083
+
1084
+ /**
1085
+ * This tells the visibility state of a Fluid object. It basically tracks whether the object is not visible, visible
1086
+ * locally within the container only or visible globally to all clients.
1087
+ * @alpha
1088
+ */
1089
+ export declare const VisibilityState: {
1090
+ /**
1091
+ * Indicates that the object is not visible. This is the state when an object is first created.
1092
+ */
1093
+ NotVisible: string;
1094
+ /**
1095
+ * Indicates that the object is visible locally within the container. This is the state when an object is attached
1096
+ * to the container's graph but the container itself isn't globally visible. The object's state goes from not
1097
+ * visible to locally visible.
1098
+ */
1099
+ LocallyVisible: string;
1100
+ /**
1101
+ * Indicates that the object is visible globally to all clients. This is the state of an object in 2 scenarios:
1102
+ *
1103
+ * 1. It is attached to the container's graph when the container is globally visible. The object's state goes from
1104
+ * not visible to globally visible.
1105
+ *
1106
+ * 2. When a container becomes globally visible, all locally visible objects go from locally visible to globally
1107
+ * visible.
1108
+ */
1109
+ GloballyVisible: string;
1110
+ };
1111
+
1112
+ /**
1113
+ * @alpha
1114
+ */
1115
+ export declare type VisibilityState = (typeof VisibilityState)[keyof typeof VisibilityState];
1116
+
1117
+ export { }