import * as Context from './context'; type FunctionPropertyNames = { [K in Exclude]: T[K] extends (...args: Array) => any ? K : never; }[Exclude]; export interface SpyHandle> extends jest.SpiedFunction { original: T[M]; waitForCall: (matching?: (args: Parameters, ret: ReturnType) => boolean) => Promise; } export interface SpyContextManager> { [Context.enter]: () => SpyHandle; [Context.exit]: (spy: SpyHandle) => void; } export declare function spyContext>(object: T, method: M): SpyContextManager; export {}; //# sourceMappingURL=jest.d.ts.map