import type { expect } from "vitest"; type Expect = typeof expect; type ExpectExtend = Expect["extend"]; type ExpectExtendObject = Parameters[0]; interface CustomMatchers { toMatchFragment(frag: string): R; } declare module "vitest" { interface Assertion extends CustomMatchers { } interface AsymmetricMatchersContaining extends CustomMatchers { } } /** * Extend jest's expect with a matcher for PreTeXt fragments. This matcher * will normalize the input HTML before comparing it to the expected HTML. * * You may need to include * ``` * interface CustomMatchers { * toMatchFragment(frag: string): R; * } * declare module "vitest" { * interface Assertion extends CustomMatchers {} * interface AsymmetricMatchersContaining extends CustomMatchers {} * } * * ``` * for vitest/jest types to work correctly. */ export declare const jestToMatchFragment: ExpectExtendObject; export {}; //# sourceMappingURL=jest-render-as-fragment.d.ts.map