/** * Builds a safe regular expression (RE2 when available, RegExp otherwise) */ export declare function buildSafeRegExp(source: string | RegExp, flags?: string): RegExp; type LoopRegexesMode = "match" | "split" | "replace"; type LoopRegexesResult = (Mode extends "replace" ? string : RegExpMatchArray); /** * Executes multiple regular expressions until one succeeds */ export declare function loopRegexes(regexes: RegExp[], str: string, mode?: Mode, highestPosition?: boolean): LoopRegexesResult; /** * Reconciliates match substrings after a "split" operation */ export declare function reconciliateSplitMatch(match: string[], minSubstrings: number, defaultSubstrings: number[], fnExclude?: ((index: number) => boolean) | null): string; /** * Trims a string */ export declare function trimString(str: string | null): string; export {};