/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */ /** * Shared glob-to-regex conversion utility. * Handles **, *, and ? wildcards correctly for file path matching. */ export declare function buildGlobMatcher(glob: string): (path: string) => boolean; /** * Convert a glob body to a regex-source body in a SINGLE forward pass. * * Escapes regex metacharacters and maps `**`, `*`, and `?` to the caller's * chosen sub-expressions. Deliberately avoids the older approach of round- * tripping through a placeholder sentinel with `String.replace(/…/g, …)`: a * `g`-flagged regex literal reused across many calls can, on some engines, * carry `lastIndex` state into a subsequent `replace` and skip the * placeholder-restore step, leaving a literal sentinel in the pattern so the * `**` case silently stops matching. A character scan holds no state and * cannot mis-fire that way. * * @param glob - Glob body (already stripped of any anchors the caller adds). * @param star - Regex source that a single `*` maps to. * @param globstar - Regex source that a `**` maps to. * @param question - Regex source that a `?` maps to; when omitted, `?` is * treated as a literal character (escaped if needed). */ export declare function globBodyToRegexSource(glob: string, star: string, globstar: string, question?: string): string; export declare function globToRegex(glob: string): RegExp; //# sourceMappingURL=glob-to-regex.d.ts.map