export declare class SecureCellSeal { protected masterKey: Uint8Array; constructor(masterKey: Uint8Array); /** * Makes a new Secure Cell in Seal mode with given master key. * * @param masterKey non-empty array of master key bytes (Buffer or Uint8Array) * * @returns a new instance of SecureCellSeal. * * @throws TypeError if the master key is not a byte buffer. * @throws ThemisError if the master key is empty. */ static withKey(masterKey: Uint8Array): SecureCellSeal; /** * Makes a new Secure Cell in Seal mode with given passphrase. * * @param passphrase non-empty string with passphrase, * or a non-empty raw byte array (Buffer or Uint8Array) * * @returns a new instance of SecureCellSeal. * * @throws TypeError if the passphrase is not a string or a byte buffer. * @throws ThemisError if the passphrase is empty. */ static withPassphrase(passphrase: string): SecureCellSealWithPassphrase; encrypt(message: Uint8Array, context?: Uint8Array): Uint8Array; decrypt(message: Uint8Array, context?: Uint8Array): Uint8Array; } declare class SecureCellSealWithPassphrase extends SecureCellSeal { constructor(passphrase: string); encrypt(message: Uint8Array, context?: Uint8Array): Uint8Array; decrypt(message: Uint8Array, context?: Uint8Array): Uint8Array; } export {};