import { PureValueClone } from './utils/PureValueClone.js'; /** * Transforms binary data types to maintain their interface through BSON serialization. * Works in both Node.js (with Buffer) and browser environments (TypedArrays only). * Supports: Buffer (Node.js), TypedArrays, ArrayBuffer, DataView */ export declare class TransformBinaryData { private _maxDepth; private _maxMessageSize; private static readonly HAS_BUFFER; private static readonly TYPES; private static readonly BYTES_PER_ELEMENT; /** * @param _maxMessageSize Largest binary value that may be sent, in bytes. A blob past this * is rejected here with a clear error instead of being framed and having the peer drop the * connection on `maxPayload`. */ constructor(_maxDepth?: number, _maxMessageSize?: number); deserialize(data: any): any; serialize(pureValueClone: PureValueClone): void; private _extractBytes; private _restoreType; private _detectBinaryType; private _encodeProperties; private _restoreProperties; }