import type { DebugLogger } from "./debug-logger.js"; import { type JsonRecord } from "./shared/index.js"; export type { JsonRecord }; export interface EventFrame { headers: Record; payload: JsonRecord | null; } export declare class ByteQueue { private chunks; private headOffset; length: number; push(chunk: Uint8Array): void; peekUint32BE(offset?: number): number | null; read(length: number): Uint8Array | null; private byteAt; } export declare function crc32(buf: Uint8Array): number; export declare function parseEventFrame(data: Uint8Array, logger: DebugLogger): EventFrame | null;