import { Predicate } from './Predicate.js'; /** * @desc Ensures that the `value` is an instance of `type`. * This predicate handles the dual-package hazard where the same class loaded * from different module formats (ESM/CJS) creates distinct constructor functions. * * @example * import { ensure, isInstanceOf, TinyType } from 'tiny-types'; * * class Birthday extends TinyType { * constructor(public readonly value: Date) { * ensure('Date', value, isInstanceOf(Date)); * } * } * * @param {Constructor} type * @returns {Predicate} */ export declare function isInstanceOf(type: new (...args: any[]) => T): Predicate; //# sourceMappingURL=isInstanceOf.d.ts.map