ton3-core
Version:
TON low-level API tools
18 lines (17 loc) • 1.16 kB
TypeScript
import type { Bit } from '../types/bit';
declare const isNodeEnv: boolean;
declare const uintToHex: (uint: number) => string;
declare const hexToBits: (hex: string) => Bit[];
declare const hexToBytes: (hex: string) => Uint8Array;
declare const bytesToUint: (bytes: Uint8Array | number[]) => number;
declare const bytesCompare: (a: Uint8Array | number[], b: Uint8Array | number[]) => boolean;
declare const bytesToBits: (data: Uint8Array | number[]) => Bit[];
declare const bitsToHex: (bits: Bit[]) => string;
declare const bitsToBytes: (bits: Bit[]) => Uint8Array;
declare const bytesToHex: (bytes: Uint8Array) => string;
declare const bytesToString: (bytes: Uint8Array) => string;
declare const stringToBytes: (value: string) => Uint8Array;
declare const bytesToBase64: (data: Uint8Array | number[]) => string;
declare const base64ToBytes: (base64: string) => Uint8Array;
declare const sliceIntoChunks: (arr: any[], chunkSize: number) => any[];
export { isNodeEnv, uintToHex, hexToBits, hexToBytes, bitsToHex, bitsToBytes, bytesToUint, bytesCompare, bytesToBits, bytesToHex, sliceIntoChunks, stringToBytes, bytesToString, base64ToBytes, bytesToBase64 };