import { ActyxEvent, EventKey, LocalSnapshot, StateWithProvenance, Timestamp } from '@actyx/sdk'; import { Option } from 'fp-ts/lib/Option'; export declare type SerializedStateSnap = LocalSnapshot; export declare type PendingSnapshot = { snap: SerializedStateSnap; tag: string; timestamp: Timestamp; }; export declare type SimpleReducer = { appendEvents: (events: ActyxEvent[], fromIdx: number, toIdxInclusive: number) => LocalSnapshot; setState: (state: LocalSnapshot) => void; }; export declare type CachingReducer = { appendEvents: (events: ActyxEvent[]) => StateWithProvenance; setState: (state: SerializedStateSnap) => void; awaitPendingPersistence: () => Promise; latestKnownValidState: (invalidateStatesAfter: EventKey) => Option; };