/** * Operation context for correlation tracking * Allows tracing operations across system boundaries */ export type OperationContext = { correlationId: string; metadata?: Record; timestamp: Date; }; /** * Context manager for threading correlation IDs and metadata through operations * Useful for distributed tracing and debugging */ export declare class ContextManager { private static readonly contexts; /** * Create a new operation context */ static create(correlationId?: string, metadata?: Record): OperationContext; /** * Get an existing operation context */ static get(correlationId: string): OperationContext | undefined; /** * Delete an operation context */ static delete(correlationId: string): void; /** * Get all active contexts (useful for debugging) */ static getAllContexts(): ReadonlyMap; /** * Clear all contexts */ static clearAll(): void; } //# sourceMappingURL=context.d.ts.map