import { ByteArray } from '../../types/lib/index.js'; /** * convert a Cairo ByteArray to a JS string * @param myByteArray Cairo representation of a LongString * @returns a JS string * @example * ```typescript * const myByteArray = { * data: [], * pending_word: '0x414243444546474849', * pending_word_len: 9 * } * const result: String = stringFromByteArray(myByteArray); // ABCDEFGHI * ``` */ export declare function stringFromByteArray(myByteArray: ByteArray): string; /** * convert a JS string to a Cairo ByteArray * @param targetString a JS string * @returns Cairo representation of a LongString * @example * ```typescript * const myByteArray: ByteArray = byteArrayFromString("ABCDEFGHI"); * ``` * Result is : * { * data: [], * pending_word: '0x414243444546474849', * pending_word_len: 9 * } */ export declare function byteArrayFromString(targetString: string): ByteArray;