export declare class Encrypter { protected key: any; protected cipher: string; constructor(key: any, cipher?: string); static supported(key: any, cipher?: string): boolean; static generateKey(cipher: string): any; /** * Encrypt the given value. * * @param value * @param serialize */ encrypt(value: string | number, serialize?: boolean): string; protected hash(iv: any, value: any): any; encryptString(value: string): string; decrypt(payload: any, serialize?: boolean): any; protected getJsonPayload(cipher: any): any; protected validPayload(payload: any): boolean; protected validMac(payload: any): boolean; protected calculateMac(payload: any, bytes: any): any; decryptString(payload: string): string; /** * Get the encryption key. */ getKey(): any; }