import { type BufferedSseEvent } from './streamProjector';
export interface SessionSseReplayState {
    sseEventSeq: number;
    sseEventBuffer: BufferedSseEvent[];
}
export declare const TERMINAL_SSE_EVENT_TYPES: Set<string>;
export declare function parseLastEventId(headerValue: unknown, legacyQueryValue?: unknown): number | null;
export declare function appendReplayableSseEvent(state: SessionSseReplayState, eventType: string, payload: unknown, maxBufferedEvents?: number): BufferedSseEvent;
export declare function hasTerminalReplayAfter(state: SessionSseReplayState, lastEventId: number): boolean;
//# sourceMappingURL=sessionSseReplay.d.ts.map