UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

38 lines • 915 B
//#region src/utils/JsonEncoder.d.ts declare class JsonEncoder { /** * Encode JSON into a base64 string */ static toBase64(json: unknown): string; /** * Encode JSON into a base64url string */ static toBase64Url(json: unknown): string; /** * Decode a base64 string into JSON */ static fromBase64(base64: string): any; /** * Decode a base64-url string into JSON */ static fromBase64Url(base64: string): any; /** * Encode JSON into a string */ static toUtf8String(json: unknown): string; /** * Decode a UTF-8 string JSON */ static fromUtf8String(string: string): any; /** * Encode JSON into a Uint8Array */ static toUint8Array(json: unknown): Uint8Array<ArrayBufferLike>; /** * Decode a Uint8Array into JSON */ static fromUint8Array(data: Uint8Array): any; } //#endregion export { JsonEncoder }; //# sourceMappingURL=JsonEncoder.d.mts.map