UNPKG

@voiceflow/common

Version:

Junk drawer of utility functions

17 lines 537 B
/// <reference types="crypto-js" /> import type CipherHelper from 'crypto-js/aes.js'; interface SynchronousOptions { alg: typeof CipherHelper; key: string; } declare class Synchronous { #private; constructor({ alg, key }: SynchronousOptions); protected getKey(): string; encrypt(data: string, key?: string): string; encryptJSON(data: unknown): string; decrypt(data: string, key?: string): string; decryptJSON<T>(data: string): T; } export default Synchronous; //# sourceMappingURL=synchronous.d.ts.map