export interface RegexMatchResult { matched: boolean; matches: Array<{ value: string; index: number; }>; } export declare function runRegexWithTimeout(pattern: string, flags: string, text: string, timeoutMs?: number): Promise;