/** * instanceof validation core module * Provides a validator that checks whether a value is an instance of a * specific constructor, including subclasses. The validator is exported as * `instanceOf` because `instanceof` is a reserved keyword in JavaScript. */ import { type StandardSchemaV1 } from "../../Validate/standardSchema"; import type { ValidateCoreReturnType } from "../../Validate/type"; export type Constructor = new (...arguments_: any[]) => T; /** * Creates a validator that checks whether a value is an instance of the given * constructor. Subclasses of the constructor satisfy the validator, matching * native `instanceof` semantics. * @template T - The instance type produced by the constructor * @param {Constructor} classConstructor - Constructor whose instances are accepted * @param {string} [message] - Custom error message for validation failure * @returns {Function} - Validator function for instances of the constructor */ export declare const instanceOf: (classConstructor: Constructor, message?: string) => ((value: T) => ValidateCoreReturnType) & StandardSchemaV1;