/** * Identity state management module */ import { DecryptedIdentityStateObject, EncryptedIdentityStateObject, KeyPair } from '../interfaces'; /** * get the signing keys wrapper */ export declare function getSigningKeyPair(): KeyPair; /** * get the encryption keys wrapper */ export declare function getEncryptionKeyPair(): KeyPair; /** * getter function for the decrypted identity state * * throws an error that is handled by LocaliD if the decrypted state is missing */ export declare function getDecryptedIdentityState(): DecryptedIdentityStateObject; /** * Used as a validator for unlocking the identity * returns a boolean status of the decryption success */ export declare function unlock(key: string): Promise; /** * Set the decrypted identity state */ export declare function setDecryptedIdentityState(state: DecryptedIdentityStateObject): void; /** * setter function for the encrypted identity state */ export declare function setEncryptedIdentityState(encryptedIdentityStateObject: EncryptedIdentityStateObject): void;