/** * Utility functions for encoding and decoding data */ /** * Convert a hex string to Uint8Array * @param hex Hex string to convert * @returns Uint8Array of bytes */ export declare function hexToBytes(hex: string): Uint8Array; /** * Convert Uint8Array to hex string * @param bytes Uint8Array to convert * @returns Hex string */ export declare function bytesToHex(bytes: Uint8Array): string; /** * Convert a UTF-8 string to Uint8Array * @param str UTF-8 string to convert * @returns Uint8Array of bytes */ export declare function utf8ToBytes(str: string): Uint8Array; /** * Convert Uint8Array to UTF-8 string * @param bytes Uint8Array to convert * @returns UTF-8 string */ export declare function bytesToUtf8(bytes: Uint8Array): string; //# sourceMappingURL=encoding.d.ts.map