tsdf 18.3.0 → 18.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.
package/dist/main.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as OfflineResolutionConflictParseError, $t as TSFDUseListQueryReturn, A as DefineListQueryOfflineOperations, At as OfflineUploadTransportContext, B as OfflineEntityMutationKind, Bt as ListQueryUseMultipleItemsQuery, C as PersistentStorageSchema, Cn as TSDFFocusDebugOperation, Ct as OfflineSessionUploadsConfig, D as CollectionOfflineOperationDefinition, Dt as OfflineUploadProgress, E as CollectionOfflineEntityRef, Et as OfflineUploadAdapter, F as ListQueryOfflineEntityRef, Ft as DerivedQuerySource, G as OfflineMutationQueueingPolicy, Gt as OptimisticListUpdate, H as OfflineMutationInput, Ht as OffsetPaginationConfig, I as ListQueryOfflineOperationDefinition, It as FetchListFnReturn, J as OfflineReplayRetryConfig, Jt as QueryStatus, K as OfflineOperationKind, Kt as PartialResourcesConfig, L as OfflineAccumulationConfig, Lt as FetchListFnReturnItem, M as DocumentOfflineOperationDefinition, Mt as SaveOfflineUploadArgs, N as GlobalOfflineEntity, Nt as DerivedQueriesConfig, O as DefineCollectionOfflineOperations, Ot as OfflineUploadSource, P as GlobalOfflineStatus, Pt as DerivedQueryContext, Q as OfflineResolutionActionForOperation, Qt as TSFDUseListItemReturn, R as OfflineAccumulationMergeContext, Rt as FieldsInput, S as PersistentStoragePreloadResult, Sn as TSDFDebugLogger, St as OfflineOperationUploadsContext, T as AnyOfflineOperationDefinition, Tt as OfflineUpload, U as OfflineMutationQueueingCause, Ut as OnListQueryInvalidate, V as OfflineMutationDescriptor, Vt as ListQueryUseMultipleListQueriesQuery, W as OfflineMutationQueueingConfig, Wt as OnListQueryItemInvalidate, X as OfflineResolutionActionError, Xt as TSFDListQuery, Y as OfflineResolutionAction, Yt as TSDFItemQuery, Z as OfflineResolutionActionErrorCode, Zt as TSFDListQueryState, _ as ListQueryOfflineOperationsConfig, _n as ScheduleFetchOptions, _t as OperationResult, a as AsyncStorageMetadataOrder, an as StoreFetchError, at as OfflineRetryExhaustedResolutionAction, b as PersistentStorageDataSchema, bn as TSDFDebugLogEntry, bt as defaultOfflineRuntimeConfig, c as AsyncStorageNamespaceCommitUpsert, cn as TSDFStatus, ct as OfflineSession, d as AsyncStorageNamespaceKind, dn as ValidStoreState, dt as OfflineSyncState, en as TSFDUsePendingOfflineItemsReturn, et as OfflineResolutionConflictParseErrorCode, f as AsyncStorageNamespaceScope, fn as fetchTypePriority, ft as OfflineTempEntitiesConfig, g as DocumentPersistentStorageConfig, gn as RequestSchedulerEvents, gt as OperationConflict, h as ConvertedPersistentStorageDataSchema, hn as RequestSchedulerEventData, ht as OfflineTempEntityPendingEntry, i as AsyncStorageDriverSetEntry, in as StoreError, it as OfflineResolutionRecordForStore, j as DefineOfflineOperation, jt as ReplaceOfflineUploadArgs, k as DefineDocumentOfflineOperations, kt as OfflineUploadState, l as AsyncStorageNamespaceGetResult, ln as UnwrapTSDFResult, lt as OfflineSessionConfig, m as CollectionPersistentStorageConfig, mn as FetchType, mt as OfflineTempEntityConfig, n as AsyncStorageDiscoveredScope, nn as MutationSkipped, nt as OfflineResolutionRecord, o as AsyncStorageNamespaceCommitArgs, on as StoreMutationError, ot as OfflineRuntimeConfig, p as AsyncStorageReadOptions, pn as mutationSkipped, pt as OfflineTempEntitiesReconciliation, q as OfflineQueueEntry, qt as QueryFetchPayload, r as AsyncStorageDriver, rn as PayloadDebounce, rt as OfflineResolutionRecordForOperation, s as AsyncStorageNamespaceCommitTouch, sn as StoreMutationErrorOptions, st as OfflineRuntimeConfigUpdate, t as AsyncStorageAdapter, tn as MaybeTSDFResult, tt as OfflineResolutionGenericAction, u as AsyncStorageNamespaceHandle, un as ValidPayload, ut as OfflineSupersedeConfig, v as ListQueryPersistentStorageConfig, vn as ScheduleFetchResults, vt as ParsedOfflineResolutionConflictResultForOperation, w as StorageAdapter, wn as TSDFLoggerOptions, wt as OfflineStoredUploadRecord, x as PersistentStorageErrorHandler, xn as TSDFDebugLogLevel, xt as OfflineMutationUploadsInput, y as PersistentStorageBaseConfig, yn as TSDFDebugLogArea, yt as ParsedOfflineResolutionConflictResultForStore, z as OfflineConflictResolutionAction, zt as FieldsOption } from "./types-2UJIjziu.js";
1
+ import { $ as OfflineResolutionAction, $t as TSDFItemQuery, A as DefineListQueryOfflineOperations, At as OfflineUploadAdapter, B as OfflineConflictResolutionAction, Bt as FetchListFnReturn, C as PersistentStorageSchema, Cn as TSDFDebugLogArea, Ct as ParsedOfflineResolutionConflictResultForStore, D as CollectionOfflineOperationDefinition, Dn as TSDFFocusDebugOperation, Dt as OfflineSessionUploadsConfig, E as CollectionOfflineEntityRef, En as TSDFDebugLogger, Et as OfflineOperationUploadsContext, F as ItemOfflineState, Ft as ReplaceOfflineUploadArgs, G as OfflineMutationDescriptor, Gt as ListQueryUseMultipleListQueriesQuery, H as OfflineFailureClassification, Ht as FieldsInput, I as ListQueryOfflineEntityRef, It as SaveOfflineUploadArgs, J as OfflineMutationQueueingConfig, Jt as OnListQueryItemInvalidate, K as OfflineMutationInput, Kt as OffsetPaginationConfig, L as ListQueryOfflineOperationDefinition, Lt as DerivedQueriesConfig, M as DocumentOfflineOperationDefinition, Mt as OfflineUploadSource, N as GlobalOfflineEntity, Nt as OfflineUploadState, O as DefineCollectionOfflineOperations, On as TSDFLoggerOptions, Ot as OfflineStoredUploadRecord, P as GlobalOfflineStatus, Pt as OfflineUploadTransportContext, Q as OfflineReplayRetryConfig, Qt as QueryStatus, R as OfflineAccumulationConfig, Rt as DerivedQueryContext, S as PersistentStoragePreloadResult, Sn as ScheduleFetchResults, St as ParsedOfflineResolutionConflictResultForOperation, T as AnyOfflineOperationDefinition, Tn as TSDFDebugLogLevel, Tt as OfflineMutationUploadsInput, U as OfflineFailureContext, Ut as FieldsOption, V as OfflineEntityMutationKind, Vt as FetchListFnReturnItem, W as OfflineFailurePhase, Wt as ListQueryUseMultipleItemsQuery, X as OfflineOperationKind, Xt as PartialResourcesConfig, Y as OfflineMutationQueueingPolicy, Yt as OptimisticListUpdate, Z as OfflineQueueEntry, Zt as QueryFetchPayload, _ as ListQueryOfflineOperationsConfig, _n as mutationSkipped, _t as OfflineTempEntitiesReconciliation, a as AsyncStorageMetadataOrder, an as MaybeTSDFResult, at as OfflineResolutionGenericAction, b as PersistentStorageDataSchema, bn as RequestSchedulerEvents, bt as OperationConflict, c as AsyncStorageNamespaceCommitUpsert, cn as StoreError, ct as OfflineResolutionRecordForStore, d as AsyncStorageNamespaceKind, dn as StoreMutationErrorOptions, dt as OfflineRuntimeConfigUpdate, en as TSFDListQuery, et as OfflineResolutionActionError, f as AsyncStorageNamespaceScope, fn as TSDFStatus, ft as OfflineSession, g as DocumentPersistentStorageConfig, gn as fetchTypePriority, gt as OfflineTempEntitiesConfig, h as ConvertedPersistentStorageDataSchema, hn as ValidStoreState, ht as OfflineSyncState, i as AsyncStorageDriverSetEntry, in as TSFDUsePendingOfflineItemsReturn, it as OfflineResolutionConflictParseErrorCode, j as DefineOfflineOperation, jt as OfflineUploadProgress, k as DefineDocumentOfflineOperations, kt as OfflineUpload, l as AsyncStorageNamespaceGetResult, ln as StoreFetchError, lt as OfflineRetryExhaustedResolutionAction, m as CollectionPersistentStorageConfig, mn as ValidPayload, mt as OfflineSupersedeConfig, n as AsyncStorageDiscoveredScope, nn as TSFDUseListItemReturn, nt as OfflineResolutionActionForOperation, o as AsyncStorageNamespaceCommitArgs, on as MutationSkipped, ot as OfflineResolutionRecord, p as AsyncStorageReadOptions, pn as UnwrapTSDFResult, pt as OfflineSessionConfig, q as OfflineMutationQueueingCause, qt as OnListQueryInvalidate, r as AsyncStorageDriver, rn as TSFDUseListQueryReturn, rt as OfflineResolutionConflictParseError, s as AsyncStorageNamespaceCommitTouch, sn as PayloadDebounce, st as OfflineResolutionRecordForOperation, t as AsyncStorageAdapter, tn as TSFDListQueryState, tt as OfflineResolutionActionErrorCode, u as AsyncStorageNamespaceHandle, un as StoreMutationError, ut as OfflineRuntimeConfig, v as ListQueryPersistentStorageConfig, vn as FetchType, vt as OfflineTempEntityConfig, w as StorageAdapter, wn as TSDFDebugLogEntry, wt as defaultOfflineRuntimeConfig, x as PersistentStorageErrorHandler, xn as ScheduleFetchOptions, xt as OperationResult, y as PersistentStorageBaseConfig, yn as RequestSchedulerEventData, yt as OfflineTempEntityPendingEntry, z as OfflineAccumulationMergeContext, zt as DerivedQuerySource } from "./types-DUtkSBT8.js";
2
2
  import { __LEGIT_ANY__ } from "@ls-stack/utils/saferTyping";
