/** * @module ExecutionContext */ import { type IExecutionContextAdapter } from "../../../../execution-context/contracts/_module.js"; import { type InvocableFn } from "../../../../utilities/_module.js"; /** * IMPORT_PATH: `"@daiso-tech/core/execution-context/als-execution-context-adapter"` * * Execution context adapter using Node.js AsyncLocalStorage. * * This adapter implements context storage using Node.js's AsyncLocalStorage API, * which provides automatic context propagation across async boundaries. * It ensures context values are maintained correctly through promises, callbacks, * and other asynchronous operations. * * Recommended for Node.js environments where async context isolation is needed. */ export declare class AlsExecutionContextAdapter implements IExecutionContextAdapter { private readonly als; get(): TValue | null; run(context: TValue, fn: InvocableFn<[], TReturn>): TReturn; }