/** * Convert a ASCII string to byte buffer * For example "01" will give [0x30, 0x31] * @param str */ export declare function asciiStringToByteBuffer(str: string): Uint8Array; export declare function typedArrayToBuffer(array: Uint8Array): ArrayBuffer; /** * Convert a byte buffer to the hexadecimal string representation * For example [0x1, 0x2] will returns string "0102" * @param buffer */ export declare function bufferToHexString(buffer: Uint8Array): string; /** * Convert a byte buffer to the binary string representation * For example [0x1, 0x2] will returns string "0000000100000002" * @param buffer */ export declare function bufferToBinaryString(buffer: Uint8Array): string; /** * Convert an hexadecimal string to a buffer * For example "0102" or "01 02" will returns string [0x1, 0x2] * @param hexString */ export declare function hexStringToBuffer(hexString: string): Uint8Array; /** * Converts data to an ascii string * @param data */ export declare function bufferToAsciiString(data: Uint8Array | number[]): string;