import { PersistedEvent } from '@centsideas/models' ; import { StreamEvents } from './stream-event' ; export interface EventStore { getStream ( id , after ? ) : Promise < PersistedEvent [ ] > ; getEvents ( after ) : Promise < PersistedEvent [ ] > ; store ( events , lastVersion ) : Promise < void > ; }