UNPKG

strong-cryptor

Version:
7 lines (6 loc) 354 B
/// <reference types="node" /> import { IToBufferOptions } from './interface'; export declare type ErrorCode = 'MALFORMATED' | 'INVALID_SEPARATOR' | 'INVALID_KEY'; export declare type Encoding = 'base64' | 'hex'; export declare type BufferAndString<T extends IToBufferOptions> = T['toBuffer'] extends true ? Buffer : string; export * from './interface';