import type { SessionEvent } from "./types.js"; export type EventSink = (event: SessionEvent) => void | Promise; /** * Per-session event recorder. Three concerns: * 1. In-memory buffer (returned in SessionResult so callers can replay). * 2. Optional NDJSON file writer for durable replay (orchestrator session log). * 3. Optional callback fanout — the web app passes a callback that pushes * to SSE / R2 in production. * * Errors writing the file are swallowed; we never want a log-write failure * to abort an in-flight orchestrator session. */ export declare class SessionLog { private readonly opts; private readonly buffer; private fileInitialized; constructor(opts?: { ndjsonPath?: string; onEvent?: EventSink; }); emit(event: SessionEvent): Promise; events(): SessionEvent[]; } //# sourceMappingURL=log.d.ts.map