import { SymmetricCryptoKey } from "../models/domain/symmetric-crypto-key"; import { InitializerMetadata } from "./initializer-metadata.interface"; /** * An object that contains EncStrings and knows how to decrypt them. This is usually a domain object with the * corresponding view object as the type argument. * @example Cipher implements Decryptable */ export interface Decryptable extends InitializerMetadata { decrypt: (key?: SymmetricCryptoKey) => Promise; }