/** * TextEncoderStream encodes a stream of strings into UTF-8 encoded bytes. * * Handles surrogate pairs split across chunks: if the last code unit of a * chunk is a high surrogate (0xD800–0xDBFF), it is held until the next chunk. * If the stream ends with a pending high surrogate, U+FFFD replacement bytes * are emitted. */ export declare class TextEncoderStream { #private; constructor(); get encoding(): string; get readable(): ReadableStream; get writable(): WritableStream; }