1 | import { Goals } from "../goal/Goals";
|
2 | import { PushListenerInvocation } from "../listener/PushListener";
|
3 | import { PushTest } from "../mapping/PushTest";
|
4 | import { PredicateMappingTerm } from "../mapping/support/PredicateMappingTerm";
|
5 | import { PushRule } from "../mapping/support/PushRule";
|
6 | import { GoalComponent } from "./GoalComponent";
|
7 |
|
8 |
|
9 |
|
10 | export declare class GoalSetterMapping<P extends PushListenerInvocation = PushListenerInvocation> extends PushRule<Goals> {
|
11 | private goalsName;
|
12 | get label(): string;
|
13 | constructor(guard1: PushTest, guards: PushTest[], reason?: string);
|
14 | setGoals(goalComponent: GoalComponent): this;
|
15 | /**
|
16 | * Set goals dynamically, depending on this push
|
17 | * @param {(inv: P) => GoalComponent} f
|
18 | * @return {this}
|
19 | */
|
20 | setGoalsWhen(f: (inv: P) => GoalComponent | Promise<GoalComponent>): this;
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 | setNoMoreGoals(name?: string): void;
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare function whenPushSatisfies<P extends PushListenerInvocation = PushListenerInvocation>(guard1: PredicateMappingTerm<P>, ...guards: Array<PredicateMappingTerm<P>>): GoalSetterMapping<P>;
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | export declare function onAnyPush<P extends PushListenerInvocation = PushListenerInvocation>(): GoalSetterMapping<P>;
|
40 |
|
\ | No newline at end of file |