import Application from '../application'; import EventExternal from './EventExternal'; import { AggregateIdentifier } from './AggregateIdentifier'; import { ContextIdentifier } from './ContextIdentifier'; import { Dictionary } from '../../types/Dictionary'; import { State } from './State'; declare class EventInternal extends EventExternal { annotations: { state: State; previousState: State; }; protected constructor({ contextIdentifier, aggregateIdentifier, name, id, data, metadata, annotations }: { contextIdentifier: ContextIdentifier; aggregateIdentifier: AggregateIdentifier; name: string; id: string; data: Dictionary; metadata: { timestamp: number; isPublished: boolean; causationId: string; correlationId: string; revision: { aggregate: number; global: number | null; }; initiator: { user: { id: string; claims: { sub: string; }; }; }; }; annotations: { state: State; previousState: State; }; }); static create({ contextIdentifier, aggregateIdentifier, name, data, metadata, annotations }: { contextIdentifier: ContextIdentifier; aggregateIdentifier: AggregateIdentifier; name: string; data: Dictionary; metadata: { causationId?: string; correlationId?: string; revision: { aggregate: number; }; initiator: { user: { id: string; claims: { sub: string; }; }; }; }; annotations: { state: State; previousState: State; }; }): EventInternal; static deserialize(object: any): EventInternal; protected clone(): EventInternal; setData({ data }: { data: Dictionary; }): EventInternal; setRevisionGlobal({ revisionGlobal }: { revisionGlobal: number; }): EventInternal; markAsPublished(): EventInternal; asExternal(): EventExternal; static validate({ event, application }: { event: any; application: Application; }): void; } export default EventInternal;