/** * Class containing reusable DID related operations. */ export default class Did { /** * Calculates the DID from the given DID Document. */ static from(encodedDidDocument: string, didMethodName: string, hashAlgorithmAsMultihashCode: number): string; /** * Gets the unique portion of the DID generated from an encoded DID Document. e.g. "did:sidetree:12345" -> "12345" */ static getUniqueSuffixFromEncodeDidDocument(encodedDidDocument: string, hashAlgorithmAsMultihashCode: number): string; /** * Checks to see if the given string is a valid generic DID. */ static isDid(did: string): boolean; }