export type TextEncoding = 'utf-8' | 'ascii' | 'utf16le' | 'base64' | 'hex' | 'latin1' | 'binary'; /** * Encodes text to a buffer using the specified encoding * @param text The text to encode * @param encoding The encoding to use (defaults to utf-8) * @returns ArrayBuffer containing the encoded data */ export declare function encodeText(text: string, encoding?: TextEncoding): ArrayBuffer; /** * Decodes a buffer to text using the specified encoding * @param buffer The buffer to decode * @param encoding The encoding to use (defaults to utf-8) * @returns The decoded text */ export declare function decodeText(buffer: ArrayBuffer, encoding?: TextEncoding): string;