declare global { namespace jest { interface Matchers { /** * Use `.toBeEither()` to check if a value is consistent with an Either. In other words, this * matcher confirms that the value is a Left or a Right. * * Note that a Left or a Right value is also consistent with a These and would also pass a * `.toBeThese()` test. */ readonly toBeEither: () => R; } interface Expect { /** * Use `.toBeEither()` to check if a value is consistent with an Either. In other words, this * matcher confirms that the value is a Left or a Right. * * Note that a Left or a Right value is also consistent with a These and would also pass a * `.toBeThese()` test. */ readonly toBeEither: () => any; } } } /** * Check that the received value is an Either */ export declare const toBeEither: (received: unknown) => any;