ast.d.ts 778 B

123456789101112131415161718192021222324
  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(): [
  18. re: string,
  19. body: string,
  20. hasMagic: boolean,
  21. uflag: boolean
  22. ];
  23. }
  24. //# sourceMappingURL=ast.d.ts.map