type AnyConstructor = new (...args: any[]) => any; type GetConstructorType = T extends new (...args: any) => infer C ? C : never; /** * Make an assertion that `obj` is an instance of `type`. * If not then throw. */ export declare function assertInstanceOf(actual: unknown, expectedType: T, msg?: string): asserts actual is GetConstructorType; export {};