export declare function toRegExp(string: string): { test: (str: string) => boolean; }; export declare function isRegExp(string: string): boolean;