@wesjet/function.js
Version:
wesjet javascript library
20 lines (19 loc) • 567 B
TypeScript
/**
* Copyright (c) Wesbitty, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
/**
* CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
* Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation
* @param data
*/
export declare const encode: (data: ArrayBuffer | string) => string;
/**
* Decodes a given RFC4648 base64 encoded string
* @param b64
*/
export declare const decode: (b64: string) => Uint8Array;