1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { FileOperator, Rule, Source } from '../engine/interface';
|
9 | import { FilePredicate, MergeStrategy, Tree } from '../tree/interface';
|
10 |
|
11 |
|
12 |
|
13 | export declare function source(tree: Tree): Source;
|
14 |
|
15 |
|
16 |
|
17 | export declare function empty(): Source;
|
18 |
|
19 |
|
20 |
|
21 | export declare function chain(rules: Iterable<Rule> | AsyncIterable<Rule>): Rule;
|
22 |
|
23 |
|
24 |
|
25 | export declare function apply(source: Source, rules: Rule[]): Source;
|
26 |
|
27 |
|
28 |
|
29 | export declare function mergeWith(source: Source, strategy?: MergeStrategy): Rule;
|
30 | export declare function noop(): Rule;
|
31 | export declare function filter(predicate: FilePredicate<boolean>): Rule;
|
32 | export declare function asSource(rule: Rule): Source;
|
33 | export declare function branchAndMerge(rule: Rule, strategy?: MergeStrategy): Rule;
|
34 | export declare function when(predicate: FilePredicate<boolean>, operator: FileOperator): FileOperator;
|
35 | export declare function partitionApplyMerge(predicate: FilePredicate<boolean>, ruleYes: Rule, ruleNo?: Rule): Rule;
|
36 | export declare function forEach(operator: FileOperator): Rule;
|
37 | export declare function composeFileOperators(operators: FileOperator[]): FileOperator;
|
38 | export declare function applyToSubtree(path: string, rules: Rule[]): Rule;
|