1 | import { IAnyStateTreeNode, IMiddlewareEvent } from "../internal";
|
2 | export interface IActionContext {
|
3 |
|
4 | readonly name: string;
|
5 |
|
6 | readonly id: number;
|
7 |
|
8 | readonly parentActionEvent: IMiddlewareEvent | undefined;
|
9 |
|
10 | readonly context: IAnyStateTreeNode;
|
11 |
|
12 | readonly tree: IAnyStateTreeNode;
|
13 |
|
14 | readonly args: any[];
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | export declare function getRunningActionContext(): IActionContext | undefined;
|
20 |
|
21 |
|
22 |
|
23 | export declare function isActionContextChildOf(actionContext: IActionContext, parent: number | IActionContext | IMiddlewareEvent): boolean;
|
24 |
|
25 |
|
26 |
|
27 | export declare function isActionContextThisOrChildOf(actionContext: IActionContext, parentOrThis: number | IActionContext | IMiddlewareEvent): boolean;
|