/** * Execution Context * * Provides AsyncLocalStorage-based context for async operations. * Useful for passing context through async call chains without explicit parameters. */ import { AsyncLocalStorage } from 'async_hooks'; import type { ExecutionContext } from './types.js'; /** * Global execution context storage * Use to store per-request or per-operation context */ export declare const executionContext: AsyncLocalStorage; /** * Run a function within a specific execution context */ export declare function runWithContext(context: ExecutionContext, fn: () => T): T; /** * Get the current execution context */ export declare function getContext(): ExecutionContext | undefined; export type { ExecutionContext }; //# sourceMappingURL=context.d.ts.map