ast.d.ts 845 B

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