UNPKG

@mastra/core

Version:
9 lines • 504 B
import type { RunFenceScope } from '../../storage/run-fencing.js'; /** * Run `fn` with `scope` supplying the fence of every storage write it makes, * including writes from processors, tools and memory that never see the fence. */ export declare function runInRunFenceScope<T>(scope: RunFenceScope, fn: () => T): T; /** The scope installed for the current async context, if any. */ export declare function currentRunFenceScope(): RunFenceScope | undefined; //# sourceMappingURL=run-fence-scope.d.ts.map