/**
 * Text encoding and decoding utilities
 * Provides functions for encoding/decoding text in various formats
 */
export declare class EncodingError extends Error {
    constructor(message: string);
}
/**
 * Encode a string to Base64
 * @param input - The string to encode
 * @returns Base64 encoded string
 */
export declare function encodeBase64(input: string): string;
/**
 * Decode a Base64 string
 * @param input - The Base64 string to decode
 * @returns Decoded string
 */
export declare function decodeBase64(input: string): string;
/**
 * Encode a string to URL-safe Base64
 * @param input - The string to encode
 * @returns URL-safe Base64 encoded string
 */
export declare function encodeBase64Url(input: string): string;
/**
 * Decode a URL-safe Base64 string
 * @param input - The URL-safe Base64 string to decode
 * @returns Decoded string
 */
export declare function decodeBase64Url(input: string): string;
/**
 * Encode a string to hexadecimal
 * @param input - The string to encode
 * @returns Hexadecimal encoded string
 */
export declare function encodeHex(input: string): string;
/**
 * Decode a hexadecimal string
 * @param input - The hexadecimal string to decode
 * @returns Decoded string
 */
export declare function decodeHex(input: string): string;
/**
 * URL encode a string
 * @param input - The string to encode
 * @returns URL encoded string
 */
export declare function encodeURL(input: string): string;
/**
 * URL decode a string
 * @param input - The URL encoded string to decode
 * @returns Decoded string
 */
export declare function decodeURL(input: string): string;
/**
 * Encode a string to HTML entities
 * @param input - The string to encode
 * @returns HTML entity encoded string
 */
export declare function encodeHTMLEntities(input: string): string;
/**
 * Decode HTML entities
 * @param input - The HTML entity encoded string to decode
 * @returns Decoded string
 */
export declare function decodeHTMLEntities(input: string): string;
/**
 * Convert a string to bytes (Uint8Array)
 * @param input - The string to convert
 * @param encoding - The encoding to use (default: 'utf-8')
 * @returns Uint8Array of bytes
 */
export declare function stringToBytes(input: string, encoding?: 'utf-8' | 'utf-16' | 'ascii'): Uint8Array;
/**
 * Convert bytes (Uint8Array) to a string
 * @param bytes - The bytes to convert
 * @param encoding - The encoding to use (default: 'utf-8')
 * @returns Decoded string
 */
export declare function bytesToString(bytes: Uint8Array, encoding?: 'utf-8' | 'utf-16' | 'ascii'): string;
/**
 * Escape Unicode characters to their escape sequences
 * @param input - The string to escape
 * @returns String with Unicode escape sequences
 */
export declare function escapeUnicode(input: string): string;
/**
 * Unescape Unicode escape sequences
 * @param input - The string with Unicode escape sequences
 * @returns Unescaped string
 */
export declare function unescapeUnicode(input: string): string;
