import type { ReadOnly, RegularExpression } from "@vangware/types"; /** * Given a regular expression and a string, returns `true` if the string matches the regular expression. * * @category Primitives * @example * ```typescript * const matchNumbers = match(/\d+/u); * * matchNumbers("123"); // true * matchNumbers("abc"); // false * ``` * @param regularExpression Instance of `RegExp` or a string. * @returns `true` if the string matches the regular expression, `false` otherwise. */ export declare const match: ( regularExpression: ReadOnly | RegularExpression, ) => (text: string) => boolean;