import { Guid } from '@cratis/fundamentals'; import { IEventStore } from '../IEventStore.js'; import { IUnitOfWork } from './IUnitOfWork.js'; import { IUnitOfWorkManager } from './IUnitOfWorkManager.js'; /** * Implements {@link IUnitOfWorkManager} using {@link AsyncLocalStorage} for async-context scoping. */ export declare class UnitOfWorkManager implements IUnitOfWorkManager { private readonly _eventStore; private readonly _storage; private readonly _unitsOfWork; constructor(_eventStore: IEventStore); /** @inheritdoc */ get current(): IUnitOfWork; /** @inheritdoc */ get hasCurrent(): boolean; /** @inheritdoc */ tryGetFor(correlationId: string | Guid): IUnitOfWork | undefined; /** @inheritdoc */ begin(correlationId?: string | Guid): IUnitOfWork; /** @inheritdoc */ setCurrent(unitOfWork: IUnitOfWork): void; private unitOfWorkCompleted; } //# sourceMappingURL=UnitOfWorkManager.d.ts.map