declare global { namespace jest { interface Matchers { /** * Used to check if a value is a Right. */ readonly toBeRight: () => R; } interface Expect { /** * Used to check if a value is a Right. */ readonly toBeRight: () => any; } } } /** * Checked that the received value is a Right */ export declare const toBeRight: (received: unknown) => any;