import Aggregate from '../elements/Aggregate'; import { AggregateIdentifier } from '../elements/AggregateIdentifier'; import Application from '../application/Application'; import { ContextIdentifier } from '../elements/ContextIdentifier'; import EventInternal from '../elements/EventInternal'; import { Eventstore } from '../../stores/eventstore/Eventstore'; declare class Repository { protected application: Application; protected eventstore: Eventstore; constructor({ application, eventstore }: { application: Application; eventstore: Eventstore; }); protected replayAggregate({ aggregate }: { aggregate: Aggregate; }): Promise; loadAggregate({ contextIdentifier, aggregateIdentifier }: { contextIdentifier: ContextIdentifier; aggregateIdentifier: AggregateIdentifier; }): Promise; saveAggregate({ aggregate }: { aggregate: Aggregate; }): Promise; } export default Repository;