///
///
import * as http2 from 'http2';
type Http2StreamIteratorResult = {
chunk: string | Buffer;
};
export declare class Http2StreamIterator {
constructor(stream: http2.ServerHttp2Stream);
ended: boolean;
cache: Http2StreamIteratorResult[];
queue: {
resolve: (result: IteratorYieldResult | IteratorReturnResult) => void;
reject: (e: Error) => void;
}[];
stream: http2.ServerHttp2Stream;
iteratorInstance: AsyncIterable;
onEnd(): void;
onData(chunk: string | Buffer): void;
iterator(): AsyncIterableIterator;
}
export declare function readHttp2Body(stream: http2.ServerHttp2Stream): Promise;
export {};