basant307/AI_Governance_Project
048
1import { GLOBSTAR } from 'minimatch';2export type MMPattern = string | RegExp | typeof GLOBSTAR;3export type PatternList = [p: MMPattern, ...rest: MMPattern[]];4export type UNCPatternList = [5 p0: '',6 p1: '',7 p2: string,8 p3: string,9 ...rest: MMPattern[]10];11export type DrivePatternList = [p0: string, ...rest: MMPattern[]];12export type AbsolutePatternList = [p0: '', ...rest: MMPattern[]];13export type GlobList = [p: string, ...rest: string[]];14declare const customInspect: unique symbol;15/**16 * An immutable-ish view on an array of glob parts and their parsed17 * results18 */19export declare class Pattern {20 #private;21 readonly length: number;22 constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform);23 [customInspect](): string;24 /**25 * The first entry in the parsed list of patterns26 */27 pattern(): MMPattern;28 /**29 * true of if pattern() returns a string30 */31 isString(): boolean;32 /**33 * true of if pattern() returns GLOBSTAR34 */35 isGlobstar(): boolean;36 /**37 * true if pattern() returns a regexp38 */39 isRegExp(): boolean;40 /**41 * The /-joined set of glob parts that make up this pattern42 */43 globString(): string;44 /**45 * true if there are more pattern parts after this one46 */47 hasMore(): boolean;48 /**49 * The rest of the pattern after this part, or null if this is the end50 */51 rest(): Pattern | null;52 /**53 * true if the pattern represents a //unc/path/ on windows54 */55 isUNC(): boolean;56 /**57 * True if the pattern starts with a drive letter on Windows58 */59 isDrive(): boolean;60 /**61 * True if the pattern is rooted on an absolute path62 */63 isAbsolute(): boolean;64 /**65 * consume the root of the pattern, and return it66 */67 root(): string;68 /**69 * Check to see if the current globstar pattern is allowed to follow70 * a symbolic link.71 */72 checkFollowGlobstar(): boolean;73 /**74 * Mark that the current globstar pattern is following a symbolic link75 */76 markFollowGlobstar(): boolean;77}78export {};79//# sourceMappingURL=pattern.d.ts.map