import type { DurableSegment, SegmentDurability, SegmentDurabilityPutResult } from "../chunk-uploader/segment-uploader.js"; export declare const REPLAY_CHUNK_DB_PREFIX = "proctoring-replay"; export interface ReplayChunkStoreOptions { sessionId: string; maxBytes?: number; } export declare function replayChunkDbName(sessionId: string): string; /** * Durable, byte-capped replay queue. The newest independently playable * window is always retained; oldest unacknowledged windows are evicted first * when the origin is offline long enough to reach the disk budget. */ export declare class ReplayChunkStore implements SegmentDurability { private readonly dbName; private readonly maxBytes; private db; constructor(options: ReplayChunkStoreOptions); name(): string; open(): Promise; list(): Promise; listSequences(): Promise; get(sequence: number): Promise; put(record: DurableSegment): Promise; remove(sequence: number): Promise; nextSequence(preferred: number): Promise; bytes(): Promise; close(): Promise; private requireDb; } //# sourceMappingURL=replay-chunk-store.d.ts.map