ast.d.ts 758 B

12345678910111213141516171819
  1. import { MinimatchOptions, MMRegExp } from './index.js';
  2. export type ExtglobType = '!' | '?' | '+' | '*' | '@';
  3. export 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. toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean];
  18. }
  19. //# sourceMappingURL=ast.d.ts.map