/**
 * StringBuf - Cross-Platform String Buffer
 *
 * A way to keep string memory operations to a minimum while building XML strings.
 * Uses TextEncoder and Uint8Array for cross-platform compatibility (Node.js + Browser).
 */
interface StringBufOptions {
    size?: number;
    encoding?: string;
}
/**
 * StringBuf - efficient string builder using Uint8Array
 * Works identically in Node.js and Browser environments.
 */
declare class StringBuf {
    private _buf;
    private _inPos;
    private _buffer;
    constructor(options?: StringBufOptions);
    get length(): number;
    get capacity(): number;
    get buffer(): Uint8Array;
    toBuffer(): Uint8Array;
    reset(position?: number): void;
    private _grow;
    addText(text: string): void;
    addStringBuf(inBuf: StringBuf): void;
}
export { StringBuf };
