.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / fast-glob / package / out / utils / pattern.d.ts
1 import micromatch = require('micromatch');\r
2 import { Pattern, PatternRe } from '../types/patterns';\r
3 /**\r
4  * Return true for static pattern.\r
5  */\r
6 export declare function isStaticPattern(pattern: Pattern): boolean;\r
7 /**\r
8  * Return true for pattern that looks like glob.\r
9  */\r
10 export declare function isDynamicPattern(pattern: Pattern): boolean;\r
11 /**\r
12  * Convert a windows «path» to a unix-style «path».\r
13  */\r
14 export declare function unixifyPattern(pattern: Pattern): Pattern;\r
15 /**\r
16  * Returns negative pattern as positive pattern.\r
17  */\r
18 export declare function convertToPositivePattern(pattern: Pattern): Pattern;\r
19 /**\r
20  * Returns positive pattern as negative pattern.\r
21  */\r
22 export declare function convertToNegativePattern(pattern: Pattern): Pattern;\r
23 /**\r
24  * Return true if provided pattern is negative pattern.\r
25  */\r
26 export declare function isNegativePattern(pattern: Pattern): boolean;\r
27 /**\r
28  * Return true if provided pattern is positive pattern.\r
29  */\r
30 export declare function isPositivePattern(pattern: Pattern): boolean;\r
31 /**\r
32  * Extracts negative patterns from array of patterns.\r
33  */\r
34 export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];\r
35 /**\r
36  * Extracts positive patterns from array of patterns.\r
37  */\r
38 export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];\r
39 /**\r
40  * Extract base directory from provided pattern.\r
41  */\r
42 export declare function getBaseDirectory(pattern: Pattern): string;\r
43 /**\r
44  * Return true if provided pattern has globstar.\r
45  */\r
46 export declare function hasGlobStar(pattern: Pattern): boolean;\r
47 /**\r
48  * Return true if provided pattern ends with slash and globstar.\r
49  */\r
50 export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;\r
51 /**\r
52  * Returns «true» when pattern ends with a slash and globstar or the last partial of the pattern is static pattern.\r
53  */\r
54 export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;\r
55 /**\r
56  * Return naive depth of provided pattern without depth of the base directory.\r
57  */\r
58 export declare function getNaiveDepth(pattern: Pattern): number;\r
59 /**\r
60  * Return max naive depth of provided patterns without depth of the base directory.\r
61  */\r
62 export declare function getMaxNaivePatternsDepth(patterns: Pattern[]): number;\r
63 /**\r
64  * Make RegExp for provided pattern.\r
65  */\r
66 export declare function makeRe(pattern: Pattern, options: micromatch.Options): PatternRe;\r
67 /**\r
68  * Convert patterns to regexps.\r
69  */\r
70 export declare function convertPatternsToRe(patterns: Pattern[], options: micromatch.Options): PatternRe[];\r
71 /**\r
72  * Returns true if the entry match any of the given RegExp's.\r
73  */\r
74 export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;\r