1 | import { SdmContext } from "../context/SdmContext";
|
2 | import { Goals } from "../goal/Goals";
|
3 | import { PushListenerInvocation } from "../listener/PushListener";
|
4 | import { Mapping } from "./Mapping";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare type GoalSetter<F extends SdmContext = PushListenerInvocation> = Mapping<F, Goals>;
|
14 | export declare enum GoalSettingCompositionStyle {
|
15 | FirstMatch = "take the first one",
|
16 | AllMatches = "take all the ones that match"
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export interface GoalSettingStructure<F, V> extends Mapping<F, V> {
|
24 | structure: {
|
25 | compositionStyle: GoalSettingCompositionStyle;
|
26 | components: Array<Mapping<F, V>>;
|
27 | };
|
28 | }
|
29 | export declare function hasGoalSettingStructure<F, V>(m: Mapping<F, V>): m is GoalSettingStructure<F, V>;
|
30 |
|
\ | No newline at end of file |