import type { Control } from '../../Control.js'; import { type NewableOrPrimitive } from '../../matchers/basic/a.js'; declare module '../../expect.js' { interface Validators { /** * Asserts that the value is an instance of a provided class or a primitive * type. It is compatible with built-in types like strings, numbers, and * dates. * * If you want to match a nested value, use the matcher `expect.a(type)` * instead. * * @param type - The class or primitive constructor to match against. * * @example * ```ts * // Primitives * expect(123).toBeA(Number) * expect('foo').not.toBeA(Boolean) * * // Classes * expect(new Person('John', 'Doe')).toBeA(Person) * ``` */ toBeA(type: C): void; } } export declare function toBeA(control: Control, type: NewableOrPrimitive): void; //# sourceMappingURL=toBeA.d.ts.map