export declare function mapRegExpMatches(regexp: RegExp, haystack: string, map: (result: RegExpExecArray) => T): T[];