@fluidframework/aqueduct 2.0.0-dev.7.3.0.212138 → 2.0.0-dev.7.4.0.214930

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.
@@ -0,0 +1,459 @@
1
+ /**
2
+ * The `aqueduct` package is a library for building Fluid objects and Fluid
3
+ * containers within the Fluid Framework. Its goal is to provide a thin base
4
+ * layer over the existing Fluid Framework interfaces that allows developers to
5
+ * get started quickly.
6
+ *
7
+ * @remarks
8
+ * About the library name: An "aqueduct" is a way to transport water from a source
9
+ * to another location. The library name was chosen because its purpose is to
10
+ * facilitate using lower level constructs and therefore handle 'fluid' items
11
+ * same as an aqueduct.
12
+ *
13
+ * @packageDocumentation
14
+ */
15
+
16
+ import { AsyncFluidObjectProvider } from '@fluidframework/synthesize';
17
+ import { ContainerRuntime } from '@fluidframework/container-runtime';
18
+ import { FluidDataStoreRuntime } from '@fluidframework/datastore';
19
+ import { FluidObject } from '@fluidframework/core-interfaces';
20
+ import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
21
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
+ import { IContainer } from '@fluidframework/container-definitions';
23
+ import { IContainerContext } from '@fluidframework/container-definitions';
24
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
25
+ import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
26
+ import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
27
+ import { IEvent } from '@fluidframework/core-interfaces';
28
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
29
+ import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
30
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
31
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
32
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
33
+ import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
+ import { IFluidHandle } from '@fluidframework/core-interfaces';
35
+ import { IFluidLoadable } from '@fluidframework/core-interfaces';
36
+ import type { IFluidMountableViewClass } from '@fluidframework/view-interfaces';
37
+ import { IFluidRouter } from '@fluidframework/core-interfaces';
38
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
39
+ import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
40
+ import { IRequest } from '@fluidframework/core-interfaces';
41
+ import { IResponse } from '@fluidframework/core-interfaces';
42
+ import { ISharedDirectory } from '@fluidframework/map';
43
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
44
+ import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
45
+ import { RequestParser } from '@fluidframework/runtime-utils';
46
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
47
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler';
48
+
49
+ /**
50
+ * BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,
51
+ * request handlers, runtimeOptions, and entryPoint initialization function.
52
+ * It can be subclassed to implement a first-time initialization procedure for the containers it creates.
53
+ * @public
54
+ */
55
+ export declare class BaseContainerRuntimeFactory extends RuntimeFactoryHelper implements IProvideFluidDataStoreRegistry {
56
+ get IFluidDataStoreRegistry(): IFluidDataStoreRegistry;
57
+ private readonly registry;
58
+ private readonly registryEntries;
59
+ private readonly dependencyContainer?;
60
+ private readonly runtimeOptions?;
61
+ private readonly requestHandlers;
62
+ private readonly provideEntryPoint;
63
+ /**
64
+ * @param registryEntries - The data store registry for containers produced
65
+ * @param dependencyContainer - deprecated, will be removed in a future release
66
+ * @param requestHandlers - Request handlers for containers produced
67
+ * @param runtimeOptions - The runtime options passed to the ContainerRuntime when instantiating it
68
+ * @param provideEntryPoint - Function that will initialize the entryPoint of the ContainerRuntime instances
69
+ * created with this factory
70
+ */
71
+ constructor(props: {
72
+ registryEntries: NamedFluidDataStoreRegistryEntries;
73
+ dependencyContainer?: IFluidDependencySynthesizer;
74
+ /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
75
+ requestHandlers?: RuntimeRequestHandler[];
76
+ runtimeOptions?: IContainerRuntimeOptions;
77
+ provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;
78
+ });
79
+ instantiateFirstTime(runtime: ContainerRuntime): Promise<void>;
80
+ instantiateFromExisting(runtime: ContainerRuntime): Promise<void>;
81
+ preInitialize(context: IContainerContext, existing: boolean): Promise<ContainerRuntime>;
82
+ /**
83
+ * Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container
84
+ * is created. This likely includes creating any initial data stores that are expected to be there at the outset.
85
+ * @param runtime - The container runtime for the container being initialized
86
+ */
87
+ protected containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void>;
88
+ /**
89
+ * Subclasses may override containerHasInitialized to perform any steps after the container has initialized.
90
+ * This likely includes loading any data stores that are expected to be there at the outset.
91
+ * @param runtime - The container runtime for the container being initialized
92
+ */
93
+ protected containerHasInitialized(runtime: IContainerRuntime): Promise<void>;
94
+ }
95
+
96
+ /**
97
+ * A ContainerRuntimeFactory that initializes Containers with a single default data store, which can be requested from
98
+ * the container with an empty URL.
99
+ *
100
+ * This factory should be exposed as fluidExport off the entry point to your module.
101
+ * @public
102
+ */
103
+ export declare class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {
104
+ static readonly defaultDataStoreId = "default";
105
+ protected readonly defaultFactory: IFluidDataStoreFactory;
106
+ /**
107
+ * Constructor
108
+ * @param defaultFactory -
109
+ * @param registryEntries -
110
+ * @param dependencyContainer - deprecated, will be removed in a future release
111
+ * @param requestHandlers -
112
+ * @param runtimeOptions -
113
+ * @param provideEntryPoint -
114
+ */
115
+ constructor(props: {
116
+ defaultFactory: IFluidDataStoreFactory;
117
+ registryEntries: NamedFluidDataStoreRegistryEntries;
118
+ dependencyContainer?: IFluidDependencySynthesizer;
119
+ /** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
120
+ requestHandlers?: RuntimeRequestHandler[];
121
+ runtimeOptions?: IContainerRuntimeOptions;
122
+ provideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;
123
+ });
124
+ /**
125
+ * {@inheritDoc BaseContainerRuntimeFactory.containerInitializingFirstTime}
126
+ */
127
+ protected containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void>;
128
+ }
129
+
130
+ /**
131
+ * DataObject is a base data store that is primed with a root directory. It
132
+ * ensures that it is created and ready before you can access it.
133
+ *
134
+ * Having a single root directory allows for easier development. Instead of creating
135
+ * and registering channels with the runtime any new DDS that is set on the root
136
+ * will automatically be registered.
137
+ *
138
+ * @typeParam I - The optional input types used to strongly type the data object
139
+ * @public
140
+ */
141
+ export declare abstract class DataObject<I extends DataObjectTypes = DataObjectTypes> extends PureDataObject<I> {
142
+ private internalRoot;
143
+ private readonly rootDirectoryId;
144
+ /**
145
+ * The root directory will either be ready or will return an error. If an error is thrown
146
+ * the root has not been correctly created/set.
147
+ */
148
+ protected get root(): ISharedDirectory;
149
+ /**
150
+ * Initializes internal objects and calls initialization overrides.
151
+ * Caller is responsible for ensuring this is only invoked once.
152
+ */
153
+ initializeInternal(existing: boolean): Promise<void>;
154
+ /**
155
+ * Generates an error string indicating an item is uninitialized.
156
+ * @param item - The name of the item that was uninitialized.
157
+ */
158
+ protected getUninitializedErrorString(item: string): string;
159
+ }
160
+
161
+ /**
162
+ * DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects.
163
+ * It facilitates DataObject's features (such as its shared directory) by
164
+ * ensuring relevant shared objects etc are available to the factory.
165
+ *
166
+ * @typeParam TObj - DataObject (concrete type)
167
+ * @typeParam I - The input types for the DataObject
168
+ * @public
169
+ */
170
+ export declare class DataObjectFactory<TObj extends DataObject<I>, I extends DataObjectTypes = DataObjectTypes> extends PureDataObjectFactory<TObj, I> {
171
+ constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
172
+ }
173
+
174
+ /**
175
+ * This type is used as the base generic input to DataObject and PureDataObject.
176
+ * @public
177
+ */
178
+ export declare interface DataObjectTypes {
179
+ /**
180
+ * represents a type that will define optional providers that will be injected
181
+ */
182
+ OptionalProviders?: FluidObject;
183
+ /**
184
+ * the initial state type that the produced data object may take during creation
185
+ */
186
+ InitialState?: any;
187
+ /**
188
+ * represents events that will be available in the EventForwarder
189
+ */
190
+ Events?: IEvent;
191
+ }
192
+
193
+ /**
194
+ * Default request handler for a Fluid object that returns the object itself if:
195
+ *
196
+ * 1. the request url is empty
197
+ *
198
+ * 2. the request url is "/"
199
+ *
200
+ * 3. the request url starts with "/" and is followed by a query param, such as /?key=value
201
+ *
202
+ * Returns a 404 error for any other url.
203
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
204
+ * @public
205
+ */
206
+ export declare function defaultFluidObjectRequestHandler(fluidObject: FluidObject, request: IRequest): IResponse;
207
+
208
+ /**
209
+ * Pipe through container request into internal request.
210
+ * If request is empty and default url is provided, redirect request to such default url.
211
+ * @param defaultRootId - optional default root data store ID to pass request in case request is empty.
212
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
213
+ * @public
214
+ */
215
+ export declare const defaultRouteRequestHandler: (defaultRootId: string) => (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
216
+
217
+ /**
218
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
219
+ * Helper function for getting the default Fluid Object from a Container. This function only works for
220
+ * Containers that support "/" request.
221
+ *
222
+ * @typeParam T - Defines the type you expect to be returned.
223
+ *
224
+ * @param container - Container you're attempting to get the object from
225
+ * @public
226
+ */
227
+ export declare function getDefaultObjectFromContainer<T = FluidObject>(container: IContainer): Promise<T>;
228
+
229
+ /**
230
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
231
+ * Helper function for getting a Fluid Object from a Container given a path/url. This function only works for
232
+ * Containers that support getting FluidObjects via request.
233
+ *
234
+ * @typeParam T - Defines the type you expect to be returned.
235
+ *
236
+ * @param path - Unique path/url of the FluidObject
237
+ * @param container - Container you're attempting to get the object from
238
+ * @public
239
+ */
240
+ export declare function getObjectFromContainer<T = FluidObject>(path: string, container: IContainer): Promise<T>;
241
+
242
+ /**
243
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
244
+ * Helper function for getting as Fluid Object from a Container given a Unique Id. This function only works for
245
+ * Containers that support getting FluidObjects via request.
246
+ *
247
+ * @typeParam T - Defines the type you expect to be returned.
248
+ *
249
+ * @param id - Unique id of the FluidObject
250
+ * @param container - Container you're attempting to get the object from
251
+ * @public
252
+ */
253
+ export declare function getObjectWithIdFromContainer<T = FluidObject>(id: string, container: IContainer): Promise<T>;
254
+
255
+ /**
256
+ * @public
257
+ */
258
+ export declare interface IDataObjectProps<I extends DataObjectTypes = DataObjectTypes> {
259
+ readonly runtime: IFluidDataStoreRuntime;
260
+ readonly context: IFluidDataStoreContext;
261
+ readonly providers: AsyncFluidObjectProvider<I["OptionalProviders"]>;
262
+ readonly initProps?: I["InitialState"];
263
+ }
264
+
265
+ /**
266
+ * Useful interface in places where it's useful to do type erasure for PureDataObject generic
267
+ * @public
268
+ */
269
+ export declare interface IRootDataObjectFactory extends IFluidDataStoreFactory {
270
+ createRootInstance(rootDataStoreId: string, runtime: IContainerRuntime): Promise<IFluidRouter>;
271
+ }
272
+
273
+ /**
274
+ * A mountable view is only required if the view needs to be mounted across a bundle boundary. Mounting across
275
+ * bundle boundaries breaks some frameworks, so the mountable view is used to ensure the mounting is done within
276
+ * the same bundle as the view. For example, React hooks don't work if mounted across bundles since there will
277
+ * be two React instances, breaking the Rules of Hooks. When cross-bundle mounting isn't required, the mountable
278
+ * view isn't necessary.
279
+ *
280
+ * When a request is received with a mountableView: true header, this request handler will reissue the request
281
+ * without the header, and respond with a mountable view of the given class using the response.
282
+ * @param MountableViewClass - The type of mountable view to use when responding
283
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
284
+ * @public
285
+ */
286
+ export declare const mountableViewRequestHandler: (MountableViewClass: IFluidMountableViewClass, handlers: RuntimeRequestHandler[]) => (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse>;
287
+
288
+ /**
289
+ * This is a bare-bones base class that does basic setup and enables for factory on an initialize call.
290
+ * You probably don't want to inherit from this data store directly unless
291
+ * you are creating another base data store class
292
+ *
293
+ * @typeParam I - The optional input types used to strongly type the data object
294
+ * @public
295
+ */
296
+ export declare abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes> extends TypedEventEmitter<I["Events"] & IEvent> implements IFluidLoadable, IFluidRouter, IProvideFluidHandle {
297
+ /**
298
+ * This is your FluidDataStoreRuntime object
299
+ */
300
+ protected readonly runtime: IFluidDataStoreRuntime;
301
+ /**
302
+ * This context is used to talk up to the ContainerRuntime
303
+ */
304
+ protected readonly context: IFluidDataStoreContext;
305
+ /**
306
+ * Providers are FluidObject keyed objects that provide back
307
+ * a promise to the corresponding FluidObject or undefined.
308
+ * Providers injected/provided by the Container and/or HostingApplication
309
+ *
310
+ * To define providers set FluidObject interfaces in the OptionalProviders generic type for your data store
311
+ */
312
+ protected readonly providers: AsyncFluidObjectProvider<I["OptionalProviders"]>;
313
+ protected initProps?: I["InitialState"];
314
+ protected initializeP: Promise<void> | undefined;
315
+ get id(): string;
316
+ /**
317
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
318
+ */
319
+ get IFluidRouter(): this;
320
+ get IFluidLoadable(): this;
321
+ get IFluidHandle(): IFluidHandle<this>;
322
+ /**
323
+ * Handle to a data store
324
+ */
325
+ get handle(): IFluidHandle<this>;
326
+ static getDataObject(runtime: IFluidDataStoreRuntime): Promise<PureDataObject<DataObjectTypes>>;
327
+ constructor(props: IDataObjectProps<I>);
328
+ /**
329
+ * Return this object if someone requests it directly
330
+ * We will return this object in two scenarios:
331
+ *
332
+ * 1. the request url is a "/"
333
+ *
334
+ * 2. the request url is empty
335
+ */
336
+ request(req: IRequest): Promise<IResponse>;
337
+ /**
338
+ * Call this API to ensure PureDataObject is fully initialized.
339
+ * Initialization happens on demand, only on as-needed bases.
340
+ * In most cases you should allow factory/object to decide when to finish initialization.
341
+ * But if you are supplying your own implementation of DataStoreRuntime factory and overriding some methods
342
+ * and need a fully initialized object, then you can call this API to ensure object is fully initialized.
343
+ */
344
+ finishInitialization(existing: boolean): Promise<void>;
345
+ /**
346
+ * Internal initialize implementation. Overwriting this will change the flow of the PureDataObject and should
347
+ * generally not be done.
348
+ *
349
+ * Calls initializingFirstTime, initializingFromExisting, and hasInitialized. Caller is
350
+ * responsible for ensuring this is only invoked once.
351
+ */
352
+ initializeInternal(existing: boolean): Promise<void>;
353
+ /**
354
+ * Called every time the data store is initialized, before initializingFirstTime or
355
+ * initializingFromExisting is called.
356
+ */
357
+ protected preInitialize(): Promise<void>;
358
+ /**
359
+ * Called the first time the data store is initialized (new creations with a new
360
+ * data store runtime)
361
+ *
362
+ * @param props - Optional props to be passed in on create
363
+ */
364
+ protected initializingFirstTime(props?: I["InitialState"]): Promise<void>;
365
+ /**
366
+ * Called every time but the first time the data store is initialized (creations
367
+ * with an existing data store runtime)
368
+ */
369
+ protected initializingFromExisting(): Promise<void>;
370
+ /**
371
+ * Called every time the data store is initialized after create or existing.
372
+ */
373
+ protected hasInitialized(): Promise<void>;
374
+ }
375
+
376
+ /**
377
+ * PureDataObjectFactory is a barebones IFluidDataStoreFactory for use with PureDataObject.
378
+ * Consumers should typically use DataObjectFactory instead unless creating
379
+ * another base data store factory.
380
+ *
381
+ * @typeParam TObj - DataObject (concrete type)
382
+ * @typeParam I - The input types for the DataObject
383
+ * @public
384
+ */
385
+ export declare class PureDataObjectFactory<TObj extends PureDataObject<I>, I extends DataObjectTypes = DataObjectTypes> implements IFluidDataStoreFactory, Partial<IProvideFluidDataStoreRegistry>, IRootDataObjectFactory {
386
+ readonly type: string;
387
+ private readonly ctor;
388
+ private readonly optionalProviders;
389
+ private readonly runtimeClass;
390
+ private readonly sharedObjectRegistry;
391
+ private readonly registry;
392
+ constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory[], optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeClass?: typeof FluidDataStoreRuntime);
393
+ get IFluidDataStoreFactory(): this;
394
+ get IFluidDataStoreRegistry(): IFluidDataStoreRegistry | undefined;
395
+ /**
396
+ * Convenience helper to get the data store's/factory's data store registry entry.
397
+ * The return type hides the factory's generics, easing grouping of registry
398
+ * entries that differ only in this way into the same array.
399
+ * @returns The NamedFluidDataStoreRegistryEntry
400
+ */
401
+ get registryEntry(): NamedFluidDataStoreRegistryEntry;
402
+ /**
403
+ * This is where we do data store setup.
404
+ *
405
+ * @param context - data store context used to load a data store runtime
406
+ */
407
+ instantiateDataStore(context: IFluidDataStoreContext, existing: boolean): Promise<FluidDataStoreRuntime>;
408
+ /**
409
+ * Creates a new instance of the object. Uses parent context's registry to build package path to this factory.
410
+ * In other words, registry of context passed in has to contain this factory, with the name that matches
411
+ * this factory's type.
412
+ * It is intended to be used by data store objects that create sub-objects.
413
+ * @param context - The context being used to create the runtime
414
+ * (the created object will have its own new context created as well)
415
+ * @param initialState - The initial state to provide to the created data store.
416
+ * @returns an object created by this factory. Data store and objects created are not attached to container.
417
+ * They get attached only when a handle to one of them is attached to already attached objects.
418
+ */
419
+ createChildInstance(parentContext: IFluidDataStoreContext, initialState?: I["InitialState"]): Promise<TObj>;
420
+ /**
421
+ * Creates a new instance of the object. Uses peer context's registry and its package path to identify this factory.
422
+ * In other words, registry of context passed in has to have this factory.
423
+ * Intended to be used by data store objects that need to create peers (similar) instances of existing objects.
424
+ * @param context - The component context being used to create the object
425
+ * (the created object will have its own new context created as well)
426
+ * @param initialState - The initial state to provide to the created component.
427
+ * @returns an object created by this factory. Data store and objects created are not attached to container.
428
+ * They get attached only when a handle to one of them is attached to already attached objects.
429
+ */
430
+ createPeerInstance(peerContext: IFluidDataStoreContext, initialState?: I["InitialState"]): Promise<TObj>;
431
+ /**
432
+ * Creates a new instance of the object. Uses container's registry to find this factory.
433
+ * It's expected that only container owners would use this functionality, as only such developers
434
+ * have knowledge of entries in container registry.
435
+ * The name in this registry for such record should match type of this factory.
436
+ * @param runtime - container runtime. It's registry is used to create an object.
437
+ * @param initialState - The initial state to provide to the created component.
438
+ * @returns an object created by this factory. Data store and objects created are not attached to container.
439
+ * They get attached only when a handle to one of them is attached to already attached objects.
440
+ */
441
+ createInstance(runtime: IContainerRuntimeBase, initialState?: I["InitialState"]): Promise<TObj>;
442
+ /**
443
+ * Creates a new root instance of the object. Uses container's registry to find this factory.
444
+ * It's expected that only container owners would use this functionality, as only such developers
445
+ * have knowledge of entries in container registry.
446
+ * The name in this registry for such record should match type of this factory.
447
+ * @param runtime - container runtime. It's registry is used to create an object.
448
+ * @param initialState - The initial state to provide to the created component.
449
+ * @returns an object created by this factory. Data store and objects created are not attached to container.
450
+ * They get attached only when a handle to one of them is attached to already attached objects.
451
+ */
452
+ createRootInstance(rootDataStoreId: string, runtime: IContainerRuntime, initialState?: I["InitialState"]): Promise<TObj>;
453
+ protected createNonRootInstanceCore(containerRuntime: IContainerRuntimeBase, packagePath: Readonly<string[]>, initialState?: I["InitialState"]): Promise<TObj>;
454
+ protected createInstanceCore(context: IFluidDataStoreContextDetached, initialState?: I["InitialState"]): Promise<TObj>;
455
+ }
456
+
457
+ /* Excluded from this release type: TypedEventEmitter */
458
+
459
+ export { }