1 |
|
2 | import micromatch = require('micromatch');
|
3 | import { Pattern, PatternRe } from '../types/patterns';
|
4 |
|
5 |
|
6 |
|
7 | export declare function isStaticPattern(pattern: Pattern): boolean;
|
8 |
|
9 |
|
10 |
|
11 | export declare function isDynamicPattern(pattern: Pattern): boolean;
|
12 |
|
13 |
|
14 |
|
15 | export declare function unixifyPattern(pattern: Pattern): Pattern;
|
16 |
|
17 |
|
18 |
|
19 | export declare function convertToPositivePattern(pattern: Pattern): Pattern;
|
20 |
|
21 |
|
22 |
|
23 | export declare function convertToNegativePattern(pattern: Pattern): Pattern;
|
24 |
|
25 |
|
26 |
|
27 | export declare function isNegativePattern(pattern: Pattern): boolean;
|
28 |
|
29 |
|
30 |
|
31 | export declare function isPositivePattern(pattern: Pattern): boolean;
|
32 |
|
33 |
|
34 |
|
35 | export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];
|
36 |
|
37 |
|
38 |
|
39 | export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
|
40 |
|
41 |
|
42 |
|
43 | export declare function getBaseDirectory(pattern: Pattern): string;
|
44 |
|
45 |
|
46 |
|
47 | export declare function hasGlobStar(pattern: Pattern): boolean;
|
48 |
|
49 |
|
50 |
|
51 | export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;
|
52 |
|
53 |
|
54 |
|
55 | export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;
|
56 |
|
57 |
|
58 |
|
59 | export declare function getDepth(pattern: Pattern): number;
|
60 |
|
61 |
|
62 |
|
63 | export declare function makeRe(pattern: Pattern, options: micromatch.Options): PatternRe;
|
64 |
|
65 |
|
66 |
|
67 | export declare function convertPatternsToRe(patterns: Pattern[], options: micromatch.Options): PatternRe[];
|
68 |
|
69 |
|
70 |
|
71 | export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;
|