ast.d.ts 795 B

1234567891011121314151617181920
  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. get options(): MinimatchOptions;
  18. toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean];
  19. }
  20. //# sourceMappingURL=ast.d.ts.map