import { MatcherState } from '@vitest/expect'; import { SchemaObject } from 'ajv/dist/2020'; declare global { namespace jest { interface Matchers { /** * Assert that a given JSON Schema object is valid against the `$schema` version it * identifies itself as. * * @param schema The JSON Schema object to validate. */ toBeValidJSONSchema(): Promise; /** * Assert that a given array of JSON Schema objects is valid against the `$schema` version * that they each identify themselves as. * * @param schemas The array of JSON Schema objects to validate. */ toBeValidJSONSchemas(): Promise; } } } declare module '@jest/expect' { interface Matchers { /** * Assert that a given JSON Schema object is valid against the `$schema` version it * identifies itself as. * * @param schema The JSON Schema object to validate. */ toBeValidJSONSchema(): Promise; /** * Assert that a given array of JSON Schema objects is valid against the `$schema` version * that they each identify themselves as. * * @param schemas The array of JSON Schema objects to validate. */ toBeValidJSONSchemas(): Promise; } } /** * Assert that a given JSON Schema object is valid against the `$schema` version it identifies * itself as. * * @param schema The JSON Schema object to validate. */ declare function toBeValidJSONSchema(this: jest.MatcherUtils | MatcherState, schema: Record): Promise<{ message: () => string; pass: boolean; }>; /** * Assert that a given array of JSON Schema objects is valid against the `$schema` version that * they each identify themselves as. * * @param schemas The array of JSON Schema objects to validate. */ declare function toBeValidJSONSchemas(this: jest.MatcherUtils | MatcherState, schemas: SchemaObject[]): Promise<{ message: () => string; pass: boolean; }>; export { toBeValidJSONSchema, toBeValidJSONSchemas };