/** * Interface for context propagation */ export interface IContextProvider { /** * Get current context */ getContext(): Record; /** * Run a function with context */ runWithContext(context: Record, fn: () => T): T; /** * Run an async function with context */ runWithContextAsync(context: Record, fn: () => Promise): Promise; /** * Set a value in the current context */ set(key: string, value: unknown): void; /** * Get a value from the current context */ get(key: string): T | undefined; /** * Clear the current context */ clear(): void; } //# sourceMappingURL=IContextProvider.d.ts.map