import { FactoryProvider, AbstractType, Type } from '@angular/core'; import { SpyObject as BaseSpyObject } from '@ngneat/spectator'; import { jest } from '@jest/globals'; export type SpyObject = BaseSpyObject & { [P in keyof T]: T[P] & (T[P] extends (...args: any[]) => infer R ? (R extends (...args: any[]) => any ? jest.Mock : jest.Mock) : T[P]); }; /** * @publicApi */ export declare function createSpyObject(type: Type | AbstractType, template?: Partial>): SpyObject; /** * @publicApi */ export declare function mockProvider(type: Type | AbstractType, properties?: Partial>): FactoryProvider;