1 | export interface IExpression {
|
2 | [pattern: string]: boolean | SiblingClause | any;
|
3 | }
|
4 | export interface IRelativePattern {
|
5 | base: string;
|
6 | pattern: string;
|
7 | pathToRelative(from: string, to: string): string;
|
8 | }
|
9 | export declare function getEmptyExpression(): IExpression;
|
10 | export interface SiblingClause {
|
11 | when: string;
|
12 | }
|
13 | export declare function splitGlobAware(pattern: string, splitChar: string): string[];
|
14 | export declare type ParsedPattern = (path: string, basename?: string) => boolean;
|
15 | export declare type ParsedExpression = (path: string, basename?: string, hasSibling?: (name: string) => boolean | Promise<boolean>) => string | Promise<string>;
|
16 | export interface IGlobOptions {
|
17 | |
18 |
|
19 |
|
20 | trimForExclusions?: boolean;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export declare function match(pattern: string | IRelativePattern, path: string): boolean;
|
31 | export declare function match(expression: IExpression, path: string, hasSibling?: (name: string) => boolean): string;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | export declare function parse(pattern: string | IRelativePattern, options?: IGlobOptions): ParsedPattern;
|
41 | export declare function parse(expression: IExpression, options?: IGlobOptions): ParsedExpression;
|
42 | export declare function hasSiblingPromiseFn(siblingsFn?: () => Promise<string[]>): ((name: string) => Promise<boolean>) | undefined;
|
43 | export declare function hasSiblingFn(siblingsFn?: () => string[]): ((name: string) => boolean) | undefined;
|
44 | export declare function isRelativePattern(obj: unknown): obj is IRelativePattern;
|
45 |
|
46 |
|
47 |
|
48 | export declare function parseToAsync(expression: IExpression, options?: IGlobOptions): ParsedExpression;
|
49 | export declare function getBasenameTerms(patternOrExpression: ParsedPattern | ParsedExpression): string[];
|
50 | export declare function getPathTerms(patternOrExpression: ParsedPattern | ParsedExpression): string[];
|
51 |
|
\ | No newline at end of file |