import { EncoderBase } from '../base/encoder.js';
import type { TypedArrayType } from '../helper/encode.js';
import type { EncodeOptions } from '../options.js';
/** 流式编码 UBJSON */
export declare class StreamEncoderHelper extends EncoderBase {
    protected readonly onChunk: (chunk: Uint8Array) => void;
    constructor(options: EncodeOptions | null | undefined, onChunk: (chunk: Uint8Array) => void);
    /**
     * 销毁实例，释放内存池
     */
    destroy(): void;
    /**
     * 确保 buffer 还有 capacity 的空闲空间
     */
    protected ensureCapacity(capacity: number): void;
    /** @inheritdoc */
    protected writeLargeStringData(value: string): void;
    /** @inheritdoc */
    protected writeLargeTypedArrayData(type: TypedArrayType, value: ArrayBufferView): void;
    /** 获取写入结果 */
    encode(value: unknown): void;
}
//# sourceMappingURL=encoder.d.ts.map