/** * @module keystone/device/device-identity-service-base-v1 * * Substrate-agnostic base service for managing device-level sovereign identity * lifecycles, keystone genesis, delegate creation, in-band indexing, and two-phase * server synchronization across Web and Node.js runtimes. */ import { DeviceIdentityInitOpts, DeviceIdentitySignInOpts, DeviceIdentityResolveOpts, ResolvedDeviceIdentity } from './device-identity-types.mjs'; export declare abstract class DeviceIdentityServiceBase_V1 { protected lc: string; /** Persists a derived short-lived delegate secret in substrate-specific secure storage */ abstract persistDelegateSecret(opts: { delegateTjpAddr: string; delegateSecret: string; role: string; }): Promise; /** Retrieves a stored delegate secret from substrate-specific storage */ abstract getPersistedDelegateSecret(opts: { delegateTjpAddr: string; role: string; }): Promise; /** Clears all stored delegate secrets upon logout */ abstract clearPersistedDelegateSecrets(): Promise; /** Persists the device's unique site handle (@handle) in substrate configuration */ abstract persistSiteHandle(opts: { siteUsername: string; }): Promise; /** Retrieves the persisted site handle from substrate configuration */ abstract getPersistedSiteHandle(): Promise; /** Returns the default device descriptor tag (e.g. hostname or browser user-agent) */ protected abstract getDefaultDeviceTag(): string; /** * Initializes a brand-new sovereign primary identity, derives and registers * local Author and Sync delegates, indexes them in the local space, and optionally * synchronizes both genesis and evolution with a remote server. */ initDeviceIdentity(opts: DeviceIdentityInitOpts): Promise; /** * Signs into an existing sovereign primary identity on this device. * Ingests the public identity graph, verifies the master passphrase locally, * derives local Author and Sync delegates, evolves the primary keystone, * publishes the evolution and registers the sync delegate with the remote server, * and indexes all credentials in-band in local storage. */ signInDeviceIdentity(opts: DeviceIdentitySignInOpts): Promise; /** * Inspects the local space and substrate storage to resolve the active * sovereign device identity and active delegate tokens. */ resolveDeviceIdentity(opts: DeviceIdentityResolveOpts): Promise; /** * Clears local persisted delegate credentials. */ logoutDeviceIdentity(): Promise; } //# sourceMappingURL=device-identity-service-base-v1.d.mts.map