import { GenericKeypair } from '../GenericKeypair'; export declare class DIDWriter { private uuid; private writer; private mamResults; private previousRootes; private rootOfTheRootes; private amountOfDIDKeys; private provider; private didState; private IsDIDRetrieved; private seed; static createDIDWriter(provider: string, seed: string): Promise; private constructor(); /** * Publishes the new DID state to the ledger. This function makes the changes made to the DID permanant on the ledger, use with caution. * If this function is never called, the changes wi * ll not be permanent. */ PublishChanges(): Promise; /** * Creates the format of the DID Create that will be put on iota. */ CreateNewDID(keypair: GenericKeypair): void; /** * Adds a keypair to the DID. * Remember to PublishChanges to publish the changes permanently to the Ledger. * @param keypair The keypair to add to the DID. */ AddKeypair(keypair: GenericKeypair): void; /** * Removes a keypair from the DID. If the keypair is used in an Authentication Protocol, the protocol will be removed aswell. If the keypair is not part of the DID, the function does nothing. * Remember to PublishChanges to publish the changes permanently to the Ledger. * @param keypair The keypair to remove from the DID. * @returns Succes of the function. Returns false if the keypair was never part of the DID. */ RemoveKeypair(keypair: GenericKeypair): boolean; /** * Template function is incomplete */ AddDIDAuthentication(): void; /** * Template function is incomplete */ RemoveDIDAuthentication(): void; /** * Template function is incomplete */ AddServicePoint(name: string, type: string, url: string): void; /** * Template function is incomplete */ RemoveServicePoint(): void; GetRootofRoots(): string; }