1 | import { ActionCallback, IInteractionContext, LooseObject } from '../../interface';
|
2 | import Action from './base';
|
3 | import CallbackAction from './callback';
|
4 |
|
5 | declare type ActionConstructor = new (context: IInteractionContext, cfg?: LooseObject) => Action;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare function createAction(actionName: string, context: IInteractionContext): Action;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare function getActionClass(actionName: string): ActionConstructor;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare function registerAction(actionName: string, ActionClass: ActionConstructor, cfg?: LooseObject): void;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export declare function unregisterAction(actionName: string): void;
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare function createCallbackAction(callback: ActionCallback, context: IInteractionContext): CallbackAction;
|
36 | export {};
|