export declare const stringToRegex: (regexStr: string) => string | RegExp;