declare type TConfig = { cipherAlgo: string; digestAlgo: string; encoding: 'utf8'; }; export default class Cipher { private readonly key; private readonly config; constructor(key: string, config?: TConfig); encrypt: (message: string) => string; decrypt: (encryptedMessage: string) => string; digest: (message: string) => string; } export {};