/** * The execution context established around every automation run * (design.md D11; task 8.1). * @internal */ export interface ExecutionContextStore { readonly automationName: string; } /** * Run `fn` with the execution context set to `automationName`. Nested calls * (a service invoked from within an automation's `execute()`) inherit the * same context automatically; there is no explicit propagation for callers * to get wrong (design.md D11). * * @internal */ export declare function runInAutomationContext(automationName: string, fn: () => T): T; /** * The name of the automation currently executing on this async call chain, * or `null` when called from outside any automation run — for example, a * state write made by an HTTP API request (design.md D11; task 8.1). */ export declare function currentAutomationName(): string | null; //# sourceMappingURL=execution-context.d.ts.map