UNPKG

795 BTypeScriptView Raw
1import { MinimatchOptions, MMRegExp } from './index.js';
2export type ExtglobType = '!' | '?' | '+' | '*' | '@';
3export declare class AST {
4 #private;
5 type: ExtglobType | null;
6 constructor(type: ExtglobType | null, parent?: AST, options?: MinimatchOptions);
7 get hasMagic(): boolean | undefined;
8 toString(): string;
9 push(...parts: (string | AST)[]): void;
10 toJSON(): any[];
11 isStart(): boolean;
12 isEnd(): boolean;
13 copyIn(part: AST | string): void;
14 clone(parent: AST): AST;
15 static fromGlob(pattern: string, options?: MinimatchOptions): AST;
16 toMMPattern(): MMRegExp | string;
17 get options(): MinimatchOptions;
18 toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean];
19}
20//# sourceMappingURL=ast.d.ts.map
\No newline at end of file