import { DateTime } from 'luxon'; import { ExecutionContext } from '@dolittle/sdk.execution'; import { EventSourceId } from './EventSourceId'; /** * Represents the context of an event. */ export declare class EventContext { readonly sequenceNumber: number; readonly eventSourceId: EventSourceId; readonly occurred: DateTime; readonly committedExecutionContext: ExecutionContext; readonly currentExecutionContext: ExecutionContext; /** * Initializes a new instance of {@link EventContext}. * @param {number} sequenceNumber - Sequence number in the event log the event belongs to. * @param {EventSourceId} eventSourceId - Unique identifier of the event source it originates from. * @param {DateTime} occurred - DateTime in UTC for when the event occurred. * @param {ExecutionContext} committedExecutionContext - The execution context in which the event was committed to the event store. * @param {ExecutionContext} currentExecutionContext - The execution context in which the event is currently being processed.. */ constructor(sequenceNumber: number, eventSourceId: EventSourceId, occurred: DateTime, committedExecutionContext: ExecutionContext, currentExecutionContext: ExecutionContext); } //# sourceMappingURL=EventContext.d.ts.map