import { AggregateId } from './aggregate-id'; import { DomainEvent } from '../../event/domain-event'; export declare abstract class AggregateEvent { private readonly aggregateId; private readonly type; protected constructor(aggregateId: T, type: string); abstract toDomainEvent(): DomainEvent; getAggregateId(): AggregateId; getType(): string; equals(event: AggregateEvent): boolean; equalsByType(event: AggregateEvent): boolean; }