import type { StreamLifecycleFrame } from "../streaming/lifecycle/index.js"; import { type ConversationRunEvent } from "./run-events.js"; /** * Thrown when a supposedly validated lifecycle frame sequence violates a * projection invariant. Version 2 projection never synthesizes lifecycle * boundaries; repair belongs to the reducer or the legacy read adapter. */ export declare class StreamProjectionInvariantError extends Error { constructor(message: string); } /** Buffered durable projection of validated lifecycle frames. */ export interface LifecycleRunEventAdapter { handleFrame(frame: StreamLifecycleFrame): void; flush(): void; dispose(): void; } export declare function createLifecycleRunEventAdapter(input: { runId: string; attemptId: string; attemptIndex: number; messageId: string; onEvents(events: readonly ConversationRunEvent[]): void; maxBufferedContentBytes?: number; flushDelayMs?: number; setTimer?: (callback: () => void, delayMs: number) => number; clearTimer?: (timerId: number) => void; }): LifecycleRunEventAdapter; //# sourceMappingURL=lifecycle-run-event-adapter.d.ts.map