/** * @module identity/keystone-sync-service * * On-Demand Keystone Sync Service. * Provides functions to check for keystone updates on the server and sync updated keystone DAG graphs locally. */ import { KeystoneIbGib_V1 } from "@ibgib/core-gib/dist/keystone/keystone-types.mjs"; export interface KeystoneUpdateCheckResult { hasUpdate: boolean; serverN: number; localN: number; serverLatestAddr: string; graph: Record; } export declare class KeystoneSyncService { protected lc: string; private dispatchUpdateAvailableEvent; private dispatchRenewalRequiredEvent; /** * Retrieves the stored device delegate secret ($S_D$) for a delegate timeline from IndexedDB. */ getDeviceDelegateSecret({ delegateTjpAddr }: { delegateTjpAddr: string; }): Promise; /** * Checks if the active identity has a valid, verified, unexpired sync delegate on this device. */ checkDelegateStatus({ activePrimaryAddr, metaspace, space }: { activePrimaryAddr: string; metaspace?: any; space?: any; }): Promise<{ isValid: boolean; reason?: 'expired' | 'missing_secret'; }>; /** * Checks if a server update exists for the given active primary keystone address. */ checkForKeystoneUpdate({ activePrimaryAddr, metaspace, space }: { activePrimaryAddr: string; metaspace?: any; space?: any; }): Promise; /** * Checks for updates and registers any missing server keystone frames into local space. * Returns the updated (or current) primary keystone frame. */ updateActiveKeystone({ activePrimaryAddr, metaspace, space }: { activePrimaryAddr: string; metaspace?: any; space?: any; }): Promise; } export declare function getKeystoneSyncService(): KeystoneSyncService; //# sourceMappingURL=keystone-sync-service.d.mts.map