import type { StreamableSignatureSuite } from './types.js'; export declare class VerifyStream { private readonly suite; private readonly pk; private readonly expectedCtx; private state; private headerBuf; private payloadChunks; private payloadHasher; private payloadRemaining; private sigBuf; constructor(suite: StreamableSignatureSuite, pk: Uint8Array, ctx: Uint8Array); /** * Feed bytes from the wire. Header parsing is byte-by-byte tolerant; * payload bytes accumulate up to the wire-declared payload_len; the * trailing sig bytes accumulate until finalize. */ update(chunk: Uint8Array): void; /** * Verify the buffered signature. Returns the payload on success. * Throws and wipes the buffered payload on verification failure. */ finalize(): Uint8Array; /** Wipe all internal state. Idempotent. */ dispose(): void; private consumeHeaderBytes; private consumePayloadBytes; private consumeSigBytes; private wipeBuffers; }