export declare const OUTBOX_EVENTS_COLLECTION = "outbox_events"; export type OutboxEventStatus = 'pending' | 'publishing' | 'published' | 'failed'; /** * Transactional outbox record persisted with the aggregate mutation. */ export interface OutboxEvent { id: string; spaceId: string; aggregateType: string; aggregateId: string; eventType: string; schemaVersion: number; payload: TPayload; status: OutboxEventStatus; attempts: number; availableAt: Date; lockedAt?: Date; lockedUntil?: Date; lockedBy?: string; createdAt: Date; lastAttemptAt?: Date; publishedAt?: Date; lastError?: string; }