declare global { namespace jest { interface Matchers { /** * Used to check if a value is a Left Error whose `message` property contains the supplied * string or matches the supplied regular expression. */ readonly toBeLeftErrorMatching: (expected: string | RegExp) => R; } interface Expect { /** * Used to check if a value is a Left Error whose `message` property contains the supplied * string or matches the supplied regular expression. */ readonly toBeLeftErrorMatching: (expected: string | RegExp) => any; } } } /** * Check that the received value is a Left Error whose `message` property contains the supplied * string or matches the supplied regular expression. */ export declare const toBeLeftErrorMatching: (received: unknown, expected: string | RegExp) => any;