3
3
  import { Emitter } from "evtmitter";
4
4
  import { Context } from "react";
@@ -10,13 +10,20 @@ import { Store } from "t-state";
10
10
  * Successful result of an offline-enabled mutation attempt.
11
11
  *
12
12
  * `online` means the direct request completed and returned the server payload.
13
- * `queued` means the mutation was durably persisted for offline replay.
13
+ * `queued` means the mutation was queued for offline replay. It is normally
14
+ * persisted, but if the queue write failed (reported through
15
+ * `onPersistentStorageError`) it is only kept in memory until the page reloads.
14
16
  */
15
17
  type OfflineMutationResult<T> = {
16
18
  /** The direct online mutation completed successfully. */kind: 'online'; /** Server payload returned by the direct mutation. */
17
19
  data: Awaited<T>;
18
20
  } | {
19
- /** The mutation was durably queued for offline replay. */kind: 'queued';
21
+ /**
22
+ * The mutation was queued for offline replay. If the queue write failed
23
+ * (reported through `onPersistentStorageError`), it is only kept in
24
+ * memory until the page reloads.
25
+ */
26
+ kind: 'queued';
20
27
  };
21
28
  //#endregion
22
29
  //#region src/persistentStorage/removedStoresCleanup.d.ts
@@ -87,12 +94,41 @@ type StoreManagerOfflineApi<TUploadRef extends ValidPayload = ValidPayload> = {
87
94
  * retried or discarded only while `blockedResolutionCount === 0`.
88
95
  */
89
96
  resolveOfflineResolution: (resolutionId: string, action: OfflineResolutionGenericAction) => Promise<Result<void, OfflineResolutionActionError>>; /** Returns the latest session-scoped offline uploads for this manager. */
90
- getOfflineUploads: () => readonly OfflineUpload<TUploadRef>[]; /** Resolves a staged upload id to its latest final ref, uploading first if needed. */
91
- resolveOfflineUpload: (id: string) => Promise<Result<TUploadRef, Error>>; /** Resolves multiple staged upload ids to their latest final refs. */
92
- resolveOfflineUploads: (ids: readonly string[]) => Promise<Result<Record<string, TUploadRef>, Error>>; /** Saves a session-scoped upload locally for later dependency resolution. */
97
+ getOfflineUploads: () => readonly OfflineUpload<TUploadRef>[];
98
+ /**
99
+ * Resolves a staged upload id to its latest final ref, uploading first if
100
+ * needed. An upload deleted after it was sent keeps resolving to its ref for
101
+ * the rest of the app session, in every tab open when it was deleted.
102
+ *
103
+ * When the `upload` transport fails, the result is `Result.err` with the
104
+ * transport error and the upload becomes `failed` with `lastError` set. The
105
+ * session failure classifiers are not consulted and nothing is retried
106
+ * automatically: call it again to run the upload again.
107
+ */
108
+ resolveOfflineUpload: (id: string) => Promise<Result<TUploadRef, Error>>;
109
+ /**
110
+ * Resolves multiple staged upload ids to their latest final refs.
111
+ *
112
+ * Fails as a whole with the first transport error, following the same rules
113
+ * as `resolveOfflineUpload`. Uploads that already succeeded stay `uploaded`
114
+ * and are not sent again by a later call.
115
+ */
116
+ resolveOfflineUploads: (ids: readonly string[]) => Promise<Result<Record<string, TUploadRef>, Error>>;
117
+ /**
118
+ * Saves a session-scoped upload locally for later dependency resolution. It
119
+ * is deleted automatically once the queued work that depends on it leaves
120
+ * the queue. Only stores created in the tab count as depending on it, so
121
+ * create the stores that share an upload id before their queued work
122
+ * replays.
123
+ */
93
124
  saveOfflineUpload: (args: SaveOfflineUploadArgs) => Promise<Result<void, Error>>; /** Replaces a previously stored session-scoped upload, keeping its metadata unless new metadata is passed. */
94
125
  replaceOfflineUpload: (args: ReplaceOfflineUploadArgs) => Promise<Result<void, Error>>; /** Loads a previously stored session-scoped upload. */
95
- loadOfflineUpload: (id: string) => Promise<Result<File | null, Error>>; /** Deletes a stored upload when it is no longer referenced. */
126
+ loadOfflineUpload: (id: string) => Promise<Result<File | null, Error>>;
127
+ /**
128
+ * Deletes a stored upload that no queued work references. Only needed for
129
+ * uploads no queued mutation used: the others are deleted with the work that
130
+ * depends on them.
131
+ */
96
132
  deleteOfflineUpload: (id: string) => Promise<Result<void, Error>>; /** React hook subscribing to the manager's aggregated offline status. */
97
133
  useOfflineStatus: () => GlobalOfflineStatus; /** React hook subscribing to the manager's aggregated offline entities. */
98
134
  useOfflineEntities: () => readonly GlobalOfflineEntity[]; /** React hook subscribing to the manager's aggregated offline resolutions. */
@@ -262,7 +298,11 @@ type CollectionStoreStoreEvents<ItemPayload extends ValidPayload> = {
262
298
  mutationId: number;
263
299
  items: ItemPayload[];
264
300
  status: 'success' | 'error' | 'skipped';
265
- }; /** Emitted when an offline temp item is reconciled to its final payload. */
301
+ };
302
+ /**
303
+ * Emitted when an offline temp item is reconciled to its final payload, in
304
+ * every tab of the session, not only the one that sent the creation.
305
+ */
266
306
  tempEntityReconciled: {
267
307
  tempId: ItemPayload;
268
308
  finalPayload: ItemPayload;
@@ -461,7 +501,15 @@ type CollectionStore<ItemState extends ValidStoreState, ItemPayload extends Vali
461
501
  (params: ItemPayload[] | CollectionFilterItemsFn<ItemState, ItemPayload>): TSFDCollectionItem<ItemState, ItemPayload>[];
462
502
  }; /** Returns offline sync metadata for this store's tracked entities. */
