import type { WasmSource } from '../wasm-source.js'; import type { CipherSuite } from './types.js'; export interface PoolOpts { wasm: WasmSource | Record; workers?: number; chunkSize?: number; framed?: boolean; jobTimeout?: number; } export declare class SealStreamPool { private readonly _cipher; private readonly _chunkSize; private readonly _framed; private readonly _timeout; private readonly _header; private readonly _commitment; private _workers; private _idle; private _queue; private _pending; private _nextId; private _dead; private _sealed; private _keys; private _masterKey; private constructor(); static create(cipher: CipherSuite, key: Uint8Array, opts: PoolOpts): Promise; get header(): Uint8Array; get dead(): boolean; get size(): number; seal(plaintext: Uint8Array): Promise; open(ciphertext: Uint8Array): Promise; destroy(): void; private _dispatch; private _send; private _onMessage; private _onError; private _killAll; private _wipeThenTerminate; }