import { ByteArray } from '../types.js'; /** * Decodes a UTF-16BE byte array to a string * * Assumes the byte array starts with UTF-16BE BOM (0xFE 0xFF) which is skipped. * Each character is represented by 2 bytes (high byte, low byte). * * @param bytes - The byte array to decode (should start with BOM) * @returns The decoded string * * @example * ```typescript * // Byte array with BOM: 0xFE, 0xFF, 0x00, 0x50, 0x00, 0x52 -> "PR" * decodeFromUTF16BE(new Uint8Array([0xFE, 0xFF, 0x00, 0x50, 0x00, 0x52])) * // Returns "PR" * ``` */ export declare function decodeFromUTF16BE(bytes: ByteArray): string;