/** A sampled pair of snapshots and interpolation factor. */ export type SnapshotBufferSample = { before: T; after: T; alpha: number; }; /** Serializable snapshot-buffer state. */ export type SnapshotBufferState = { delayMs: number; capacity: number; entries: Array<{ atMs: number; value: T; }>; }; /** Handle for a timestamped delayed snapshot buffer. */ export type SnapshotBuffer = { push(atMs: number, value: T): void; sampleAt(nowMs: number): SnapshotBufferSample | null; snapshot(): SnapshotBufferState; restore(next: SnapshotBufferState): void; retune(config: { delayMs?: number; capacity?: number; }): void; }; /** Stores timestamped snapshots and samples a delayed, interpolatable pair. * @capability runtime snapshot interpolation */ export declare function createSnapshotBuffer(config: { delayMs: number; capacity: number; }): SnapshotBuffer;