463
503
  getOfflineEntities: () => GlobalOfflineEntity[]; /** React hook subscribing to this store's offline entity metadata. */
464
- useOfflineEntities: () => readonly GlobalOfflineEntity[]; /** React hook subscribing to manual offline resolutions for this store. */
504
+ useOfflineEntities: () => readonly GlobalOfflineEntity[];
505
+ /**
506
+ * React hook returning the offline sync state of one item, or `null` when
507
+ * the item has nothing queued and no manual resolution waiting. The
508
+ * component re-renders only when that item's own state changes, so it is
509
+ * suited for per-item sync badges.
510
+ */
511
+ useItemOfflineState: (itemPayload: ItemPayload | false | null | undefined) => ItemOfflineState | null; /** Non-reactive version of `useItemOfflineState`, for event handlers. */
512
+ getItemOfflineState: (itemPayload: ItemPayload) => ItemOfflineState | null; /** React hook subscribing to manual offline resolutions for this store. */
465
513
  useOfflineResolutions: () => readonly OfflineResolutionRecord[]; /** Returns manual offline resolutions for this store. */
466
514
  getOfflineResolutions: () => OfflineResolutionRecord[]; /** Parses a stored offline conflict into the operation-specific conflict shape. */
467
515
  parseOfflineResolutionConflict: (resolution: OfflineResolutionRecord) => ParsedOfflineResolutionConflictResultForStore<ResolvedCollectionOfflineOperations<TOfflineOperations>>; /** Applies a retry/discard/requeue/commit action to a pending offline resolution. */
