import { MessageFunctionType, Result } from '../types'; export interface IsMatchErrors { TARGET_ARGUMENT_NOT_A_STRING: MessageFunctionType; } export declare const IS_MATCH_ERRORS: IsMatchErrors; /** * Checks if string matches the pattern. * Either matches('foo', /foo/i) or matches('foo', 'foo', 'i'). * If given value is not a string, then it returns false. * * ### Example * ``` * expect(isMatch('xyz', /xyz/).value).toBeTruthy() * ``` * * @param target The value being checked. * @param pattern The match pattern * @param modifiers The modifiers */ export declare function isMatch(target: string, pattern: RegExp, modifiers?: string): Result;