import { type IXmlWriter } from "./xml.builder.js"; /** */ export type ByteSink = { push(chunk: Uint8Array, final?: boolean): void; }; /** */ export declare class Utf8XmlWriterToBytes implements IXmlWriter { private readonly _sink; private readonly _opts; /** */ count: number; private _encoder; private _pending; private _pendingChars; constructor(_sink: ByteSink, _opts?: { flushChars?: number; }); /** * @param data * @returns */ write(...data: string[]): IXmlWriter; /** * @returns */ flush(): this; /** */ finish(): void; /** */ clear(): void; }