UNPKG

@3id/manager

Version:
16 lines (15 loc) 570 B
/// <reference types="store" /> export declare class DIDStore { store: StoreJsAPI; constructor(db?: StoreJsAPI); storeDID(did: string, seed: Uint8Array): Promise<void>; getStoredDID(did: string): Promise<Uint8Array | null>; getDIDs(): Promise<Array<string>>; } export declare class LinkCache { store: StoreJsAPI; constructor(db?: StoreJsAPI); setLinkedDid(accountId: string, did: string): Promise<void>; getLinkedDid(accountId: string): Promise<string | null>; getLinkedAccounts(): Promise<Array<string> | null>; }