/**
 * Shared text encoding/decoding utilities.
 *
 * Caches encoder/decoder instances for performance.
 */
export declare const utf8Encoder: TextEncoder;
export declare const utf8Decoder: TextDecoder;
/**
 * Encode a string as UTF-8.
 */
export declare function encodeUtf8(value: string): Uint8Array;
/**
 * Decode bytes as UTF-8.
 */
export declare function decodeUtf8(bytes: Uint8Array): string;
/**
 * Decode bytes as Latin-1/byte-to-char.
 * Used as a fallback when UTF-8 flag is not set.
 */
export declare function decodeLatin1(bytes: Uint8Array): string;
