deps: update minimatch to 10.2.2 · nodejs/node@9b483fb
11import { AST } from './ast.js';
22export type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
33export interface MinimatchOptions {
4+/** do not expand `{x,y}` style braces */
45nobrace?: boolean;
6+/** do not treat patterns starting with `#` as a comment */
57nocomment?: boolean;
8+/** do not treat patterns starting with `!` as a negation */
69nonegate?: boolean;
10+/** print LOTS of debugging output */
711debug?: boolean;
12+/** treat `**` the same as `*` */
813noglobstar?: boolean;
14+/** do not expand extglobs like `+(a|b)` */
915noext?: boolean;
16+/** return the pattern if nothing matches */
1017nonull?: boolean;
18+/** treat `\\` as a path separator, not an escape character */
1119windowsPathsNoEscape?: boolean;
20+/**
21+ * inverse of {@link MinimatchOptions.windowsPathsNoEscape}
22+ * @deprecated
23+ */
1224allowWindowsEscape?: boolean;
25+/**
26+ * Compare a partial path to a pattern. As long as the parts
27+ * of the path that are present are not contradicted by the
28+ * pattern, it will be treated as a match. This is useful in
29+ * applications where you're walking through a folder structure,
30+ * and don't yet have the full path, but want to ensure that you
31+ * do not walk down paths that can never be a match.
32+ */
1333partial?: boolean;
34+/** allow matches that start with `.` even if the pattern does not */
1435dot?: boolean;
36+/** ignore case */
1537nocase?: boolean;
38+/** ignore case only in wildcard patterns */
1639nocaseMagicOnly?: boolean;
40+/** consider braces to be "magic" for the purpose of `hasMagic` */
1741magicalBraces?: boolean;
42+/**
43+ * If set, then patterns without slashes will be matched
44+ * against the basename of the path if it contains slashes.
45+ * For example, `a?b` would match the path `/xyz/123/acb`, but
46+ * not `/xyz/acb/123`.
47+ */
1848matchBase?: boolean;
49+/** invert the results of negated matches */
1950flipNegate?: boolean;
51+/** do not collapse multiple `/` into a single `/` */
2052preserveMultipleSlashes?: boolean;
53+/**
54+ * A number indicating the level of optimization that should be done
55+ * to the pattern prior to parsing and using it for matches.
56+ */
2157optimizationLevel?: number;
58+/** operating system platform */
2259platform?: Platform;
60+/**
61+ * When a pattern starts with a UNC path or drive letter, and in
62+ * `nocase:true` mode, do not convert the root portions of the
63+ * pattern into a case-insensitive regular expression, and instead
64+ * leave them as strings.
65+ *
66+ * This is the default when the platform is `win32` and
67+ * `nocase:true` is set.
68+ */
2369windowsNoMagicRoot?: boolean;
70+/**
71+ * max number of `{...}` patterns to expand. Default 100_000.
72+ */
73+braceExpandMax?: number;
2474}
2575export declare const minimatch: {
2676(p: string, pattern: string, options?: MinimatchOptions): boolean;