/** * Regex caching utility for performance optimization. * Caches compiled RegExp objects to avoid recompilation on every function call. */ /** * Gets a cached RegExp or creates and caches a new one. * Use this for dynamic patterns that depend on user input (e.g., separators). * * @param pattern - The regex pattern string * @param flags - Optional regex flags (default: 'g') * @returns A cached RegExp object */ export declare function getCachedRegex(pattern: string, flags?: string): RegExp;