@@ -828,6 +876,10 @@ type ListQueryStoreStoreEvents<ItemPayload extends ValidPayload> = {
828
876
  items: ItemPayload[];
829
877
  status: 'success' | 'error' | 'skipped';
830
878
  };
879
+ /**
880
+ * Emitted when an offline temp item is reconciled to its final payload, in
881
+ * every tab of the session, not only the one that sent the creation.
882
+ */
831
883
  tempEntityReconciled: {
832
884
  tempId: ItemPayload;
833
885
  finalPayload: ItemPayload;
@@ -1087,7 +1139,15 @@ type ListQueryStore<ItemState extends ValidStoreState, QueryPayload extends Vali
1087
1139
  }; /** React hook for locally pending offline items in this store. */
1088
1140
  usePendingOfflineItems: ListQueryUsePendingOfflineItemsApi<ItemState, ItemPayload>; /** Returns offline sync metadata for this store's tracked entities. */
1089
1141
  getOfflineEntities: () => GlobalOfflineEntity[]; /** React hook subscribing to this store's offline entity metadata. */
1090
- useOfflineEntities: () => readonly GlobalOfflineEntity[]; /** React hook subscribing to manual offline resolutions for this store. */
1142
+ useOfflineEntities: () => readonly GlobalOfflineEntity[];
1143
+ /**
1144
+ * React hook returning the offline sync state of one item, or `null` when
1145
+ * the item has nothing queued and no manual resolution waiting. The
1146
+ * component re-renders only when that item's own state changes, so it is
1147
+ * suited for per-row sync badges.
1148
+ */
1149
+ useItemOfflineState: (itemPayload: ItemPayload | false | null | undefined) => ItemOfflineState | null; /** Non-reactive version of `useItemOfflineState`, for event handlers. */
1150
+ getItemOfflineState: (itemPayload: ItemPayload) => ItemOfflineState | null; /** React hook subscribing to manual offline resolutions for this store. */
1091
1151
  useOfflineResolutions: () => readonly OfflineResolutionRecord[]; /** Returns manual offline resolutions for this store. */
