export declare class StreamDecoder {
    private maxReadMessageLength;
    private readState;
    private readCompressFlag;
    private readPartialSize;
    private readSizeRemaining;
    private readMessageSize;
    private readPartialMessage;
    private readMessageRemaining;
    constructor(maxReadMessageLength: number);
    write(data: Buffer): Buffer[];
}
