@fluidframework/shared-object-base 2.0.0-dev-rc.3.0.0.254513 → 2.0.0-dev-rc.3.0.0.254674

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.
@@ -1,562 +0,0 @@
1
- import { EventEmitterEventType } from '@fluid-internal/client-utils';
2
- import { EventEmitterWithErrorHandling } from '@fluidframework/telemetry-utils/internal';
3
- import { IChannel } from '@fluidframework/datastore-definitions';
4
- import { IChannelAttributes } from '@fluidframework/datastore-definitions';
5
- import { IChannelFactory } from '@fluidframework/datastore-definitions';
6
- import { IChannelServices } from '@fluidframework/datastore-definitions';
7
- import { IChannelStorageService } from '@fluidframework/datastore-definitions';
8
- import { IErrorEvent } from '@fluidframework/core-interfaces';
9
- import { IEventProvider } from '@fluidframework/core-interfaces';
10
- import { IEventThisPlaceHolder } from '@fluidframework/core-interfaces';
11
- import { IExperimentalIncrementalSummaryContext } from '@fluidframework/runtime-definitions';
12
- import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
13
- import { IFluidHandle } from '@fluidframework/core-interfaces';
14
- import { IFluidHandleContext } from '@fluidframework/core-interfaces';
15
- import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
16
- import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
- import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
18
- import { ITelemetryContext } from '@fluidframework/runtime-definitions';
19
- import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
20
-
21
- /**
22
- * Binds all handles found in `value` to `bind`. Does not modify original input.
23
- *
24
- * @internal
25
- */
26
- export declare function bindHandles(value: any, serializer: IFluidSerializer, bind: IFluidHandle): void;
27
-
28
- /**
29
- * Create a new summary containing one blob
30
- * @param key - the key for the blob in the summary
31
- * @param content - blob content
32
- * @returns The summary containing the blob
33
- * @internal
34
- */
35
- export declare function createSingleBlobSummary(key: string, content: string | Uint8Array): ISummaryTreeWithStats;
36
-
37
- /**
38
- * Data Store serializer implementation
39
- * @internal
40
- */
41
- export declare class FluidSerializer implements IFluidSerializer {
42
- private readonly context;
43
- private readonly handleParsedCb;
44
- private readonly root;
45
- constructor(context: IFluidHandleContext, handleParsedCb?: (handle: IFluidHandle) => void);
46
- get IFluidSerializer(): this;
47
- /**
48
- * Given a mostly-jsonable object tree that may have handle objects embedded within, will return a
49
- * fully-jsonable object tree where any embedded IFluidHandles have been replaced with a serializable form.
50
- *
51
- * The original `input` object is not mutated. This method will shallowly clone all objects in the path from
52
- * the root to any replaced handles. (If no handles are found, returns the original object.)
53
- *
54
- * Any unbound handles encountered are bound to the provided IFluidHandle.
55
- */
56
- encode(input: any, bind: IFluidHandle): any;
57
- /**
58
- * Given a fully-jsonable object tree that may have encoded handle objects embedded within, will return an
59
- * equivalent object tree where any encoded IFluidHandles have been replaced with their decoded form.
60
- *
61
- * The original `input` object is not mutated. This method will shallowly clone all objects in the path from
62
- * the root to any replaced handles. (If no handles are found, returns the original object.)
63
- *
64
- * The decoded handles are implicitly bound to the handle context of this serializer.
65
- */
66
- decode(input: any): any;
67
- stringify(input: any, bind: IFluidHandle): string;
68
- parse(input: string): any;
69
- private readonly encodeValue;
70
- private readonly decodeValue;
71
- private recursivelyReplace;
72
- protected serializeHandle(handle: IFluidHandle, bind: IFluidHandle): {
73
- type: string;
74
- url: string;
75
- };
76
- }
77
-
78
- /**
79
- * @public
80
- */
81
- export declare interface IFluidSerializer {
82
- /**
83
- * Given a mostly-plain object that may have handle objects embedded within, will return a fully-plain object
84
- * where any embedded IFluidHandles have been replaced with a serializable form.
85
- *
86
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
87
- * the root to any replaced handles. (If no handles are found, returns the original object.)
88
- */
89
- encode(value: any, bind: IFluidHandle): any;
90
- /**
91
- * Given a fully-jsonable object tree that may have encoded handle objects embedded within, will return an
92
- * equivalent object tree where any encoded IFluidHandles have been replaced with their decoded form.
93
- *
94
- * The original `input` object is not mutated. This method will shallowly clone all objects in the path from
95
- * the root to any replaced handles. (If no handles are found, returns the original object.)
96
- *
97
- * The decoded handles are implicitly bound to the handle context of this serializer.
98
- */
99
- decode(input: any): any;
100
- /**
101
- * Stringifies a given value. Converts any IFluidHandle to its stringified equivalent.
102
- */
103
- stringify(value: any, bind: IFluidHandle): string;
104
- /**
105
- * Parses the given JSON input string and returns the JavaScript object defined by it. Any Fluid
106
- * handles will be realized as part of the parse
107
- */
108
- parse(value: string): any;
109
- }
110
-
111
- /**
112
- * Base interface for shared objects from which other interfaces derive. Implemented by SharedObject
113
- * @public
114
- */
115
- export declare interface ISharedObject<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends IChannel, IEventProvider<TEvent> {
116
- /**
117
- * Binds the given shared object to its containing data store runtime, causing it to attach once
118
- * the runtime attaches.
119
- */
120
- bindToContext(): void;
121
- /**
122
- * Returns the GC data for this shared object. It contains a list of GC nodes that contains references to
123
- * other GC nodes.
124
- * @param fullGC - true to bypass optimizations and force full generation of GC data.
125
- */
126
- getGCData(fullGC?: boolean): IGarbageCollectionData;
127
- }
128
-
129
- /**
130
- * Events emitted by {@link ISharedObject}.
131
- * @public
132
- */
133
- export declare interface ISharedObjectEvents extends IErrorEvent {
134
- /**
135
- * Fires before an incoming operation (op) is applied to the shared object.
136
- *
137
- * @remarks Note: this should be considered an internal implementation detail. It is not recommended for external
138
- * use.
139
- *
140
- * @eventProperty
141
- */
142
- (event: "pre-op", listener: (op: ISequencedDocumentMessage, local: boolean, target: IEventThisPlaceHolder) => void): any;
143
- /**
144
- * Fires after an incoming op is applied to the shared object.
145
- *
146
- * @remarks Note: this should be considered an internal implementation detail. It is not recommended for external
147
- * use.
148
- *
149
- * @eventProperty
150
- */
151
- (event: "op", listener: (op: ISequencedDocumentMessage, local: boolean, target: IEventThisPlaceHolder) => void): any;
152
- }
153
-
154
- /**
155
- * Defines a kind of shared object.
156
- * Used in containers to register a shared object implementation, and to create new instances of a given type of shared object.
157
- * @public
158
- */
159
- export declare interface ISharedObjectKind<TSharedObject> {
160
- /**
161
- * Get a factory which can be used by the Fluid Framework to programmatically instantiate shared objects within containers.
162
- * @remarks
163
- * The produced factory is intended for use with the FluidDataStoreRegistry and is used by the Fluid Framework to instantiate already existing Channels.
164
- * To create new shared objects use:
165
- *
166
- * - {@link @fluidframework/fluid-static#IFluidContainer.create} if using `@fluidframework/fluid-static`, for example via `@fluidframework/azure-client`.
167
- *
168
- * - {@link ISharedObjectKind.create} if using a custom container definitions (and thus not using {@link @fluidframework/fluid-static#IFluidContainer}).
169
- *
170
- * @privateRemarks
171
- * TODO:
172
- * Many tests use this and can't use {@link ISharedObjectKind.create}.
173
- * The docs should make it clear why that's ok, and why {@link ISharedObjectKind.create} isn't in such a way that when reading non app code (like tests in this package)
174
- * someone can tell if the wrong one is being used without running it and seeing if it works.
175
- */
176
- getFactory(): IChannelFactory<TSharedObject>;
177
- /**
178
- * Create a shared object.
179
- * @param runtime - The data store runtime that the new shared object belongs to.
180
- * @param id - Optional name of the shared object.
181
- * @returns Newly created shared object.
182
- *
183
- * @example
184
- * To create a `SharedTree`, call the static create method:
185
- *
186
- * ```typescript
187
- * const myTree = SharedTree.create(this.runtime, id);
188
- * ```
189
- * @remarks
190
- * If using `@fluidframework/fluid-static` (for example via `@fluidframework/azure-client`), use {@link @fluidframework/fluid-static#IFluidContainer.create} instead of calling this directly.
191
- *
192
- * @privateRemarks
193
- * TODO:
194
- * This returns null when used with MockFluidDataStoreRuntime, so its unclear how tests should create DDS instances unless using `RootDataObject.create` (which most tests shouldn't to minimize dependencies).
195
- * In practice tests either avoid mock runtimes, use getFactory(), or call the DDS constructor directly. It is unclear (from docs) how getFactory().create differs but it does not rely on runtime.createChannel so it works with mock runtimes.
196
- * TODO:
197
- * See note on ISharedObjectKind.getFactory.
198
- */
199
- create(runtime: IFluidDataStoreRuntime, id?: string): TSharedObject;
200
- }
201
-
202
- /**
203
- * Given a mostly-plain object that may have handle objects embedded within, will return a fully-plain object
204
- * where any embedded IFluidHandles have been replaced with a serializable form.
205
- *
206
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
207
- * the root to any replaced handles. (If no handles are found, returns the original object.)
208
- *
209
- * @param input - The mostly-plain object
210
- * @param context - The handle context for the container
211
- * @param bind - Bind any other handles we find in the object against this given handle.
212
- * @returns The fully-plain object
213
- * @alpha
214
- */
215
- export declare function makeHandlesSerializable(value: any, serializer: IFluidSerializer, bind: IFluidHandle): any;
216
-
217
- /**
218
- * Given a fully-plain object that may have serializable-form handles within, will return the mostly-plain object
219
- * with handle objects created instead.
220
- * @param value - The fully-plain object
221
- * @param serializer - The serializer that knows how to convert serializable-form handles into handle objects
222
- * @param context - The handle context for the container
223
- * @returns The mostly-plain object with handle objects within
224
- * @alpha
225
- */
226
- export declare function parseHandles(value: any, serializer: IFluidSerializer): any;
227
-
228
- /**
229
- * Given a mostly-plain object that may have handle objects embedded within, return a string representation of an object
230
- * where the handle objects have been replaced with a serializable form.
231
- * @param value - The mostly-plain object
232
- * @param serializer - The serializer that knows how to convert handles into serializable format
233
- * @param context - The handle context for the container
234
- * @param bind - Bind any other handles we find in the object against this given handle.
235
- * @returns Result of strigifying an object
236
- * @internal
237
- */
238
- export declare function serializeHandles(value: any, serializer: IFluidSerializer, bind: IFluidHandle): string | undefined;
239
-
240
- /**
241
- * SharedObject with simplified, synchronous summarization and GC.
242
- * DDS implementations with async and incremental summarization should extend SharedObjectCore directly instead.
243
- * @alpha
244
- */
245
- export declare abstract class SharedObject<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends SharedObjectCore<TEvent> {
246
- private readonly telemetryContextPrefix;
247
- /**
248
- * True while we are garbage collecting this object's data.
249
- */
250
- private _isGCing;
251
- /**
252
- * The serializer to use to serialize / parse handles, if any.
253
- */
254
- private readonly _serializer;
255
- protected get serializer(): IFluidSerializer;
256
- /**
257
- * @param id - The id of the shared object
258
- * @param runtime - The IFluidDataStoreRuntime which contains the shared object
259
- * @param attributes - Attributes of the shared object
260
- */
261
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, telemetryContextPrefix: string);
262
- /**
263
- * {@inheritDoc @fluidframework/datastore-definitions#(IChannel:interface).getAttachSummary}
264
- */
265
- getAttachSummary(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
266
- /**
267
- * {@inheritDoc @fluidframework/datastore-definitions#(IChannel:interface).summarize}
268
- */
269
- summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext): Promise<ISummaryTreeWithStats>;
270
- /**
271
- * {@inheritDoc (ISharedObject:interface).getGCData}
272
- */
273
- getGCData(fullGC?: boolean): IGarbageCollectionData;
274
- /**
275
- * Calls the serializer over all data in this object that reference other GC nodes.
276
- * Derived classes must override this to provide custom list of references to other GC nodes.
277
- */
278
- protected processGCDataCore(serializer: IFluidSerializer): void;
279
- /**
280
- * Gets a form of the object that can be serialized.
281
- * @returns A tree representing the snapshot of the shared object.
282
- */
283
- protected abstract summarizeCore(serializer: IFluidSerializer, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext): ISummaryTreeWithStats;
284
- private incrementTelemetryMetric;
285
- }
286
-
287
- /**
288
- * Base class from which all shared objects derive.
289
- * @alpha
290
- */
291
- export declare abstract class SharedObjectCore<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends EventEmitterWithErrorHandling<TEvent> implements ISharedObject<TEvent> {
292
- id: string;
293
- protected runtime: IFluidDataStoreRuntime;
294
- readonly attributes: IChannelAttributes;
295
- get IFluidLoadable(): this;
296
- private readonly opProcessingHelper;
297
- private readonly callbacksHelper;
298
- /**
299
- * The handle referring to this SharedObject
300
- */
301
- readonly handle: IFluidHandle;
302
- /**
303
- * Telemetry logger for the shared object
304
- */
305
- protected readonly logger: ITelemetryLoggerExt;
306
- private readonly mc;
307
- /**
308
- * Connection state
309
- */
310
- private _connected;
311
- /**
312
- * Services used by the shared object
313
- */
314
- private services;
315
- /**
316
- * True if the dds is bound to its parent.
317
- */
318
- private _isBoundToContext;
319
- /**
320
- * Tracks error that closed this object.
321
- */
322
- private closeError?;
323
- /**
324
- * Gets the connection state
325
- * @returns The state of the connection
326
- */
327
- get connected(): boolean;
328
- /**
329
- * @param id - The id of the shared object
330
- * @param runtime - The IFluidDataStoreRuntime which contains the shared object
331
- * @param attributes - Attributes of the shared object
332
- */
333
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
334
- /**
335
- * This function is only supposed to be called from SharedObjectCore's constructor and
336
- * depends on a few things being set already. assert() calls make sure of it.
337
- * @returns The telemetry sampling helpers, so the constructor can be the one to assign them
338
- * to variables to avoid complaints from TypeScript.
339
- */
340
- private setUpSampledTelemetryHelpers;
341
- /**
342
- * Marks this objects as closed. Any attempt to change it (local changes or processing remote ops)
343
- * would result in same error thrown. If called multiple times, only first error is remembered.
344
- * @param error - error object that is thrown whenever an attempt is made to modify this object
345
- */
346
- private closeWithError;
347
- /**
348
- * Verifies that this object is not closed via closeWithError(). If it is, throws an error used to close it.
349
- */
350
- private verifyNotClosed;
351
- /**
352
- * Event listener handler helper that can be used to react to exceptions thrown from event listeners
353
- * It wraps error with DataProcessingError, closes this object and throws resulting error.
354
- * See closeWithError() for more details
355
- * Ideally such situation never happens, as consumers of DDS should never throw exceptions
356
- * in event listeners (i.e. catch any of the issues and make determination on how to handle it).
357
- * When such exceptions propagate through, most likely data model is no longer consistent, i.e.
358
- * DDS state does not match what user sees. Because of it DDS moves to "corrupted state" and does not
359
- * allow processing of ops or local changes, which very quickly results in container closure.
360
- */
361
- private eventListenerErrorHandler;
362
- private setBoundAndHandleAttach;
363
- /**
364
- * A shared object, after construction, can either be loaded in the case that it is already part of
365
- * a shared document. Or later attached if it is being newly added.
366
- * @param services - Services used by the shared object
367
- */
368
- load(services: IChannelServices): Promise<void>;
369
- /**
370
- * Initializes the object as a local, non-shared object. This object can become shared after
371
- * it is attached to the document.
372
- */
373
- initializeLocal(): void;
374
- /**
375
- * {@inheritDoc (ISharedObject:interface).bindToContext}
376
- */
377
- bindToContext(): void;
378
- /**
379
- * {@inheritDoc @fluidframework/datastore-definitions#(IChannel:interface).connect}
380
- */
381
- connect(services: IChannelServices): void;
382
- /**
383
- * {@inheritDoc @fluidframework/datastore-definitions#(IChannel:interface).isAttached}
384
- */
385
- isAttached(): boolean;
386
- /**
387
- * {@inheritDoc @fluidframework/datastore-definitions#(IChannel:interface).getAttachSummary}
388
- */
389
- abstract getAttachSummary(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
390
- /**
391
- * {@inheritDoc @fluidframework/datastore-definitions#(IChannel:interface).summarize}
392
- */
393
- abstract summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): Promise<ISummaryTreeWithStats>;
394
- /**
395
- * {@inheritDoc (ISharedObject:interface).getGCData}
396
- */
397
- abstract getGCData(fullGC?: boolean): IGarbageCollectionData;
398
- /**
399
- * Called when a handle is decoded by this object. A handle in the object's data represents an outbound reference
400
- * to another object in the container.
401
- * @param decodedHandle - The handle of the Fluid object that is decoded.
402
- */
403
- protected handleDecoded(decodedHandle: IFluidHandle): void;
404
- /**
405
- * Allows the distributed data type to perform custom loading
406
- * @param services - Storage used by the shared object
407
- */
408
- protected abstract loadCore(services: IChannelStorageService): Promise<void>;
409
- /**
410
- * Allows the distributed data type to perform custom local loading.
411
- */
412
- protected initializeLocalCore(): void;
413
- /**
414
- * Allows the distributive data type the ability to perform custom processing once an attach has happened.
415
- * Also called after non-local data type get loaded.
416
- */
417
- protected didAttach(): void;
418
- /**
419
- * Derived classes must override this to do custom processing on a remote message.
420
- * @param message - The message to process
421
- * @param local - True if the shared object is local
422
- * @param localOpMetadata - For local client messages, this is the metadata that was submitted with the message.
423
- * For messages from a remote client, this will be undefined.
424
- */
425
- protected abstract processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): any;
426
- /**
427
- * Called when the object has disconnected from the delta stream.
428
- */
429
- protected abstract onDisconnect(): any;
430
- /**
431
- * The serializer to serialize / parse handles.
432
- */
433
- protected abstract get serializer(): IFluidSerializer;
434
- /**
435
- * Submits a message by the local client to the runtime.
436
- * @param content - Content of the message. Note: handles contained in the
437
- * message object should not be encoded in any way
438
- * @param localOpMetadata - The local metadata associated with the message. This is kept locally by the runtime
439
- * and not sent to the server. This will be sent back when this message is received back from the server. This is
440
- * also sent if we are asked to resubmit the message.
441
- */
442
- protected submitLocalMessage(content: any, localOpMetadata?: unknown): void;
443
- /**
444
- * Marks this object as dirty so that it is part of the next summary. It is called by a SharedSummaryBlock
445
- * that want to be part of summary but does not generate ops.
446
- */
447
- protected dirty(): void;
448
- /**
449
- * Called when the object has fully connected to the delta stream
450
- * Default implementation for DDS, override if different behavior is required.
451
- */
452
- protected onConnect(): void;
453
- /**
454
- * Called when a message has to be resubmitted. This typically happens after a reconnection for unacked messages.
455
- * The default implementation here is to resubmit the same message. The client can override if different behavior
456
- * is required. It can choose to resubmit the same message, submit different / multiple messages or not submit
457
- * anything at all.
458
- * @param content - The content of the original message.
459
- * @param localOpMetadata - The local metadata associated with the original message.
460
- */
461
- protected reSubmitCore(content: any, localOpMetadata: unknown): void;
462
- /**
463
- * Promises that are waiting for an ack from the server before resolving should use this instead of new Promise.
464
- * It ensures that if something changes that will interrupt that ack (e.g. the FluidDataStoreRuntime disposes),
465
- * the Promise will reject.
466
- * If runtime is disposed when this call is made, executor is not run and promise is rejected right away.
467
- */
468
- protected newAckBasedPromise<T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
469
- private attachDeltaHandler;
470
- /**
471
- * Set the state of connection to services.
472
- * @param connected - true if connected, false otherwise.
473
- */
474
- private setConnectionState;
475
- /**
476
- * Handles a message being received from the remote delta server.
477
- * @param message - The message to process
478
- * @param local - Whether the message originated from the local client
479
- * @param localOpMetadata - For local client messages, this is the metadata that was submitted with the message.
480
- * For messages from a remote client, this will be undefined.
481
- */
482
- private process;
483
- /**
484
- * Called when a message has to be resubmitted. This typically happens for unacked messages after a
485
- * reconnection.
486
- * @param content - The content of the original message.
487
- * @param localOpMetadata - The local metadata associated with the original message.
488
- */
489
- private reSubmit;
490
- /**
491
- * Revert an op
492
- */
493
- protected rollback(content: any, localOpMetadata: unknown): void;
494
- /**
495
- * Apply changes from the provided op content just as if a local client has made the change,
496
- * including submitting the op. Used when rehydrating an attached container
497
- * with pending changes. The rehydration process replays all remote ops
498
- * and applies stashed ops after the remote op with a sequence number
499
- * that matches that of the stashed op is applied. This ensures
500
- * stashed ops are applied at the same state they were originally created.
501
- *
502
- * It is possible that stashed ops have been sent in the past, and will be found when
503
- * the shared object catches up with remotes ops.
504
- * So this prepares the SharedObject for seeing potentially seeing the ACK.
505
- * If no matching remote op is found, all the applied stashed ops will go
506
- * through the normal resubmit flow upon reconnection, which allows the dds
507
- * to rebase them to the latest state, and then resubmit them.
508
- *
509
- * @param content - Contents of a stashed op.
510
- */
511
- protected abstract applyStashedOp(content: any): void;
512
- /**
513
- * Emit an event. This function is only intended for use by DDS classes that extend SharedObject/SharedObjectCore,
514
- * specifically to emit events that are part of the public interface of the DDS (i.e. those that can have listeners
515
- * attached to them by the consumers of the DDS). It should not be called from outside the class or to emit events
516
- * which are only internal to the DDS. Support for calling it from outside the DDS instance might be removed in the
517
- * future.
518
- * @param event - The event to emit.
519
- * @param args - Arguments to pass to the event listeners.
520
- * @returns `true` if the event had listeners, `false` otherwise.
521
- */
522
- emit(event: EventEmitterEventType, ...args: any[]): boolean;
523
- /**
524
- * Use to emit events inside {@link SharedObjectCore}, with no telemetry measurement
525
- * done on the duration of the callbacks. Simply calls `super.emit()`.
526
- * @param event - Event to emit
527
- * @param args - Arguments for the event
528
- * @returns Whatever `super.emit()` returns.
529
- */
530
- private emitInternal;
531
- }
532
-
533
- /**
534
- * Serializer implementation for serializing handles during summary.
535
- * @internal
536
- */
537
- export declare class SummarySerializer extends FluidSerializer {
538
- private readonly serializedRoutes;
539
- getSerializedRoutes(): string[];
540
- protected serializeHandle(handle: IFluidHandle, bind: IFluidHandle): {
541
- type: string;
542
- url: string;
543
- };
544
- }
545
-
546
- /**
547
- * enum representing the possible types of a shared object
548
- * @internal
549
- */
550
- export declare enum ValueType {
551
- /**
552
- * The value is a shared object
553
- * @deprecated Instead store the handle of the shared object, rather than the shared object itself.
554
- */
555
- Shared = 0,
556
- /**
557
- * The value is a plain JavaScript object or handle. If a plain object, it may contain handles deeper within.
558
- */
559
- Plain = 1
560
- }
561
-
562
- export { }