1 | import { ProjectPredicate, PushTest } from "../PushTest";
|
2 | import * as pred from "./predicateUtils";
|
3 | /**
|
4 | * Return the opposite of this push test
|
5 | */
|
6 | export declare const not: typeof pred.whenNot;
|
7 | /**
|
8 | * Wrap all these PushTests or ProjectPredicates in a single PushTest
|
9 | * AND: Return true if all are satisfied
|
10 | */
|
11 | export declare const and: typeof allSatisfied;
|
12 | /**
|
13 | * Wrap all these PushTests or ProjectPredicates in a single PushTest
|
14 | * OR: Return true if any is satisfied
|
15 | */
|
16 | export declare const or: typeof anySatisfied;
|
17 | export declare type PushTestOrProjectPredicate = PushTest | ProjectPredicate;
|
18 | /**
|
19 | * Wrap all these PushTests or ProjectPredicates in a single PushTest
|
20 | * AND: Return true if all are satisfied
|
21 | * @param {PushTest} pushTests
|
22 | * @return {PushTest}
|
23 | */
|
24 | export declare function allSatisfied(...pushTests: PushTestOrProjectPredicate[]): PushTest;
|
25 | /**
|
26 | * Wrap all these PushTests or ProjectPredicates in a single PushTest
|
27 | * OR: Return true if any is satisfied
|
28 | * @param {PushTest} pushTests
|
29 | * @return {PushTest}
|
30 | */
|
31 | export declare function anySatisfied(...pushTests: PushTestOrProjectPredicate[]): PushTest;
|
32 | /**
|
33 | * Cache the PushTest results for this push. The results will be cached based
|
34 | * on the name of the pushTest and the ID of the push. Make sure your push test
|
35 | * has a unique name!
|
36 | * @param {PushTest} pt
|
37 | * @return {PushTest}
|
38 | */
|
39 | export declare function memoize(pt: PushTest): PushTest;
|
40 | //# sourceMappingURL=pushTestUtils.d.ts.map |
\ | No newline at end of file |