You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
795 B
20 lines
795 B
import { MinimatchOptions, MMRegExp } from './index.js'; |
|
export type ExtglobType = '!' | '?' | '+' | '*' | '@'; |
|
export declare class AST { |
|
#private; |
|
type: ExtglobType | null; |
|
constructor(type: ExtglobType | null, parent?: AST, options?: MinimatchOptions); |
|
get hasMagic(): boolean | undefined; |
|
toString(): string; |
|
push(...parts: (string | AST)[]): void; |
|
toJSON(): any[]; |
|
isStart(): boolean; |
|
isEnd(): boolean; |
|
copyIn(part: AST | string): void; |
|
clone(parent: AST): AST; |
|
static fromGlob(pattern: string, options?: MinimatchOptions): AST; |
|
toMMPattern(): MMRegExp | string; |
|
get options(): MinimatchOptions; |
|
toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean]; |
|
} |
|
//# sourceMappingURL=ast.d.ts.map
|