/// declare type GenericFunction = (...args: any[]) => any; declare type PickByTypeKeyFilter = { [K in keyof T]: T[K] extends C ? K : never; }; declare type KeysByType = PickByTypeKeyFilter[keyof T]; declare type MethodsOf = KeysByType, GenericFunction>; export declare function mock(...mockedMethods: MethodsOf[]): jest.Mocked; export {};