import { EncodedFrame } from './EncodedFrame'; export default class BufferStream { private readonly bufferStates; static create(wlBufferResource: { onDestroy: () => Promise; }): BufferStream; private onComplete; private newBufferState; /** * Returns a promise that will resolve as soon as the buffer is in the 'complete' state. */ onFrameAvailable(serial: number): Promise; onBufferContents(bufferContents: Uint8Array): void; destroy(): void; }