export declare function measureBytes(str: string): number; /** * Chunks a string into an array of strings, each of the specified byte size. * @param str - The string to chunk. * @param byteSize - The byte size of each chunk. i.e. 10KB = 50 * 1000 * @returns An array of strings, each of the specified byte size. */ export declare function chunkToBytes(str: string, byteSize: number): string[]; /** * Truncates a string to the specified byte length. * @param str - The string to truncate. * @param byteSize - The byte size of the truncated string. i.e. 10KB = 50 * 1000 * @returns The truncated string. */ export declare function truncateToBytes(str: string, byteSize: number): string; //# sourceMappingURL=bytes.d.ts.map