zen-fs-config 0.7.15 → 0.7.16

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/index.d.mts CHANGED
@@ -479,6 +479,46 @@ interface BackendConflictResolutionResult {
479
479
  /** adopt-remote-instance 成功后应落盘的本地 instanceId。 */
480
480
  instanceId?: string;
481
481
  }
482
+ /** `instanceId` 的候选来源:本地描述符 / 共享引导副本 / 某个远端根。 */
483
+ type IdentityCandidateSource = 'local' | 'bootstrap' | 'remote';
484
+ /**
485
+ * 一条身份候选。同一值可能被多个根持有,用 `rootCount` 表示。
486
+ * 界面必须把它们全部列出,由用户决定本组最终使用哪个值。
487
+ */
488
+ interface IdentityCandidate {
489
+ source: IdentityCandidateSource;
490
+ /** 远端候选对应的后端 id(local / bootstrap 无此字段)。 */
491
+ backendId?: string;
492
+ instanceId: string;
493
+ /** 持有该值的根数量(local / bootstrap 为 1)。 */
494
+ rootCount: number;
495
+ /** 该值所属的 kind / id;与本组不一致的候选已在收集阶段被排除。 */
496
+ kind?: SyncGroupKind;
497
+ id?: string;
498
+ }
499
+ /** 用户决定本组实例身份时的选项。 */
500
+ interface SetGroupInstanceIdOptions {
501
+ /**
502
+ * 同时把本组所有 `kind` / `id` 相同的远端根统一成该值(默认 false)。
503
+ * 这是唯一会改写远端 `group.json` 的路径,必须由用户确认后调用。
504
+ */
505
+ rewriteRoots?: boolean;
506
+ }
507
+ /** 逐个远端根的写回结果。 */
508
+ interface GroupInstanceIdRootResult {
509
+ backendId: string;
510
+ ok: boolean;
511
+ /** 该根原本的 instanceId(用于如实汇报“从什么改成什么”)。 */
512
+ before?: string;
513
+ reason?: string;
514
+ }
515
+ interface SetGroupInstanceIdResult {
516
+ ok: boolean;
517
+ instanceId?: string;
518
+ reason?: string;
519
+ /** 各根的处理结果(`rewriteRoots: true` 时逐条返回)。 */
520
+ roots: GroupInstanceIdRootResult[];
521
+ }
482
522
  interface SyncGroupHandle {
483
523
  readonly groupId: string;
484
524
  readonly appId: string;
@@ -506,6 +546,21 @@ interface SyncGroupHandle {
506
546
  * 调用方负责二次确认,并在成功后重新连接/刷新(本组实例需要重新 init)。
507
547
  */
508
548
  resolveBackendConflict(backendId: string, mode: BackendConflictResolution): Promise<BackendConflictResolutionResult>;
549
+ /**
550
+ * 本组 `instanceId` 的全部候选(本地 / 引导副本 / 每个远端根)。
551
+ * 不一致时界面必须让用户挑一个,不允许代码静默择一。
552
+ */
553
+ getIdentityCandidates(): IdentityCandidate[];
554
+ /**
555
+ * 候选之间是否互相矛盾(需要用户在界面上拍板)。
556
+ * 可选:老版本实现可能没有这个方法,调用方按候选去重自行判断。
557
+ */
558
+ isIdentityUnsettled?(): boolean;
559
+ /**
560
+ * 用户确认后的唯一写入口:把本组身份设成指定值。
561
+ * `rewriteRoots: true` 时一并把本组所有 kind/id 相同的根统一成该值。
562
+ */
563
+ setGroupInstanceId(instanceId: string, options?: SetGroupInstanceIdOptions): Promise<SetGroupInstanceIdResult>;
509
564
  /**
510
565
  * Direct fs view of the group root. `.config/` is hidden (config-sync
511
566
  * territory); sync bookkeeping under `.meta/` (tombstones / versions /
@@ -1077,6 +1132,10 @@ declare class ConfigRepo implements IConfigRepo {
1077
1132
  * `instanceId`,不一致就不建同步对 —— 两个不同的同步组永不互相同步。
1078
1133
  */
1079
1134
  private instanceId?;
1135
+ /** 配置组身份的候选(本地 + 每个后端根),供界面展示。 */
1136
+ private identityCandidates;
1137
+ /** 候选互相矛盾:需要用户裁决,绝不由库层自动择一。 */
1138
+ private configIdentityUnsettled;
1080
1139
  /** 因归属他人而被跳过的后端 id → 原因,供 UI 展示。 */
1081
1140
  private skippedBackends;
1082
1141
  /** 归属冲突的完整信息(两侧 kind / id / instanceId + 可执行动作)。 */
@@ -1398,10 +1457,24 @@ declare class ConfigRepo implements IConfigRepo {
1398
1457
  * 并就地写回 —— 只写一次,之后字节相同不再落盘。
1399
1458
  */
1400
1459
  private ensureGroupIdentity;
1460
+ /**
1461
+ * 只读收集配置组身份的候选:本地描述符 + 每个已注册后端根的 `group.json`。
1462
+ * 只看 `kind` / `id` 与本组一致的根;读失败的根不参与裁决(不猜)。
1463
+ */
1464
+ private collectConfigIdentityCandidates;
1401
1465
  /** 组实例身份(未初始化时先兜底生成并落盘)。 */
1402
1466
  ensureGroupInstanceId(): Promise<string>;
1403
1467
  /** 组实例身份(同步读取;init 之前可能为 `undefined`)。 */
1404
1468
  getGroupInstanceId(): string | undefined;
1469
+ /** 配置组的身份候选:本地描述符 + 已注册后端根上的值。 */
1470
+ getIdentityCandidates(): IdentityCandidate[];
1471
+ /** 候选是否互相矛盾(界面据此要求用户拍板)。 */
1472
+ isIdentityUnsettled(): boolean;
1473
+ /**
1474
+ * 用户确认后的唯一写入口(配置组)。
1475
+ * `rewriteRoots` 为真时把每个副本根的 `/meta/group.json` 统一成该值。
1476
+ */
1477
+ setGroupInstanceId(instanceId: string, options?: SetGroupInstanceIdOptions): Promise<SetGroupInstanceIdResult>;
1405
1478
  /**
1406
1479
  * 连接远端前校验归属:属于别的组 → `conflict`(调用方必须跳过、不建同步对)。
1407
1480
  * 老仓库(无 instanceId)会被本组认领。
@@ -1765,7 +1838,9 @@ declare function shortInstanceId(instanceId: string): string;
1765
1838
  * 本地 id 与远端不同 ? id-mismatch : instance-mismatch );
1766
1839
  * 4. 远端无身份(老仓库)→ 认领(保留远端已有的 kind/id/name)。
1767
1840
  */
1768
- declare function bindRemoteGroupIdentityDetailed(remoteFS: any, identity: GroupIdentity): Promise<IdentityBindingResult>;
1841
+ declare function bindRemoteGroupIdentityDetailed(remoteFS: any, identity: GroupIdentity,
1842
+ /** 已读到的远端描述符(`null` = 已确认空仓库);`undefined` = 未读,函数自己读。 */
1843
+ prefetched?: GroupDescriptor | null): Promise<IdentityBindingResult>;
1769
1844
  /** 冲突解决动作。 */
1770
1845
  type IdentityResolutionMode =
1771
1846
  /** 只把本地实例身份对齐成远端的 instanceId(要求 kind 与 id 相同)。 */
@@ -2046,4 +2121,4 @@ declare class ConflictStore {
2046
2121
  resolve(conflictId: string, mergedContent: string | Uint8Array): Promise<void>;
2047
2122
  }
2048
2123
 
2049
- export { type AppDataBackendDescriptor, type AppDataGroup, type AppDataGroupDescriptor, type BackendConflictInfo, type BackendConflictReason, type BackendConflictResolution, type BackendConflictResolutionResult, type BackendDescriptor, type BackendFactory, type BackendInstance, type BackendMetadata, type BackendParamDef, type BackendSyncState, type BackendsMeta, CONFIG_DIR, CONFLICTS_DIR, type CacheOptions, ConfigRepo, type ConfigRepoOptions, type ConfigSerializer, type ConfigSyncGroupDescriptor, type ConfigSyncGroupHandle, type ConflictArchive, type ConflictInfo, ConflictStore, type ConnectOptions, type ConnectResult, DATA_GROUP_DEFAULT_FEATURES, FolderStore, GROUP_DESCRIPTOR_FILE, type GroupDescriptor, type GroupIdentity, type IConfigRepo, type IdentityBindingResult, type IdentityConflictReason, type IdentityResolutionMode, type IdentityResolutionResult, type KeepPurgeResult, LEGACY_CONFLICTS_DIR, LEGACY_TOMBSTONES_DIR, LOCAL_IDB_BACKEND_ID, LOCAL_STORAGE_UNAVAILABLE, type LocalStorageUnavailableDetails, LocalStorageUnavailableError, type LocalStoreDeletionResult, META_DIR, type MigrateLocalFS, type MigrateReplicaFS, type MtimePurgeResult, type PurgeKeepOptions, type PurgeLocalSyncConfigOptions, type PurgeLocalSyncConfigResult, type PurgeMtimeOptions, type PurgeableFS$1 as PurgeableFS, type RemoteIdentitySnapshot, type RemoteIdentityState, type SyncGroupFeatures, type SyncGroupHandle, type SyncGroupKind, type SyncGroupType, TOMBSTONES_DIR, type TombstoneMeta, TombstoneStore, VERSIONS_DIR, type VersionMeta, type VersionMigrationOptions, type VersionMigrationResult, VersionStore, bindRemoteGroupIdentity, bindRemoteGroupIdentityDetailed, configKeyToFilePath, connect, createBackend, createConfigRepo, createSerializerChain, dataGroupLocalStoreName, deleteDataGroupLocalStore, deleteIndexedDbStore, encodeMetaPath, getAccountFields, getBackendMetadata, getExtension, hasBackend, incrementVersion, isBrowserEnv, isKeepFile, isLocalStorageUnavailableError, isMtimeSidecar, isValidGroupInstanceId, legacyVersionPathFor, listBackendMetadata, listBackends, localPrimaryType, localSyncStoreNames, mergeAccountFields, migrateVersionSidecars, newGroupInstanceId, purgeKeepFiles, purgeLocalSyncConfig, purgeMtimeSidecars, readGroupDescriptor, readVersion, registerBackend, registerFolderBackend, resolveLocalPrimary, resolveRemoteIdentity, sha256, shortInstanceId, summarizeIdentity, unregisterBackend, verifyOrRepairVersion, versionPathFor, wrapZenFSFileSystem, writeGroupDescriptor, writeVersion };
2124
+ export { type AppDataBackendDescriptor, type AppDataGroup, type AppDataGroupDescriptor, type BackendConflictInfo, type BackendConflictReason, type BackendConflictResolution, type BackendConflictResolutionResult, type BackendDescriptor, type BackendFactory, type BackendInstance, type BackendMetadata, type BackendParamDef, type BackendSyncState, type BackendsMeta, CONFIG_DIR, CONFLICTS_DIR, type CacheOptions, ConfigRepo, type ConfigRepoOptions, type ConfigSerializer, type ConfigSyncGroupDescriptor, type ConfigSyncGroupHandle, type ConflictArchive, type ConflictInfo, ConflictStore, type ConnectOptions, type ConnectResult, DATA_GROUP_DEFAULT_FEATURES, FolderStore, GROUP_DESCRIPTOR_FILE, type GroupDescriptor, type GroupIdentity, type GroupInstanceIdRootResult, type IConfigRepo, type IdentityBindingResult, type IdentityCandidate, type IdentityCandidateSource, type IdentityConflictReason, type IdentityResolutionMode, type IdentityResolutionResult, type KeepPurgeResult, LEGACY_CONFLICTS_DIR, LEGACY_TOMBSTONES_DIR, LOCAL_IDB_BACKEND_ID, LOCAL_STORAGE_UNAVAILABLE, type LocalStorageUnavailableDetails, LocalStorageUnavailableError, type LocalStoreDeletionResult, META_DIR, type MigrateLocalFS, type MigrateReplicaFS, type MtimePurgeResult, type PurgeKeepOptions, type PurgeLocalSyncConfigOptions, type PurgeLocalSyncConfigResult, type PurgeMtimeOptions, type PurgeableFS$1 as PurgeableFS, type RemoteIdentitySnapshot, type RemoteIdentityState, type SetGroupInstanceIdOptions, type SetGroupInstanceIdResult, type SyncGroupFeatures, type SyncGroupHandle, type SyncGroupKind, type SyncGroupType, TOMBSTONES_DIR, type TombstoneMeta, TombstoneStore, VERSIONS_DIR, type VersionMeta, type VersionMigrationOptions, type VersionMigrationResult, VersionStore, bindRemoteGroupIdentity, bindRemoteGroupIdentityDetailed, configKeyToFilePath, connect, createBackend, createConfigRepo, createSerializerChain, dataGroupLocalStoreName, deleteDataGroupLocalStore, deleteIndexedDbStore, encodeMetaPath, getAccountFields, getBackendMetadata, getExtension, hasBackend, incrementVersion, isBrowserEnv, isKeepFile, isLocalStorageUnavailableError, isMtimeSidecar, isValidGroupInstanceId, legacyVersionPathFor, listBackendMetadata, listBackends, localPrimaryType, localSyncStoreNames, mergeAccountFields, migrateVersionSidecars, newGroupInstanceId, purgeKeepFiles, purgeLocalSyncConfig, purgeMtimeSidecars, readGroupDescriptor, readVersion, registerBackend, registerFolderBackend, resolveLocalPrimary, resolveRemoteIdentity, sha256, shortInstanceId, summarizeIdentity, unregisterBackend, verifyOrRepairVersion, versionPathFor, wrapZenFSFileSystem, writeGroupDescriptor, writeVersion };
package/dist/index.d.ts CHANGED
@@ -479,6 +479,46 @@ interface BackendConflictResolutionResult {
479
479
  /** adopt-remote-instance 成功后应落盘的本地 instanceId。 */
480
480
  instanceId?: string;
481
481
  }
482
+ /** `instanceId` 的候选来源:本地描述符 / 共享引导副本 / 某个远端根。 */
483
+ type IdentityCandidateSource = 'local' | 'bootstrap' | 'remote';
484
+ /**
485
+ * 一条身份候选。同一值可能被多个根持有,用 `rootCount` 表示。
486
+ * 界面必须把它们全部列出,由用户决定本组最终使用哪个值。
487
+ */
488
+ interface IdentityCandidate {
489
+ source: IdentityCandidateSource;
490
+ /** 远端候选对应的后端 id(local / bootstrap 无此字段)。 */
491
+ backendId?: string;
492
+ instanceId: string;
493
+ /** 持有该值的根数量(local / bootstrap 为 1)。 */
494
+ rootCount: number;
495
+ /** 该值所属的 kind / id;与本组不一致的候选已在收集阶段被排除。 */
496
+ kind?: SyncGroupKind;
497
+ id?: string;
498
+ }
499
+ /** 用户决定本组实例身份时的选项。 */
500
+ interface SetGroupInstanceIdOptions {
501
+ /**
502
+ * 同时把本组所有 `kind` / `id` 相同的远端根统一成该值(默认 false)。
503
+ * 这是唯一会改写远端 `group.json` 的路径,必须由用户确认后调用。
504
+ */
505
+ rewriteRoots?: boolean;
506
+ }
507
+ /** 逐个远端根的写回结果。 */
508
+ interface GroupInstanceIdRootResult {
509
+ backendId: string;
510
+ ok: boolean;
511
+ /** 该根原本的 instanceId(用于如实汇报“从什么改成什么”)。 */
512
+ before?: string;
513
+ reason?: string;
514
+ }
515
+ interface SetGroupInstanceIdResult {
516
+ ok: boolean;
517
+ instanceId?: string;
518
+ reason?: string;
519
+ /** 各根的处理结果(`rewriteRoots: true` 时逐条返回)。 */
520
+ roots: GroupInstanceIdRootResult[];
521
+ }
482
522
  interface SyncGroupHandle {
483
523
  readonly groupId: string;
484
524
  readonly appId: string;
@@ -506,6 +546,21 @@ interface SyncGroupHandle {
506
546
  * 调用方负责二次确认,并在成功后重新连接/刷新(本组实例需要重新 init)。
507
547
  */
508
548
  resolveBackendConflict(backendId: string, mode: BackendConflictResolution): Promise<BackendConflictResolutionResult>;
549
+ /**
550
+ * 本组 `instanceId` 的全部候选(本地 / 引导副本 / 每个远端根)。
551
+ * 不一致时界面必须让用户挑一个,不允许代码静默择一。
552
+ */
553
+ getIdentityCandidates(): IdentityCandidate[];
554
+ /**
555
+ * 候选之间是否互相矛盾(需要用户在界面上拍板)。
556
+ * 可选:老版本实现可能没有这个方法,调用方按候选去重自行判断。
557
+ */
558
+ isIdentityUnsettled?(): boolean;
559
+ /**
560
+ * 用户确认后的唯一写入口:把本组身份设成指定值。
561
+ * `rewriteRoots: true` 时一并把本组所有 kind/id 相同的根统一成该值。
562
+ */
563
+ setGroupInstanceId(instanceId: string, options?: SetGroupInstanceIdOptions): Promise<SetGroupInstanceIdResult>;
509
564
  /**
510
565
  * Direct fs view of the group root. `.config/` is hidden (config-sync
511
566
  * territory); sync bookkeeping under `.meta/` (tombstones / versions /
@@ -1077,6 +1132,10 @@ declare class ConfigRepo implements IConfigRepo {
1077
1132
  * `instanceId`,不一致就不建同步对 —— 两个不同的同步组永不互相同步。
1078
1133
  */
1079
1134
  private instanceId?;
1135
+ /** 配置组身份的候选(本地 + 每个后端根),供界面展示。 */
1136
+ private identityCandidates;
1137
+ /** 候选互相矛盾:需要用户裁决,绝不由库层自动择一。 */
1138
+ private configIdentityUnsettled;
1080
1139
  /** 因归属他人而被跳过的后端 id → 原因,供 UI 展示。 */
1081
1140
  private skippedBackends;
1082
1141
  /** 归属冲突的完整信息(两侧 kind / id / instanceId + 可执行动作)。 */
@@ -1398,10 +1457,24 @@ declare class ConfigRepo implements IConfigRepo {
1398
1457
  * 并就地写回 —— 只写一次,之后字节相同不再落盘。
1399
1458
  */
1400
1459
  private ensureGroupIdentity;
1460
+ /**
1461
+ * 只读收集配置组身份的候选:本地描述符 + 每个已注册后端根的 `group.json`。
1462
+ * 只看 `kind` / `id` 与本组一致的根;读失败的根不参与裁决(不猜)。
1463
+ */
1464
+ private collectConfigIdentityCandidates;
1401
1465
  /** 组实例身份(未初始化时先兜底生成并落盘)。 */
1402
1466
  ensureGroupInstanceId(): Promise<string>;
1403
1467
  /** 组实例身份(同步读取;init 之前可能为 `undefined`)。 */
1404
1468
  getGroupInstanceId(): string | undefined;
1469
+ /** 配置组的身份候选:本地描述符 + 已注册后端根上的值。 */
1470
+ getIdentityCandidates(): IdentityCandidate[];
1471
+ /** 候选是否互相矛盾(界面据此要求用户拍板)。 */
1472
+ isIdentityUnsettled(): boolean;
1473
+ /**
1474
+ * 用户确认后的唯一写入口(配置组)。
1475
+ * `rewriteRoots` 为真时把每个副本根的 `/meta/group.json` 统一成该值。
1476
+ */
1477
+ setGroupInstanceId(instanceId: string, options?: SetGroupInstanceIdOptions): Promise<SetGroupInstanceIdResult>;
1405
1478
  /**
1406
1479
  * 连接远端前校验归属:属于别的组 → `conflict`(调用方必须跳过、不建同步对)。
1407
1480
  * 老仓库(无 instanceId)会被本组认领。
@@ -1765,7 +1838,9 @@ declare function shortInstanceId(instanceId: string): string;
1765
1838
  * 本地 id 与远端不同 ? id-mismatch : instance-mismatch );
1766
1839
  * 4. 远端无身份(老仓库)→ 认领(保留远端已有的 kind/id/name)。
1767
1840
  */
1768
- declare function bindRemoteGroupIdentityDetailed(remoteFS: any, identity: GroupIdentity): Promise<IdentityBindingResult>;
1841
+ declare function bindRemoteGroupIdentityDetailed(remoteFS: any, identity: GroupIdentity,
1842
+ /** 已读到的远端描述符(`null` = 已确认空仓库);`undefined` = 未读,函数自己读。 */
1843
+ prefetched?: GroupDescriptor | null): Promise<IdentityBindingResult>;
1769
1844
  /** 冲突解决动作。 */
1770
1845
  type IdentityResolutionMode =
1771
1846
  /** 只把本地实例身份对齐成远端的 instanceId(要求 kind 与 id 相同)。 */
@@ -2046,4 +2121,4 @@ declare class ConflictStore {
2046
2121
  resolve(conflictId: string, mergedContent: string | Uint8Array): Promise<void>;
2047
2122
  }
2048
2123
 
2049
- export { type AppDataBackendDescriptor, type AppDataGroup, type AppDataGroupDescriptor, type BackendConflictInfo, type BackendConflictReason, type BackendConflictResolution, type BackendConflictResolutionResult, type BackendDescriptor, type BackendFactory, type BackendInstance, type BackendMetadata, type BackendParamDef, type BackendSyncState, type BackendsMeta, CONFIG_DIR, CONFLICTS_DIR, type CacheOptions, ConfigRepo, type ConfigRepoOptions, type ConfigSerializer, type ConfigSyncGroupDescriptor, type ConfigSyncGroupHandle, type ConflictArchive, type ConflictInfo, ConflictStore, type ConnectOptions, type ConnectResult, DATA_GROUP_DEFAULT_FEATURES, FolderStore, GROUP_DESCRIPTOR_FILE, type GroupDescriptor, type GroupIdentity, type IConfigRepo, type IdentityBindingResult, type IdentityConflictReason, type IdentityResolutionMode, type IdentityResolutionResult, type KeepPurgeResult, LEGACY_CONFLICTS_DIR, LEGACY_TOMBSTONES_DIR, LOCAL_IDB_BACKEND_ID, LOCAL_STORAGE_UNAVAILABLE, type LocalStorageUnavailableDetails, LocalStorageUnavailableError, type LocalStoreDeletionResult, META_DIR, type MigrateLocalFS, type MigrateReplicaFS, type MtimePurgeResult, type PurgeKeepOptions, type PurgeLocalSyncConfigOptions, type PurgeLocalSyncConfigResult, type PurgeMtimeOptions, type PurgeableFS$1 as PurgeableFS, type RemoteIdentitySnapshot, type RemoteIdentityState, type SyncGroupFeatures, type SyncGroupHandle, type SyncGroupKind, type SyncGroupType, TOMBSTONES_DIR, type TombstoneMeta, TombstoneStore, VERSIONS_DIR, type VersionMeta, type VersionMigrationOptions, type VersionMigrationResult, VersionStore, bindRemoteGroupIdentity, bindRemoteGroupIdentityDetailed, configKeyToFilePath, connect, createBackend, createConfigRepo, createSerializerChain, dataGroupLocalStoreName, deleteDataGroupLocalStore, deleteIndexedDbStore, encodeMetaPath, getAccountFields, getBackendMetadata, getExtension, hasBackend, incrementVersion, isBrowserEnv, isKeepFile, isLocalStorageUnavailableError, isMtimeSidecar, isValidGroupInstanceId, legacyVersionPathFor, listBackendMetadata, listBackends, localPrimaryType, localSyncStoreNames, mergeAccountFields, migrateVersionSidecars, newGroupInstanceId, purgeKeepFiles, purgeLocalSyncConfig, purgeMtimeSidecars, readGroupDescriptor, readVersion, registerBackend, registerFolderBackend, resolveLocalPrimary, resolveRemoteIdentity, sha256, shortInstanceId, summarizeIdentity, unregisterBackend, verifyOrRepairVersion, versionPathFor, wrapZenFSFileSystem, writeGroupDescriptor, writeVersion };
2124
+ export { type AppDataBackendDescriptor, type AppDataGroup, type AppDataGroupDescriptor, type BackendConflictInfo, type BackendConflictReason, type BackendConflictResolution, type BackendConflictResolutionResult, type BackendDescriptor, type BackendFactory, type BackendInstance, type BackendMetadata, type BackendParamDef, type BackendSyncState, type BackendsMeta, CONFIG_DIR, CONFLICTS_DIR, type CacheOptions, ConfigRepo, type ConfigRepoOptions, type ConfigSerializer, type ConfigSyncGroupDescriptor, type ConfigSyncGroupHandle, type ConflictArchive, type ConflictInfo, ConflictStore, type ConnectOptions, type ConnectResult, DATA_GROUP_DEFAULT_FEATURES, FolderStore, GROUP_DESCRIPTOR_FILE, type GroupDescriptor, type GroupIdentity, type GroupInstanceIdRootResult, type IConfigRepo, type IdentityBindingResult, type IdentityCandidate, type IdentityCandidateSource, type IdentityConflictReason, type IdentityResolutionMode, type IdentityResolutionResult, type KeepPurgeResult, LEGACY_CONFLICTS_DIR, LEGACY_TOMBSTONES_DIR, LOCAL_IDB_BACKEND_ID, LOCAL_STORAGE_UNAVAILABLE, type LocalStorageUnavailableDetails, LocalStorageUnavailableError, type LocalStoreDeletionResult, META_DIR, type MigrateLocalFS, type MigrateReplicaFS, type MtimePurgeResult, type PurgeKeepOptions, type PurgeLocalSyncConfigOptions, type PurgeLocalSyncConfigResult, type PurgeMtimeOptions, type PurgeableFS$1 as PurgeableFS, type RemoteIdentitySnapshot, type RemoteIdentityState, type SetGroupInstanceIdOptions, type SetGroupInstanceIdResult, type SyncGroupFeatures, type SyncGroupHandle, type SyncGroupKind, type SyncGroupType, TOMBSTONES_DIR, type TombstoneMeta, TombstoneStore, VERSIONS_DIR, type VersionMeta, type VersionMigrationOptions, type VersionMigrationResult, VersionStore, bindRemoteGroupIdentity, bindRemoteGroupIdentityDetailed, configKeyToFilePath, connect, createBackend, createConfigRepo, createSerializerChain, dataGroupLocalStoreName, deleteDataGroupLocalStore, deleteIndexedDbStore, encodeMetaPath, getAccountFields, getBackendMetadata, getExtension, hasBackend, incrementVersion, isBrowserEnv, isKeepFile, isLocalStorageUnavailableError, isMtimeSidecar, isValidGroupInstanceId, legacyVersionPathFor, listBackendMetadata, listBackends, localPrimaryType, localSyncStoreNames, mergeAccountFields, migrateVersionSidecars, newGroupInstanceId, purgeKeepFiles, purgeLocalSyncConfig, purgeMtimeSidecars, readGroupDescriptor, readVersion, registerBackend, registerFolderBackend, resolveLocalPrimary, resolveRemoteIdentity, sha256, shortInstanceId, summarizeIdentity, unregisterBackend, verifyOrRepairVersion, versionPathFor, wrapZenFSFileSystem, writeGroupDescriptor, writeVersion };