UNPKG

@blueking/crypto-js-sdk

Version:

crypto-js-sdk

45 lines (44 loc) 1.77 kB
/// <reference types="node" /> import { Buffer } from 'buffer'; import { arrayCopy, longToByte, intToByte, intArrayToByteArray, byteToInt, byteArrayToIntArray } from './byte'; declare const _default: { encode: { bufToHex(buf: number[] | Uint8Array | Buffer): string; numToHex(d: number): string; _binToHex(binStr: string): string; strToHex(str: string): string; hexToBuf(hexStr: string): number[] | Uint8Array | Buffer; _hexToBin(hexStr: string): string; hexToStr(hexStr: string): string; hexToBase64(hexStr: string): string; bufToBase64(buf: Uint8Array): string; strToBase64(str: string): string; urlBase64ToBase64(u64: string): string; base64ToUrlBase64(b64: string): string; _base64ToBin(b64: string): string; base64ToBuf(b64: string): number[] | Buffer; base64ToStr(b64: string): string; bufToUrlBase64(buf: Uint8Array): string; strToUrlBase64(str: string): string; base64ToHex(b64: string): string; bufToBin(buf: number[] | Uint8Array | Buffer): string; strToBin(str: string): string; binToBuf(binStr: string): number[] | Buffer; strToBuf(str: string): number[] | Buffer; binToStr(binStr: string): string; bufToStr(buf: number[] | Uint8Array | Buffer): string; }; byte: { arrayCopy: typeof arrayCopy; longToByte: typeof longToByte; intToByte: typeof intToByte; intArrayToByteArray: typeof intArrayToByteArray; byteToInt: typeof byteToInt; byteArrayToIntArray: typeof byteArrayToIntArray; }; asn1: { decode: (str: string) => string; }; Buffer: BufferConstructor; }; export default _default;