declare function reduce(arrayLike: { length: number; }, callback: (...args: any[]) => void, initialValue: any): any; declare function forEachMatch(string: string, pattern: RegExp, callback: (match: RegExpExecArray) => void): void; export { reduce, forEachMatch };