import { Causation } from './Causation.js'; import { CausationType } from './CausationType.js'; import { ICausationManager } from './ICausationManager.js'; /** * Implements {@link ICausationManager} using {@link AsyncLocalStorage} to scope the causation chain to the active async call context. */ export declare class CausationManager implements ICausationManager { private readonly _storage; private _root; /** @inheritdoc */ get root(): Causation; /** @inheritdoc */ getCurrentChain(): ReadonlyArray; /** @inheritdoc */ add(type: CausationType, properties: Record): void; /** Runs an async or synchronous operation with an isolated, restored causation chain. */ run(callback: () => T): T; run(type: CausationType, properties: Record, callback: () => T): T; /** * Defines the root causation for the current process. * @param properties - Properties associated with the root causation. */ defineRoot(properties: Record): void; } //# sourceMappingURL=CausationManager.d.ts.map