/**
 * Centralized regex utilities for safe pattern construction.
 *
 * Replaces the scattered `string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')`
 * pattern found across the codebase with a single, tested function.
 */
/**
 * Escape all regex special characters in a string so it can be used
 * as a literal match inside a `RegExp`.
 *
 * Uses a replacer function (not a `'\\$&'` string replacement) to
 * match the repo convention set by `shell-orchestrator.ts` and the
 * GCA catches on PR #1454 / #1458. Functionally equivalent but safer
 * as a default in substitution-sensitive contexts.
 */
export declare function escapeRegex(s: string): string;
/**
 * Convert a literal code snippet into a permissive regex pattern for
 * Pipeline 5 observation rules.
 *
 * Steps:
 *  1. Trim leading/trailing blank lines
 *  2. Escape regex metacharacters
 *  3. Replace whitespace runs with `\s+` to tolerate reformatting
 *
 * Returns `''` for empty / whitespace-only input.
 */
export declare function codeToPattern(code: string): string;
//# sourceMappingURL=regex-utils.d.ts.map