/** * Convert the binary string to base64 string and sanitize it. * * @param val */ export declare function toBase64(val: string): string; /** * Hex encode an array of bytes * * @param array the bytes * @returns the hex encoded string */ export declare function hexEncode(array: Uint8Array): string; /** * Hex decode to an array of bytes * * @param hexString the hex encoded string * @returns the decoded array of bytes */ export declare function hexDecode(hexString: string): Uint8Array; /** * Convert a u32 represented as a 4-bytes value in big endian to a u32 value * * @param bytes this a 4-bytes value representing an u32 in big endian * @returns the u32 value */ export declare function fromBeBytes(bytes: Uint8Array): number; /** * Convert a u32 value to a u32 represented as a 4-bytes value in big endian * * @param myNumber a u32 value * @returns the u32 represented as a 4-bytes value in big endian */ export declare function toBeBytes(myNumber: number): Uint8Array; /** * Deserialize Uint8Array as a list of Uint8Array * * @param serializedItems Uint8Array of serialized data * @returns an array of deserialized items */ export declare function deserializeList(serializedItems: Uint8Array): Uint8Array[]; /** * Deserialize Uint8Array as an array of objects with key and value * * @param serializedItems Uint8Array of serialized data * @returns an array of objects with key and value properties as Uint8Array */ export declare function deserializeHashMap(serializedItems: Uint8Array): Array<{ uid: Uint8Array; value: Uint8Array; }>; /** * Serialize a list of Uint8Array as a Uint8Array * * @param list an array of deserialized item * @returns Uint8Array of serialized data */ export declare function serializeList(list: Uint8Array[]): Uint8Array; /** * Serialize an array of uids and values as a Uint8Array * * @param data an array of objects containing uids and values * @returns Uint8Array of serialized data */ export declare function serializeHashMap(data: Array<{ uid: Uint8Array; value: Uint8Array; }>): Uint8Array; /** * Remove accents and uppercase to query word * * @param str string to sanitize * @returns string initial string without accents and uppercase */ export declare function sanitizeString(str: string): string; //# sourceMappingURL=utils.d.ts.map