/** * Per-frame byte production for streaming responses (SPEC.md §1.4). * * The reference codec encodes whole messages; the server streams frames as * they are produced. Rather than duplicating the codec's frame encoders * (and risking drift), each frame is encoded inside a minimal legal wrapper * message via the reference `encodeMessage`, and its length-prefixed bytes * are sliced back out by walking the frame headers. Wrapper stubs are a few * bytes; the reference codec remains the single source of wire bytes. */ import { type ResponseFrame } from '@syncular/core'; /** The 8-byte SSP2 response envelope header (§1.2). */ export declare function responseEnvelopeHeader(wireVersion: number): Uint8Array; /** The terminating END frame (§1.2 rule 1). */ export declare const END_FRAME_BYTES: Uint8Array; /** * Encode one response frame (5-byte frame header + payload) using the * reference codec. */ export declare function encodeResponseFrame(frame: ResponseFrame, wireVersion?: number): Uint8Array;