/** * Finds the first substring match in a regular expression search. * @param regex The regular expression pattern and applicable flags. */ export declare function search(regex: RegExp | string): (string: string) => number;