import { Ed25519KeyPair, Ed25519EncryptedDataString, Ed25519PasswordEncryptionOptions, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature } from './ed25519CryptoModels'; export * from './ed25519CryptoModels'; /** Options used by scrypt library to derive a key from password and salt */ export declare const passwordEncryptionDefaults: Ed25519PasswordEncryptionOptions; /** Verifies that the value is a valid, stringified encrypted object */ export declare function isEd25519EncryptedDataString(value: string): value is Ed25519EncryptedDataString; /** Ensures that the value confirms to a well-formed, stringified JSON Encrypted Object */ export declare function toEd25519EncryptedDataString(value: any): Ed25519EncryptedDataString; /** Converts a password string using salt to a key(32 byte array) * The scrypt password-base key derivation function (pbkdf) is an algorithm converts human readable passwords into fixed length arrays of bytes. * It can then be used as a key for symmetric block ciphers and private keys */ export declare function calculatePasswordByteArray(password: string, options: Ed25519PasswordEncryptionOptions): string; /** Encrypts a string using a password and a nonce * Password is a base64 encoded string */ export declare function encrypt(unencrypted: string, passwordKey: string): string; /** Decrypts the encrypted value using a password * Password is a base64 encoded string */ export declare function decrypt(encrypted: Ed25519EncryptedDataString | any, passwordKey: string): string; export declare function getKeyPairFromPrivateKey(privateKey: Ed25519PrivateKey): Ed25519KeyPair; /** Signs the message using the private key and returns a signature. */ export declare function sign(value: Uint8Array, privateKey: Ed25519PrivateKey): Ed25519Signature; /** Verifies the signature for the message and returns true if verification succeeded or false if it failed. */ export declare function verify(value: Uint8Array, publicKey: Ed25519PublicKey, signature: Ed25519Signature): boolean; export declare function isValidPublicKey(value: Uint8Array): boolean; export declare function isValidPrivateKey(value: Uint8Array): boolean;