1092
1152
  getOfflineResolutions: () => OfflineResolutionRecord[]; /** Parses a stored offline conflict into the operation-specific conflict shape. */
1093
1153
  parseOfflineResolutionConflict: (resolution: OfflineResolutionRecord) => ParsedOfflineResolutionConflictResultForStore<ResolvedListQueryOfflineOperations<TOfflineOperations>>; /** Applies a retry/discard/requeue/commit action to a pending offline resolution. */
@@ -1237,6 +1297,44 @@ declare const GET_ALL: (...args: unknown[]) => true;
1237
1297
  */
1238
1298
  declare const IsOffScreenContext: Context<boolean>;
1239
1299
  //#endregion
1300
+ //#region src/persistentStorage/offline/fetchRuntime.d.ts
1301
+ /**
1302
+ * The error TSDF reports for a fetch that could not complete because the
1303
+ * offline session is in offline mode. Use `isOfflineStoreError` to recognise
1304
+ * it.
1305
+ */
1306
+ type OfflineStoreError = StoreError & {
1307
+ code: 0;
1308
+ id: 'offline';
1309
+ message: 'Offline';
1310
+ };
1311
+ //#endregion
1312
+ //#region src/persistentStorage/offline/offlineStoreError.typeGuards.d.ts
1313
+ /**
1314
+ * Whether `error` is the error TSDF reports for a fetch that could not
1315
+ * complete because the offline session is in offline mode (the request is not
1316
+ * sent while offline).
1317
+ *
1318
+ * TSDF only exposes it on reads that have nothing cached to return
1319
+ * (`status: 'error'`): a document, item or query that is returning cached data
1320
+ * stays `success` with `error: null` while offline, so this is the state the
1321
+ * app has to explain to the user ("not available offline").
1322
+ *
1323
+ * Accepts the `error` of hooks and state getters and the `StoreFetchError` of
1324
+ * the `awaitFetch` methods. The error is matched by its whole shape, not only
1325
+ * by `id`, so an app error whose `errorNormalizer` happens to use the
1326
+ * `'offline'` id is not mistaken for it.
1327
+ *
1328
+ * @example
1329
+ * ```tsx
1330
+ * const { data, error } = store.useDocument();
1331
+ *
1332
+ * if (isOfflineStoreError(error)) return <NotAvailableOffline />;
1333
+ * if (error) return <ErrorMessage error={error} />;
1334
+ * ```
1335
+ */
1336
+ declare function isOfflineStoreError(error: StoreError | null | undefined): error is OfflineStoreError;
1337
+ //#endregion
1240
1338
  //#region src/persistentStorage/offline/sessionCoordinator.d.ts
