interface GlobCache { get(glob: string): RegExp | undefined; set(glob: string, expression: RegExp): void; } /** * LRU-bounded `string โ†’ RegExp` cache. Nothing about it is glob-specific โ€” the * key is any source string and the value its compiled expression โ€” so it is * exported for the other compile-once-evaluate-many sites in the engine (Prop * 310's `requires.pattern`, `spine/record-runtime.ts`). Reusing this rather than * a bare `Map` keeps the shipped idiom AND the bound: an unbounded map keyed by * rule content grows with every distinct pattern the process ever sees. */ export declare class BoundedRegexCache implements GlobCache { private readonly capacity; private readonly entries; constructor(capacity: number); get(glob: string): RegExp | undefined; set(glob: string, expression: RegExp): void; } /** Match a path with the public rule-engine compatibility profile. */ export declare function matchesGlob(filePath: string, glob: string): boolean; /** Match a path with the anchored path-classifier compatibility profile. */ export declare function matchesPathGlob(filePath: string, glob: string): boolean; /** * Match a repo-relative path against ONE glob under the Prop 310 ยง Design 7 * normative dialect. Single-glob only: the two-array scope rule * (`positiveMatch && !excludeMatch`) is record-grammar SEMANTICS and lives with * the record runtime (`spine/record-runtime.ts`), not in the dialect mechanics. * * Reachable only for rules that carry a Prop 310 compiled home; every legacy * rule keeps `matchesGlob`'s shipped behaviour byte-for-byte. */ export declare function matchesRecordGlob(filePath: string, glob: string): boolean; /** * Return true when a path matches any positive rule glob and no `!`-prefixed * negative glob. With no positive entries, every path is included by default. */ export declare function fileMatchesGlobs(filePath: string, globs: readonly string[]): boolean; export {}; //# sourceMappingURL=glob.d.ts.map