import { CryptoSystem, Msg } from 'keystore-idb/types'; /** * Create a DID to authenticate with. */ export declare function local(): Promise; /** * Gets the root DID for a user. * Stored at `_did.${username}.${endpoints.user}` */ export declare function root(username: string): Promise; /** * Convert a base64 public key to a DID (did:key). */ export declare function publicKeyToDid(publicKey: string, type: CryptoSystem): string; /** * Convert a DID (did:key) to a base64 public key. */ export declare function didToPublicKey(did: string): { publicKey: string; type: CryptoSystem; }; /** * Verify the signature of some data (string, ArrayBuffer or Uint8Array), given a DID. */ export declare function verifySignedData({ data, did, signature }: { data: Msg; did: string; signature: string; }): Promise;