export declare function concat(list: Uint8Array[], totalLength: number): Uint8Array; export declare class queue { q: Array; waiters: Array<(a: ValueType | null) => void>; closed: boolean; constructor(); push(obj: ValueType): void; shift(): Promise; close(): void; } export declare class ReadBuffer { gotEOF: boolean; readBuf: Uint8Array | undefined; readers: Array<() => void>; constructor(); read(p: Uint8Array): Promise; write(p: Uint8Array): Promise; eof(): void; close(): void; protected flushReaders(): void; }