UNPKG

web-enc-at-rest

Version:
12 lines (11 loc) 515 B
export declare function stringToBytes(text: string): Uint8Array; export declare function bytesToString(utf8Array: Uint8Array): string; export interface IReplacer { (key: string, value: any): string; } export interface IReviver { (key: string, value: string): any; } export declare function anyToString(value: any, replacer?: IReplacer): string; export declare function anyToBytes(value: any, replacer?: IReplacer): Uint8Array; export declare function bytesToAny(bytes: Uint8Array, reviver?: IReviver): any;