1241
1339
  /**
1242
1340
  * Returns the latest offline status for a session. If the session has not been
@@ -1381,4 +1479,4 @@ declare function clearAllSessionStorage(sessionKey: string): Promise<void>;
1381
1479
  //#region src/persistentStorage/opfsOfflineUploadAdapter.d.ts
1382
1480
  declare const opfsOfflineUploadAdapter: OfflineUploadAdapter;
1383
1481
  //#endregion
1384
- export { type AsyncStorageAdapter, type AsyncStorageDiscoveredScope, type AsyncStorageDriver, type AsyncStorageDriverSetEntry, type AsyncStorageMetadataOrder, type AsyncStorageNamespaceCommitArgs, type AsyncStorageNamespaceCommitTouch, type AsyncStorageNamespaceCommitUpsert, type AsyncStorageNamespaceGetResult, type AsyncStorageNamespaceHandle, type AsyncStorageNamespaceKind, type AsyncStorageNamespaceScope, type AsyncStorageReadOptions, type BlockWindowCloseHandler, type CollectionOfflineEntityRef, type CollectionOfflineOperationDefinition, type CollectionPersistentStorageConfig, CollectionStateCleanup, CollectionStore, CollectionStoreEvents, CollectionStoreOptions, CollectionStoreStoreEvents, CollectionUseMultipleItemsQuery, type ConvertedPersistentStorageDataSchema, type CreateStoreManagerOptions, type DefineCollectionOfflineOperations, type DefineDocumentOfflineOperations, type DefineListQueryOfflineOperations, type DefineOfflineOperation, type DerivedQueriesConfig, type DerivedQueryContext, type DerivedQuerySource, type DocumentOfflineOperationDefinition, type DocumentPersistentStorageConfig, DocumentStatus, DocumentStore, DocumentStoreOptions, DocumentStoreState, DocumentStoreStoreEvents, type DynamicRealtimeThrottleMs, type FetchListFnReturn, type FetchListFnReturnItem, type FieldsInput, type FieldsOption, GET_ALL, type GlobalOfflineEntity, type GlobalOfflineStatus, IsOffScreenContext, type ListQueryOfflineEntityRef, type ListQueryOfflineOperationDefinition, type ListQueryPersistentStorageConfig, type ListQueryStore, type ListQueryStoreEvents, type ListQueryStoreOptions, type ListQueryUseMultipleItemsQuery, type ListQueryUseMultipleListQueriesQuery, type MaybeTSDFResult, type MutationDebounce, type MutationSkipped, type OfflineAccumulationConfig, type OfflineAccumulationMergeContext, type OfflineConflictResolutionAction, type OfflineEntityMutationKind, type OfflineMutationDescriptor, type OfflineMutationInput, type OfflineMutationQueueingCause, type OfflineMutationQueueingConfig, type OfflineMutationQueueingPolicy, type OfflineMutationResult, type OfflineMutationUploadsInput, type OfflineOperationKind, type OfflineOperationUploadsContext, type OfflineQueueEntry, type OfflineReplayRetryConfig, type OfflineResolutionAction, type OfflineResolutionActionError, type OfflineResolutionActionErrorCode, type OfflineResolutionActionForOperation, type OfflineResolutionConflictParseError, type OfflineResolutionConflictParseErrorCode, type OfflineResolutionGenericAction, type OfflineResolutionRecord, type OfflineResolutionRecordForOperation, type OfflineResolutionRecordForStore, type OfflineRetryExhaustedResolutionAction, type OfflineRuntimeConfig, type OfflineRuntimeConfigUpdate, type OfflineSession, type OfflineSessionConfig, type OfflineSessionUploadsConfig, type OfflineStoredUploadRecord, type OfflineSupersedeConfig, type OfflineSyncState, type OfflineTempEntitiesConfig, type OfflineTempEntitiesReconciliation, type OfflineTempEntityConfig, type OfflineTempEntityPendingEntry, type OfflineUpload, type OfflineUploadAdapter, type OfflineUploadProgress, type OfflineUploadSource, type OfflineUploadState, type OfflineUploadTransportContext, type OffsetPaginationConfig, OnCollectionItemInvalidate, OnDocumentInvalidate, type OnListQueryInvalidate, type OnListQueryItemInvalidate, type OperationConflict, type OperationResult, type OptimisticListUpdate, type ParsedOfflineResolutionConflictResultForOperation, type PartialResourcesConfig, type PayloadDebounce, type PersistentStorageBaseConfig, type PersistentStorageDataSchema, type PersistentStoragePreloadResult, type PersistentStorageSchema, type QueryFetchPayload, type QueryStatus, type RemovedStore, type ReplaceOfflineUploadArgs, type SaveOfflineUploadArgs, type StorageAdapter, type StoreError, StoreFetchError, type StoreManager, StoreMutationError, type StoreMutationErrorOptions, type TSDFDebugLogArea, type TSDFDebugLogEntry, type TSDFDebugLogLevel, type TSDFDebugLogger, type TSDFFocusDebugOperation, type TSDFItemQuery, type TSDFLoggerOptions, type TSDFStatus, TSDFUseDocumentReturn, TSFDCollectionItem, TSFDCollectionState, type TSFDListQuery, type TSFDListQueryState, TSFDUseCollectionItemReturn, type TSFDUseListItemReturn, type TSFDUseListQueryReturn, type TSFDUsePendingOfflineItemsReturn, type ValidPayload, type ValidStoreState, clearAllSessionStorage, clearSessionStorage, createCollectionStore, createDocumentStore, createListQueryStore, createStoreManager, defaultOfflineRuntimeConfig, fetchTypePriority, getGlobalOfflineEntities, getGlobalOfflineResolutions, getGlobalOfflineStatus, localPersistentStorage, mutationSkipped, opfsOfflineUploadAdapter, useGlobalOfflineEntities, useGlobalOfflineResolutions, useGlobalOfflineStatus };
1482
+ export { type AsyncStorageAdapter, type AsyncStorageDiscoveredScope, type AsyncStorageDriver, type AsyncStorageDriverSetEntry, type AsyncStorageMetadataOrder, type AsyncStorageNamespaceCommitArgs, type AsyncStorageNamespaceCommitTouch, type AsyncStorageNamespaceCommitUpsert, type AsyncStorageNamespaceGetResult, type AsyncStorageNamespaceHandle, type AsyncStorageNamespaceKind, type AsyncStorageNamespaceScope, type AsyncStorageReadOptions, type BlockWindowCloseHandler, type CollectionOfflineEntityRef, type CollectionOfflineOperationDefinition, type CollectionPersistentStorageConfig, CollectionStateCleanup, CollectionStore, CollectionStoreEvents, CollectionStoreOptions, CollectionStoreStoreEvents, CollectionUseMultipleItemsQuery, type ConvertedPersistentStorageDataSchema, type CreateStoreManagerOptions, type DefineCollectionOfflineOperations, type DefineDocumentOfflineOperations, type DefineListQueryOfflineOperations, type DefineOfflineOperation, type DerivedQueriesConfig, type DerivedQueryContext, type DerivedQuerySource, type DocumentOfflineOperationDefinition, type DocumentPersistentStorageConfig, DocumentStatus, DocumentStore, DocumentStoreOptions, DocumentStoreState, DocumentStoreStoreEvents, type DynamicRealtimeThrottleMs, type FetchListFnReturn, type FetchListFnReturnItem, type FieldsInput, type FieldsOption, GET_ALL, type GlobalOfflineEntity, type GlobalOfflineStatus, IsOffScreenContext, type ItemOfflineState, type ListQueryOfflineEntityRef, type ListQueryOfflineOperationDefinition, type ListQueryPersistentStorageConfig, type ListQueryStore, type ListQueryStoreEvents, type ListQueryStoreOptions, type ListQueryUseMultipleItemsQuery, type ListQueryUseMultipleListQueriesQuery, type MaybeTSDFResult, type MutationDebounce, type MutationSkipped, type OfflineAccumulationConfig, type OfflineAccumulationMergeContext, type OfflineConflictResolutionAction, type OfflineEntityMutationKind, type OfflineFailureClassification, type OfflineFailureContext, type OfflineFailurePhase, type OfflineMutationDescriptor, type OfflineMutationInput, type OfflineMutationQueueingCause, type OfflineMutationQueueingConfig, type OfflineMutationQueueingPolicy, type OfflineMutationResult, type OfflineMutationUploadsInput, type OfflineOperationKind, type OfflineOperationUploadsContext, type OfflineQueueEntry, type OfflineReplayRetryConfig, type OfflineResolutionAction, type OfflineResolutionActionError, type OfflineResolutionActionErrorCode, type OfflineResolutionActionForOperation, type OfflineResolutionConflictParseError, type OfflineResolutionConflictParseErrorCode, type OfflineResolutionGenericAction, type OfflineResolutionRecord, type OfflineResolutionRecordForOperation, type OfflineResolutionRecordForStore, type OfflineRetryExhaustedResolutionAction, type OfflineRuntimeConfig, type OfflineRuntimeConfigUpdate, type OfflineSession, type OfflineSessionConfig, type OfflineSessionUploadsConfig, type OfflineStoreError, type OfflineStoredUploadRecord, type OfflineSupersedeConfig, type OfflineSyncState, type OfflineTempEntitiesConfig, type OfflineTempEntitiesReconciliation, type OfflineTempEntityConfig, type OfflineTempEntityPendingEntry, type OfflineUpload, type OfflineUploadAdapter, type OfflineUploadProgress, type OfflineUploadSource, type OfflineUploadState, type OfflineUploadTransportContext, type OffsetPaginationConfig, OnCollectionItemInvalidate, OnDocumentInvalidate, type OnListQueryInvalidate, type OnListQueryItemInvalidate, type OperationConflict, type OperationResult, type OptimisticListUpdate, type ParsedOfflineResolutionConflictResultForOperation, type PartialResourcesConfig, type PayloadDebounce, type PersistentStorageBaseConfig, type PersistentStorageDataSchema, type PersistentStoragePreloadResult, type PersistentStorageSchema, type QueryFetchPayload, type QueryStatus, type RemovedStore, type ReplaceOfflineUploadArgs, type SaveOfflineUploadArgs, type StorageAdapter, type StoreError, StoreFetchError, type StoreManager, StoreMutationError, type StoreMutationErrorOptions, type TSDFDebugLogArea, type TSDFDebugLogEntry, type TSDFDebugLogLevel, type TSDFDebugLogger, type TSDFFocusDebugOperation, type TSDFItemQuery, type TSDFLoggerOptions, type TSDFStatus, TSDFUseDocumentReturn, TSFDCollectionItem, TSFDCollectionState, type TSFDListQuery, type TSFDListQueryState, TSFDUseCollectionItemReturn, type TSFDUseListItemReturn, type TSFDUseListQueryReturn, type TSFDUsePendingOfflineItemsReturn, type ValidPayload, type ValidStoreState, clearAllSessionStorage, clearSessionStorage, createCollectionStore, createDocumentStore, createListQueryStore, createStoreManager, defaultOfflineRuntimeConfig, fetchTypePriority, getGlobalOfflineEntities, getGlobalOfflineResolutions, getGlobalOfflineStatus, isOfflineStoreError, localPersistentStorage, mutationSkipped, opfsOfflineUploadAdapter, useGlobalOfflineEntities, useGlobalOfflineResolutions, useGlobalOfflineStatus };