import type { CipherSuite } from './types.js'; export declare class OpenStream { readonly chunkSize: number; readonly framed: boolean; private readonly cipher; private readonly keys; private readonly maxWireChunk; private counter; private state; constructor(cipher: CipherSuite, key: Uint8Array, preamble: Uint8Array); pull(chunk: Uint8Array, opts?: { aad?: Uint8Array; }): Uint8Array; finalize(chunk: Uint8Array, opts?: { aad?: Uint8Array; }): Uint8Array; dispose(): void; seek(index: number): void; private _stripFrame; toTransformStream(): TransformStream; }