/** * Incrementally decode little-endian u32 length-prefixed frames. * * Complete frames already present in an input chunk are delivered as views of * that chunk. Only a frame split across chunks is copied, into an accumulator * retained and reused for later split frames. The callback is synchronous and * must not retain its view after returning. */ export declare class LengthPrefixedFrameDecoder { private readonly maxFrameLength; private readonly onFrame; private pending; private pendingLength; private pendingFrameLength; constructor(maxFrameLength: number, onFrame: (frame: Uint8Array) => void); /** Returns false for an invalid or oversized frame length. */ push(chunk: Uint8Array): boolean; private ensurePendingCapacity; } //# sourceMappingURL=length-prefixed.d.ts.map