/** * Generic value matcher implementation, shared by query, headers and body matchers. */ import type { ValueMatcher } from '../protocol'; export declare function isValueMatcher(v: unknown): v is { $$contains: string; } | { $$regex: string; }; export declare function matchValue(expected: ValueMatcher, actual: unknown): boolean; /** * Builds a RegExp from a string. * Accepts either a plain pattern ('foo.*') or a '/pattern/flags' form (consistent with URL's regexp matching). * The '/pattern/flags' form is only used when the trailing part contains valid regex flags, * so a plain pattern that merely starts with '/' is not misinterpreted. */ export declare function regexpFromString(s: string): RegExp; //# sourceMappingURL=value-matcher.d.ts.map